Commit Graph

15 Commits

Author SHA1 Message Date
xtqqczze
679a3a6bff
Enable CA20XX rules with suggestion severity (#13928)
* CA2009: Do not call ToImmutableCollection on an ImmutableCollection value
* CA2011: Avoid infinite recursion
* CA2012: Use ValueTasks correctly
2020-11-05 08:52:14 +05:00
xtqqczze
07887993b8
Enable IDE0064: MakeStructFieldsWritable (#13945)
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0064
2020-11-05 08:46:17 +05:00
xtqqczze
1c99dcb47b
Enable CA18XX rules with suggestion severity (#13924) 2020-11-04 18:59:13 -08:00
xtqqczze
1d7a93c2e0
Enable CA1825: Avoid zero-length array allocations (#13961) 2020-11-04 08:56:26 +05:00
xtqqczze
329d6b43d2
Add IDE analyzer rule IDs to comments (#13960) 2020-11-02 11:54:05 +05:00
xtqqczze
4b9f9dc457
Enable CA1830: Prefer strongly-typed Append and Insert method overloads on StringBuilder (#13926)
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1830
2020-11-02 08:46:40 +05:00
xtqqczze
fc15daaccb
Enable IDE0036: OrderModifiers (#13958)
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0036
2020-11-02 08:27:23 +05:00
xtqqczze
ea4cf93749
Enforce code style in build (#13957)
* Enable EnforceCodeStyleInBuild

* Disable rules breaking build
2020-11-01 12:33:18 +05:00
xtqqczze
2c1546cd47
Enable CA1836: Prefer IsEmpty over Count when available (#13877)
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1836
2020-10-30 12:15:29 +05:00
xtqqczze
af8558b065
Enable CA1834: Consider using 'StringBuilder.Append(char)' when applicable (#13878)
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1834
2020-10-30 12:07:18 +05:00
xtqqczze
83a3f532f1
Enable IDE0048: AddRequiredParentheses (#13896)
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0047-ide0048
2020-10-29 15:55:32 +05:00
xtqqczze
20401c9583
Enable IDE1005: InvokeDelegateWithConditionalAccess (#13911)
* Enable IDE1005: InvokeDelegateWithConditionalAccess

https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide1005
2020-10-28 22:35:51 +05:00
xtqqczze
432dd56ea8
Enable IDE0036: OrderModifiers (#13881)
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0036
2020-10-28 16:01:45 +05:00
xtqqczze
9932560841
Enable CA1050: Declare types in namespaces (#13872) 2020-10-26 22:34:26 +05:00
xtqqczze
ab378f6236
Add global AnalyzerConfig with default configuration (#13835)
* Add default global AnalyzerConfig

Add `microsoft.codeanalysis.netanalyzers\5.0.0-rtm.20502.2\editorconfig\AllRulesDefault\.editorconfig`

* Disable diagnostics for Microsoft.Management.UI.Internal

* Add IDE diagnostics to AnalyzerConfig

Copied from:
<3b6600cbef/eng/CodeAnalysis.ruleset> and converted using `RulesetToEditorconfigConverter.exe`
2020-10-26 21:11:09 +05:00