dotnet/runtime

Enable more style checking analyzers

Open

#78.414 geöffnet am 15. Nov. 2022

Auf GitHub ansehen
 (17 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)C# (5.445 Forks)batch import
area-Metahelp wanted

Repository-Metriken

Stars
 (17.886 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 12T 11h) (661 gemergte PRs in 30 T)

Beschreibung

There are several analyzers that check for code style that runtime repo could benefit from if enabled. They are not too pedantic and could help to make the large codebase more readable.

For example

  • #94827
  • SA1107: Code should not contain multiple statements on one line
  • SA1119: A C# statement contains parenthesis which are unnecessary and should be removed.
  • SA1123: Region should not be located within a code element
  • SA1128: Put constructor initializers on their own line
  • SA1130: Use lambda syntax
  • #94098
  • SA1507: Code should not contain multiple blank lines in a row

Contributor Guide