-
Notifications
You must be signed in to change notification settings - Fork 510
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
SA1000 ignores 'default' in a default literal expression #2420
Comments
Full support for C# 7.1 will be added when it is finally released, but this change offers a clean workaround for DotNetAnalyzers#2420 in the interim.
Under .NET Core 3.1 and StyleCopAnalyzers 1.1.118 this appears to have been resolved (probably due to the submitted PR) and can be closed. |
It's still open to review cases where diagnostics should be reported. Right now diagnostics are not reported even for unexpected spacing, such as when the spaces around |
@jethas-bennettjones you're seeing #3214 |
I think the current behaviour is correct. In this context, SA1000 tests should be added, though, to make sure that it doesn't regress. |
Currently SA1000 is getting reported for the following C# 7.1 syntax:
Edit: a workaround is now implemented to simply ignore default literal expressions. The bug has a new title for providing full support for this keyword.
The text was updated successfully, but these errors were encountered: