Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

False positive for SA1010 #3598

Closed
batzen opened this issue Jan 21, 2023 · 1 comment
Closed

False positive for SA1010 #3598

batzen opened this issue Jan 21, 2023 · 1 comment

Comments

@batzen
Copy link

batzen commented Jan 21, 2023

The following code triggers SA1010 with "Opening square brackets should not be preceded by a space", even though it shouldn't trigger.

    public static bool IsExtended(ReadOnlySpan<char> path)
    {
        return path is ['\\', _, '?', '\\', ..] && (path[1] == '\\' || path[1] == '?');
    }
@bjornhellander
Copy link
Contributor

Duplicate of #3503

@sharwell sharwell closed this as not planned Won't fix, can't repro, duplicate, stale Feb 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants