-
Notifications
You must be signed in to change notification settings - Fork 508
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
SA1516: misfire in C# 9 top-level statements #3351
Comments
I'm seeing this as well. Apparently all top-level statements must be separated by a blank line, otherwise I have this warning. What's weird is that the diagnostic doesn't report any file location... I have a warning, but I don't know where. |
@thomaslevesque The reporting location bug is #3242, and should be fixed in newer releases. |
@sharwell thanks. Yes, I probably need to update to a newer version. |
What is the status of this issue? do you know maybe in which pre-release it will be done? I'm using 1.2.0-beta.406 and still seeing issue on top=level statements |
I don't believe anyone has submitted a fix for this issue yet. |
Any comments on this ? |
@sharwell Thanks for merging so quickly! Is there an ETA on next NuGet release? |
Still not fixed in 1.2.0-beta.406 |
That one is released before #3482 is merged. |
Yep, waiting for a few more items to finish/merge and the next release should be soon. |
Given this Program.cs file:
The last line in the file above produces:
This repros with StyleCop.Analyzers 1.2.0-beta.333
The text was updated successfully, but these errors were encountered: