Commit Graph
94 Commits
Author SHA1 Message Date
xtqqczze cfd5966530 Enable CA1852: Seal internal types (#25890) 2026-02-23 11:11:12 -08:00
xtqqczze fde5305e84 Enable analyzers: Use char overload (#26301) 2025-10-27 04:12:53 +00:00
xtqqczze 00efbe6076 Enable CA1200: Avoid using cref tags with a prefix (#26298) 2025-10-26 15:55:23 +05:00
xtqqczze 4e694526d9 Enable CA2022: Avoid inexact read with 'Stream.Read' (#25814) 2025-10-24 09:10:29 +05:00
xtqqczze e25ade306b Enable IDE0080: RemoveConfusingSuppressionForIsExpression (#26206) 2025-10-20 06:12:49 +00:00
xtqqczze 380758aff4 Enable IDE0019: InlineAsTypeCheck (#25920) 2025-10-16 10:16:24 +05:00
xtqqczze 38f7f937d2 Enable SA1206: Declaration keywords should follow order (#24973) 2025-10-10 12:02:43 +05:00
xtqqczze 3207a744b5 Disable IDE0049: PreferBuiltInOrFrameworkType (#26094) 2025-10-10 04:45:47 +00:00
xtqqczze a842b2ba11 Enable CA1853: Unnecessary call to 'Dictionary.ContainsKey(key)' (#26106) 2025-10-09 16:34:49 +05:00
xtqqczze db77d2ede5 Enable CA1860: Avoid using 'Enumerable.Any()' extension method (#26109) 2025-10-08 09:10:48 +05:00
xtqqczze 5cdafbc4c7 Enable CA1858: Use 'StartsWith' instead of 'IndexOf' (#26107) 2025-10-08 08:22:54 +05:00
xtqqczze d8b1cc5533 Enable CA2021: Do not call Enumerable.Cast<T> or Enumerable.OfType<T> with incompatible types (#25813) 2025-09-24 08:09:20 +05:00
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
xtqqczzeandJoel Sallow 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:

https://github.com/dotnet/roslyn/commit/eeba499ecf839ec35bca25062d69d2fc5c4885b9
https://github.com/dotnet/runtime/commit/ca3b27963931172f0535fff644e1fae23f406193
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