SA1516: misfire in C# 9 top-level statements
See original GitHub issueGiven this Program.cs file:
// Copyright (c) Andrew Arnott. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using MinerForeman;
var foreman = new Foreman();
await foreman.RunAsync();
The last line in the file above produces:
Warning SA1516 Elements should be separated by blank line Program.cs
This repros with StyleCop.Analyzers 1.2.0-beta.333
Issue Analytics
- State:
- Created 2 years ago
- Reactions:15
- Comments:11 (5 by maintainers)
Top Results From Across the Web
c# - Attributes on C#9 top level statements file
For some context: I want to disable a rule only in that file with: [SuppressMessage("StyleCop.CSharp.LayoutRules", "SA1516: ...
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
@sharwell Created a fix: #3482
Yep, waiting for a few more items to finish/merge and the next release should be soon.