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

SA1011ClosingSquareBracketsMustBeSpacedCorrectly false-positive for nullable string arrays #3347

Closed
DrGriff opened this issue May 12, 2021 · 1 comment

Comments

@DrGriff
Copy link

DrGriff commented May 12, 2021

public string[]? MyProperty { get; set; }

This is a nullable string array and SA1011 states that the square bracket must be followed by a space, but this conflicts with SA1018NullableTypeSymbolsMustNotBePrecededBySpace.

@sharwell
Copy link
Member

Duplicate of #2927

@sharwell sharwell marked this as a duplicate of #2927 May 12, 2021
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

2 participants