question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SA1011 false positive, C#8.0 and NullableContextOptions when used with arrays.

See original GitHub issue

An example:

byte[]? data = null; // SA1011 Closing Bracket should be followed by a space
byte[] ? data = null; // SA1018 Nullable type symbol should not be preceded by a space

I think SA1011 is a false positive.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:14
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

7reactions
mikeblascommented, Mar 23, 2022

Thanks! Looks like this release has been in beta for some time – 1.1.118 is more than 3 years old. Has development on StyleCop stopped? Is it deprecated?

7reactions
csMACnzcommented, May 7, 2020

Any chance of a stable release with this in it so we can upgrade? 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

SA1011 false positive, C#8.0 when using ! forgiveness ...
IReadOnlyList ? arguments; // a parameter or assigned elsewhere object o = arguments[0]!; // SA1011 does not like the `!
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found