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

SA1011 - Issue with nullable arrays #3219

Closed
DrGriff opened this issue Oct 8, 2020 · 1 comment
Closed

SA1011 - Issue with nullable arrays #3219

DrGriff opened this issue Oct 8, 2020 · 1 comment

Comments

@DrGriff
Copy link

DrGriff commented Oct 8, 2020

Using <PackageReference Include="StyleCop.Analyzers" Version="1.1.118">, with a .Net Core 3.1 project with nullables enabled (<Nullable>enable</Nullable>).

The following code:

byte[]? byteData = null;

generates the following:

Error SA1011 Closing square bracket should be followed by a space.

I think this is a false positive.

@sharwell
Copy link
Member

sharwell commented Oct 8, 2020

Duplicate of #2927

@sharwell sharwell marked this as a duplicate of #2927 Oct 8, 2020
@sharwell sharwell closed this as completed Oct 8, 2020
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