Skip to content

Latest commit

 

History

History
67 lines (63 loc) · 15.2 KB

comparison-with-other-analyzers.md

File metadata and controls

67 lines (63 loc) · 15.2 KB

Comparison with other analyzers

Equivalent rules

CA1018 MA0010
CA1036 MA0097
CA1050 MA0047
CA1058 MA0013
CA1065 MA0072
CA1065 MA0086
CA1067 MA0095
CA1304 MA0011
CA1305 MA0011
CA1307 MA0001, MA0074
CA1309 MA0001, MA0074
CA1310 MA0001
CA1710 MA0057
CA1710 MA0058
CA1710 MA0059
CA1724 MA0049
CA1825 MA0005
CA1826 MA0020
CA1830 MA0028
CA1834 MA0028
CA2200 MA0027
CA2201 MA0012
CA2201 MA0014
CA2208 MA0015
CA2211 MA0069
CA2214 MA0056
CA2217 MA0062
CA2219 MA0072
CA2242 MA0082
CA5359 MA0039
S3442 MA0017
S3450 MA0087
S3903 MA0047
SA1413 MA0007
SA1649 MA0048

Similar rules

CA1000 MA0018 CA can also be configured to run against non-public API surface
CA1002 MA0016 CA only applies to List<T>
CA1003 MA0046 CA only applies to public types by default (can be configured)
CA1052 MA0036 CA can be configured to only run against specific API surfaces
CA1815 MA0065 MA reports only when Equals or GetHashCode is used
CA1815 MA0066 MA reports only when the struct is used with HashSet types
CA1819 MA0016 CA only applies to arrays
CA1822 MA0038 CA supports more cases and can be configured to only run against specific API surfaces
CA1822 MA0041 CA supports more cases and can be configured to only run against specific API surfaces
CA1826 MA0020 MA reports more cases such as List<T>.Find instead of FirstOrDefault
CA1827 MA0031 MA reports more Count() optimizations
CA1852 MA0053 CA only applies to internal types in assemblies that do not expose internal types and members and - by default - report types that inherit from [Exception] (https://learn.microsoft.com/en-us/dotnet/api/system.exception?WT.mc_id=DT-MVP-5003978), but cannot be configured to report types that define virtual members
CA2007 MA0004 MA does not report when the context is needed (WPF, WinForms, Blazor, etc.)
CA2016 MA0040 MA rules detects more CancellationToken
CA2016 MA0032 MA reports even if there is no CancellationToken available in the current context
CA2016 MA0079 MA reports missing CancellationToken in await foreach expressions
CA2016 MA0080 MA reports missing CancellationToken in await foreach expressions
CA2208 MA0015 MA reports more cases
IDE0330 MA0153 MA supports variables in methods
SA1649 MA0048 SA supports configuration of file naming convention and skips partial classes
S6580 MA0011 S6580 only applies to parse methods, and also reports diagnostic when null is passed as value for format provider argument.