dotnet-format misses warnings that have been promoted from info
- Dominant language
- C#
- Stars
- 3.2k
- Forks
- 1.3k
- PR merge metrics
- PR metrics pending
Description
Using 10.0.102, if I make a `dotnet new console`, with Program.cs:
```csharp
class Foo
{
public void DoStuff()
{
}
}
Console.WriteLine($"Hello, World! {new Foo()}");
```
And set `AnalysisLevel=latest-recommended` in the csproj, I get:
```
$ dotnet format --verify-no-changes --severity info
/home/davidm/src/golf/tmp/Program.cs(4,14): warning CA1822: Member 'DoStuff' does not access instance data and can be marked as static [/home/davidm/src/golf/tmp/tmp.csproj]
$ dotnet format --verify-no-changes --severity warn
$
```
_Originally posted by @corngood in https://github.com/dotnet/sdk/issues/53055#issuecomment-3916428825_
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.