最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

visual studio code - How do I get C# .editorconfig info level warnings to show up in the problems tab? - Stack Overflow

programmeradmin2浏览0评论

I use a .editorconfig loosely based on the .NET Runtime .editorconfig, and I try to fix all info+ issues by running dotnet format --verify-no-changes --severity info during CI.

The reported issues are not shown in the "problems" tab, but when I hover over the code the linter does show the issue.

The problems tab filter already includes "show infos", but the linter info is not shown.

How do I get the C# devkit .editorconfig linter info level results to show up in the "problems" tab?

E.g.

> dotnet format --verify-no-changes --severity info
.\foo.cs(209,25): info IDE0044: Make field readonly [foo.csproj]`

I use a .editorconfig loosely based on the .NET Runtime .editorconfig, and I try to fix all info+ issues by running dotnet format --verify-no-changes --severity info during CI.

The reported issues are not shown in the "problems" tab, but when I hover over the code the linter does show the issue.

The problems tab filter already includes "show infos", but the linter info is not shown.

How do I get the C# devkit .editorconfig linter info level results to show up in the "problems" tab?

E.g.

> dotnet format --verify-no-changes --severity info
.\foo.cs(209,25): info IDE0044: Make field readonly [foo.csproj]`

Share Improve this question asked Mar 31 at 16:20 PieterVPieterV 6151 gold badge7 silver badges20 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

I discovered that if I "quick fix" the issue in VSCode, it offers to change the severity reporting, and I noticed that it modifies the .editorconfig file.

See Code Analysis categories

E.g.:

dotnet_analyzer_diagnostic.severity = warning
# dotnet_analyzer_diagnostic.category-Style.severity = warning

After forcing reporting to be a warning the issues now show up in the "problems" tab.

Still don't know why if problems filter is set to info why info severity is not shown without needing to force a warning?

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论