Commit Graph

82 Commits

Author SHA1 Message Date
xtqqczze
0e106faafe
Enable CA1868: Unnecessary call to 'Contains' for sets (#21165)
https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1868
2024-02-29 22:56:22 +05:00
Sean Wheeler
5595072568
Change docs.microsoft.com to learn.microsoft.com (#19994) 2023-07-17 15:54:17 -07:00
xtqqczze
40b2ad59cf
Update Microsoft.CodeAnalysis.NetAnalyzers (#15812) 2021-08-09 16:36:45 +05:00
xtqqczze
01a4714b76
Enable CA1067: Override Object.Equals(object) when implementing IEquatable<T> (#13871)
* Enable CA1067: Override Object.Equals(object) when implementing IEquatable<T>

* Group Equals methods

* Reformat xml documentation

* Update src/System.Management.Automation/engine/EventManager.cs

Co-authored-by: Joel Sallow (/u/ta11ow) <32407840+vexx32@users.noreply.github.com>

Co-authored-by: Joel Sallow (/u/ta11ow) <32407840+vexx32@users.noreply.github.com>
2021-08-05 16:32:33 -07:00
xtqqczze
0f2f23f67a
Enable IDE0049 PreferBuiltInOrFrameworkType (#14491) 2021-07-28 12:39:14 -07:00
xtqqczze
055b7f3003
Fix CA1052 for public API to make classes static when they only have static methods (#15775) 2021-07-28 12:28:24 -07:00
xtqqczze
6a21bcc967
Specify api_surface property for all code quality rules (#15778) 2021-07-23 09:07:36 +05:00
xtqqczze
e6d7254356
Delete IDE dispose analyzer rules (#15798)
The IDE dispose analyzer rules have been deleted from Roslyn:

eeba499ecf
ca3b279639
2021-07-20 09:26:48 +05:00
xtqqczze
4dd25a432c
Enable IDE0029: UseCoalesceExpression (#15770)
Enable [IDE0029: UseCoalesceExpression](https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0029)
2021-07-15 09:17:46 +05:00
xtqqczze
ad87f9cb4b
Enable IDE0070: UseSystemHashCode (#15715)
Enable [IDE0070: UseSystemHashCode](https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0070) as warning.
2021-07-14 10:05:26 +05:00
xtqqczze
00bc0f6d29
Enable IDE0030: UseCoalesceExpressionForNullable (#14289) 2021-07-13 10:13:49 -07:00
xtqqczze
03b07a0062
Enable IDE0044: MakeFieldReadonly (#13880)
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0044
2021-07-07 09:33:19 +05:00
xtqqczze
2453958490
Disable IDE0130 (#15728) 2021-07-07 09:05:24 +05:00
xtqqczze
1ad1c26401
Enable CA1043: Use integral or string argument for indexers (#14467)
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1043
2021-06-28 08:44:15 +05:00
xtqqczze
b77bbf8640
Enable CA1812 (#15674)
[CA1812: Avoid uninstantiated internal classes](https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1812)
2021-06-27 20:16:17 +05:00
xtqqczze
756aef9a86
Fix CA2243: Attribute string literals should parse correctly (#15622)
* Update V2Cmdlets.csv
2021-06-25 17:59:30 +05:00
xtqqczze
078cfeaf5b
Add DocumentationAnalyzers to build (#14336) 2021-06-25 11:05:46 +05:00
xtqqczze
022ae69755
Enable CA1401 (#15621) 2021-06-25 10:48:25 +05:00
xtqqczze
8337d2afd6
Fix CA1839: Use 'Environment.ProcessPath' (#15650) 2021-06-25 08:56:55 +05:00
xtqqczze
1f2dc26ab4
Add new analyzer rules (#15620) 2021-06-23 09:27:44 -07:00
xtqqczze
a562fa6bd8
Enable SA1008 Opening parenthesis should be spaced correctly (#14242) 2021-04-16 13:33:02 -04:00
xtqqczze
e92201779d
Enable SA1001: Commas should be spaced correctly (#14171) 2021-03-30 15:17:17 -07:00
xtqqczze
9ea718f171
Enable CA2249: Consider using String.Contains instead of IndexOf (#14395)
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2249
2021-01-10 18:15:02 +05:00
xtqqczze
b7a431a442
Fix SA1504: All accessors should be single-line or multi-lin (#14241)
https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1504.md
2021-01-09 12:44:38 +05:00
xtqqczze
50fd950920
Enable CA1052: Static holder types should be Static or NotInheritable (#14483)
* Enable CA1052: Static holder types should be Static or NotInheritable

https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/CA1052

* Fix SA1505

https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1505.md
2021-01-08 22:53:11 +05:00
xtqqczze
0bcc1d4c35
Enable IDE0076: InvalidSuppressMessageAttribute (#14494)
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0076
2021-01-08 22:49:49 +05:00
xtqqczze
89c2ad3e21
Enable IDE0077: LegacyFormatSuppressMessageAttribute (#14495)
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0077
2021-01-07 14:48:49 +05:00
xtqqczze
281b437a65
Enable SA1205: Partial elements should declare access (#14441)
https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1205.md
2020-12-24 08:12:42 +05:00
xtqqczze
9d4665f32f
Enable SA1003: Symbols should be spaced correctly (#14476)
https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1003.md
2020-12-23 21:21:26 +05:00
xtqqczze
fd934e08a1
Enable SA1314: Type parameter names should begin with T (#14470)
https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1314.md
2020-12-23 08:02:22 +05:00
xtqqczze
a4441ffeb4
Enable SA1216/SA1217: Using static directives (#14471)
https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1216.md
https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1217.md
2020-12-22 16:19:53 +05:00
xtqqczze
1c0ce47488
Enable SA1213: Event accessors should follow order (#14472)
https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1213.md
2020-12-22 16:16:56 +05:00
xtqqczze
aecada3e67
Enable CA1822: Mark private members as static (#13897) 2020-12-09 11:04:23 -08:00
xtqqczze
18717c529b
Enable IDE0075: SimplifyConditionalExpression (#14078)
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0075
2020-12-02 08:25:56 +05:00
xtqqczze
db94377b3a
Enable SA1000: Keywords should be spaced correctly (#13973)
https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1000.md
2020-11-30 22:13:12 +05:00
xtqqczze
3c1261f90d
Enable SA1643: Destructor summary documentation should begin with standard text (#14236)
https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1643.md
2020-11-26 10:39:27 +05:00
xtqqczze
0d1ea73e59
Enable IDE0074: Use coalesce compound assignment (#13396)
* Autofix IDE0074: Use compound assignment
2020-11-25 17:37:01 +05:00
xtqqczze
75e0683725
Enable CA2211: Non-constant fields should not be visible (#14073)
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2211
2020-11-24 09:31:27 +05:00
xtqqczze
358db74479
Enable CA1816: Dispose methods should call SuppressFinalize (#14074)
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1816
2020-11-24 09:29:15 +05:00
xtqqczze
fa8b94e6e9
Fix SA1122: Use string.Empty for empty strings (#14218)
https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1122.md
2020-11-23 14:09:20 +05:00
xtqqczze
60643e27df
Enable CA1012: Abstract types should not have public constructors (#13940)
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1012
2020-11-21 20:07:28 +05:00
xtqqczze
8f659a2e31
Enable SA1212: Property accessors should follow order (#14051)
https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1202.md
2020-11-21 20:01:33 +05:00
xtqqczze
7dee446324
Enable SA1006: Preprocessor keywords should not be preceded by space (#14052)
https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1006.md
2020-11-21 20:00:23 +05:00
xtqqczze
8691607143
Enable CA2216: Disposable types should declare finalizer (#14089)
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2216
2020-11-21 19:48:21 +05:00
xtqqczze
83688be8a4
Enable SA1002: Semicolons should be spaced correctly (#14197)
https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1002.md
2020-11-21 19:30:59 +05:00
xtqqczze
cba73e724f
Enable SA1106: Code should not contain empty statements (#13964)
https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1106.md
2020-11-21 19:26:44 +05:00
xtqqczze
fa657ef86d
Enable SA1517: Code should not contain blank lines at start of file (#14131)
https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1517.md
2020-11-20 17:33:23 +05:00
xtqqczze
99a49e0eab
Enable SA1131: Use readable conditions (#14132)
https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1131.md
2020-11-20 17:26:46 +05:00
xtqqczze
d92984106a
Enable SA1507: Code should not contain multiple blank lines in a row (#14136)
https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1507.md
2020-11-20 16:17:45 +05:00
xtqqczze
f14c76aab9
Enable SA1516: Elements should be separated by blank line (#14137)
https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1516.md
2020-11-20 16:11:36 +05:00