SA1011 false positive, C#8.0 and NullableContextOptions when used with arrays.
See original GitHub issueAn 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:
- Created 4 years ago
- Reactions:14
- Comments:6 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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?
Any chance of a stable release with this in it so we can upgrade? 😃