msbuild: Change CodeAnalysis rules from 'Info' to 'Warning' after fixing all instances of the violations

As a follow up to #5656 each code analysis rule that is marked as Action="Info" should be evaluated and migrated to Action="Warning" once all instances of the violations are fixed or marked with ignore.

To make the process as painless as possible. Each rule should be implemented in its own PR.

Before the merges:

List of rules to enable after resolving occurrences:

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Reactions: 3
  • Comments: 26 (26 by maintainers)

Commits related to this issue

Most upvoted comments

I’d like to wait to see what sharwell suggests. Personally, both solutions sound problematic in their own ways, and although I’d personally be fine with wasting a couple gbs, I suspect at least one person on my team will be strongly opposed. On the other hand, it would be frustrating to have a massive .editorconfig.

One other option I think we should at least consider is only promoting analysis messages to warnings if we can do some without a warning coming from anything we depend on. That’s a stupid requirement, but it may be the most pragmatic. We have a lot of issues we want to tackle for 17.2 with major customer impact, and you’ve probably noticed we’re pretty far behind even with just reviewing and merging what’s already open.