Skip to content

Latest commit

 

History

History
364 lines (346 loc) · 53.2 KB

AnalyzerReleases.Shipped.md

File metadata and controls

364 lines (346 loc) · 53.2 KB

Release 5.0

New Rules

Rule ID Category Severity Notes
CA1000 Design Hidden DoNotDeclareStaticMembersOnGenericTypesAnalyzer, Documentation
CA1001 Design Hidden TypesThatOwnDisposableFieldsShouldBeDisposableAnalyzer, Documentation
CA1002 Design Disabled DoNotExposeGenericLists, Documentation
CA1003 Design Disabled UseGenericEventHandlerInstancesAnalyzer, Documentation
CA1005 Design Disabled AvoidExcessiveParametersOnGenericTypes, Documentation
CA1008 Design Disabled EnumsShouldHaveZeroValueAnalyzer, Documentation
CA1010 Design Hidden CollectionsShouldImplementGenericInterfaceAnalyzer, Documentation
CA1012 Design Disabled AbstractTypesShouldNotHaveConstructorsAnalyzer, Documentation
CA1014 Design Disabled MarkAssembliesWithAttributesDiagnosticAnalyzer, Documentation
CA1016 Design Info MarkAssembliesWithAttributesDiagnosticAnalyzer, Documentation
CA1017 Design Disabled MarkAssembliesWithComVisibleAnalyzer, Documentation
CA1018 Design Info MarkAttributesWithAttributeUsageAnalyzer, Documentation
CA1019 Design Disabled DefineAccessorsForAttributeArgumentsAnalyzer, Documentation
CA1021 Design Disabled AvoidOutParameters, Documentation
CA1024 Design Disabled UsePropertiesWhereAppropriateAnalyzer, Documentation
CA1027 Design Disabled EnumWithFlagsAttributeAnalyzer, Documentation
CA1028 Design Disabled EnumStorageShouldBeInt32Analyzer, Documentation
CA1030 Design Disabled UseEventsWhereAppropriateAnalyzer, Documentation
CA1031 Design Disabled DoNotCatchGeneralExceptionTypesAnalyzer, Documentation
CA1032 Design Disabled ImplementStandardExceptionConstructorsAnalyzer, Documentation
CA1033 Design Disabled InterfaceMethodsShouldBeCallableByChildTypesAnalyzer, Documentation
CA1034 Design Disabled NestedTypesShouldNotBeVisibleAnalyzer, Documentation
CA1036 Design Hidden OverrideMethodsOnComparableTypesAnalyzer, Documentation
CA1040 Design Disabled AvoidEmptyInterfacesAnalyzer, Documentation
CA1041 Design Info ProvideObsoleteAttributeMessageAnalyzer, Documentation
CA1043 Design Disabled UseIntegralOrStringArgumentForIndexersAnalyzer, Documentation
CA1044 Design Disabled PropertiesShouldNotBeWriteOnlyAnalyzer, Documentation
CA1045 Design Disabled DoNotPassTypesByReference, Documentation
CA1046 Design Disabled DoNotOverloadOperatorEqualsOnReferenceTypes, Documentation
CA1047 Design Info DoNotDeclareProtectedMembersInSealedTypes, Documentation
CA1050 Design Info DeclareTypesInNamespacesAnalyzer, Documentation
CA1051 Design Hidden DoNotDeclareVisibleInstanceFieldsAnalyzer, Documentation
CA1052 Design Disabled StaticHolderTypesAnalyzer, Documentation
CA1054 Design Disabled UriParametersShouldNotBeStringsAnalyzer, Documentation
CA1055 Design Disabled UriReturnValuesShouldNotBeStringsAnalyzer, Documentation
CA1056 Design Disabled UriPropertiesShouldNotBeStringsAnalyzer, Documentation
CA1058 Design Disabled TypesShouldNotExtendCertainBaseTypesAnalyzer, Documentation
CA1060 Design Disabled MovePInvokesToNativeMethodsClassAnalyzer, Documentation
CA1061 Design Info DoNotHideBaseClassMethodsAnalyzer, Documentation
CA1062 Design Disabled ValidateArgumentsOfPublicMethods, Documentation
CA1063 Design Disabled ImplementIDisposableCorrectlyAnalyzer, Documentation
CA1064 Design Disabled ExceptionsShouldBePublicAnalyzer, Documentation
CA1065 Design Disabled DoNotRaiseExceptionsInUnexpectedLocationsAnalyzer, Documentation
CA1066 Design Disabled EquatableAnalyzer, Documentation
CA1067 Design Info EquatableAnalyzer, Documentation
CA1068 Design Info CancellationTokenParametersMustComeLastAnalyzer, Documentation
CA1069 Design Info EnumShouldNotHaveDuplicatedValues, Documentation
CA1070 Design Info DoNotDeclareEventFieldsAsVirtual, Documentation
CA1200 Documentation Hidden AvoidUsingCrefTagsWithAPrefixAnalyzer, Documentation
CA1303 Globalization Disabled DoNotPassLiteralsAsLocalizedParameters, Documentation
CA1304 Globalization Hidden SpecifyCultureInfoAnalyzer, Documentation
CA1305 Globalization Hidden SpecifyIFormatProviderAnalyzer, Documentation
CA1307 Globalization Disabled SpecifyStringComparisonAnalyzer, Documentation
CA1308 Globalization Disabled NormalizeStringsToUppercaseAnalyzer, Documentation
CA1309 Globalization Hidden UseOrdinalStringComparisonAnalyzer, Documentation
CA1310 Globalization Hidden SpecifyStringComparisonAnalyzer, Documentation
CA1401 Interoperability Info PInvokeDiagnosticAnalyzer, Documentation
CA1416 Interoperability Warning PlatformCompatibilityAnalyzer, Documentation
CA1417 Interoperability Warning DoNotUseOutAttributeStringPInvokeParametersAnalyzer, Documentation
CA1501 Maintainability Disabled CodeMetricsAnalyzer, Documentation
CA1502 Maintainability Disabled CodeMetricsAnalyzer, Documentation
CA1505 Maintainability Disabled CodeMetricsAnalyzer, Documentation
CA1506 Maintainability Disabled CodeMetricsAnalyzer, Documentation
CA1507 Maintainability Info UseNameofInPlaceOfStringAnalyzer, Documentation
CA1508 Maintainability Disabled AvoidDeadConditionalCode, Documentation
CA1509 Maintainability Disabled CodeMetricsAnalyzer, Documentation
CA1700 Naming Disabled DoNotNameEnumValuesReserved, Documentation
CA1707 Naming Hidden IdentifiersShouldNotContainUnderscoresAnalyzer, Documentation
CA1708 Naming Hidden IdentifiersShouldDifferByMoreThanCaseAnalyzer, Documentation
CA1710 Naming Hidden IdentifiersShouldHaveCorrectSuffixAnalyzer, Documentation
CA1711 Naming Hidden IdentifiersShouldNotHaveIncorrectSuffixAnalyzer, Documentation
CA1712 Naming Hidden DoNotPrefixEnumValuesWithTypeNameAnalyzer, Documentation
CA1713 Naming Disabled EventsShouldNotHaveBeforeOrAfterPrefix, Documentation
CA1715 Naming Hidden IdentifiersShouldHaveCorrectPrefixAnalyzer, Documentation
CA1716 Naming Hidden IdentifiersShouldNotMatchKeywordsAnalyzer, Documentation
CA1720 Naming Hidden IdentifiersShouldNotContainTypeNames, Documentation
CA1721 Naming Disabled PropertyNamesShouldNotMatchGetMethodsAnalyzer, Documentation
CA1724 Naming Disabled TypeNamesShouldNotMatchNamespacesAnalyzer, Documentation
CA1725 Naming Hidden ParameterNamesShouldMatchBaseDeclarationAnalyzer, Documentation
CA1801 Usage Disabled ReviewUnusedParametersAnalyzer, Documentation
CA1802 Performance Disabled UseLiteralsWhereAppropriateAnalyzer, Documentation
CA1805 Performance Hidden DoNotInitializeUnnecessarilyAnalyzer, Documentation
CA1806 Performance Info DoNotIgnoreMethodResultsAnalyzer, Documentation
CA1810 Performance Disabled InitializeStaticFieldsInlineAnalyzer, Documentation
CA1812 Performance Disabled AvoidUninstantiatedInternalClassesAnalyzer, Documentation
CA1813 Performance Disabled AvoidUnsealedAttributesAnalyzer, Documentation
CA1814 Performance Disabled PreferJaggedArraysOverMultidimensionalAnalyzer, Documentation
CA1815 Performance Disabled OverrideEqualsAndOperatorEqualsOnValueTypesAnalyzer, Documentation
CA1816 Usage Info CallGCSuppressFinalizeCorrectlyAnalyzer, Documentation
CA1819 Performance Disabled PropertiesShouldNotReturnArraysAnalyzer, Documentation
CA1820 Performance Disabled TestForEmptyStringsUsingStringLengthAnalyzer, Documentation
CA1821 Performance Info RemoveEmptyFinalizersAnalyzer, Documentation
CA1822 Performance Info MarkMembersAsStaticAnalyzer, Documentation
CA1823 Performance Disabled AvoidUnusedPrivateFieldsAnalyzer, Documentation
CA1824 Performance Info MarkAssembliesWithNeutralResourcesLanguageAnalyzer, Documentation
CA1825 Performance Info AvoidZeroLengthArrayAllocationsAnalyzer, Documentation
CA1826 Performance Info DoNotUseEnumerableMethodsOnIndexableCollectionsInsteadUseTheCollectionDirectlyAnalyzer, Documentation
CA1827 Performance Info UseCountProperlyAnalyzer, Documentation
CA1828 Performance Info UseCountProperlyAnalyzer, Documentation
CA1829 Performance Info UseCountProperlyAnalyzer, Documentation
CA1830 Performance Info PreferTypedStringBuilderAppendOverloads, Documentation
CA1831 Performance Warning UseAsSpanInsteadOfRangeIndexerAnalyzer, Documentation
CA1832 Performance Info UseAsSpanInsteadOfRangeIndexerAnalyzer, Documentation
CA1833 Performance Info UseAsSpanInsteadOfRangeIndexerAnalyzer, Documentation
CA1834 Performance Info PreferConstCharOverConstUnitStringAnalyzer, Documentation
CA1835 Performance Info PreferStreamAsyncMemoryOverloads, Documentation
CA1836 Performance Info UseCountProperlyAnalyzer, Documentation
CA1837 Performance Info UseEnvironmentProcessId, Documentation
CA1838 Performance Hidden AvoidStringBuilderPInvokeParametersAnalyzer, Documentation
CA2000 Reliability Disabled DisposeObjectsBeforeLosingScope, Documentation
CA2002 Reliability Disabled DoNotLockOnObjectsWithWeakIdentityAnalyzer, Documentation
CA2007 Reliability Disabled DoNotDirectlyAwaitATaskAnalyzer, Documentation
CA2008 Reliability Disabled DoNotCreateTasksWithoutPassingATaskSchedulerAnalyzer, Documentation
CA2009 Reliability Info DoNotCallToImmutableCollectionOnAnImmutableCollectionValueAnalyzer, Documentation
CA2011 Reliability Info AvoidInfiniteRecursion, Documentation
CA2012 Reliability Info UseValueTasksCorrectlyAnalyzer, Documentation
CA2013 Reliability Warning DoNotUseReferenceEqualsWithValueTypesAnalyzer, Documentation
CA2014 Reliability Warning CSharpDoNotUseStackallocInLoopsAnalyzer, Documentation
CA2015 Reliability Warning DoNotDefineFinalizersForTypesDerivedFromMemoryManager, Documentation
CA2016 Reliability Info ForwardCancellationTokenToInvocationsAnalyzer, Documentation
CA2100 Security Disabled ReviewSqlQueriesForSecurityVulnerabilities, Documentation
CA2101 Globalization Info PInvokeDiagnosticAnalyzer, Documentation
CA2109 Security Disabled ReviewVisibleEventHandlersAnalyzer, Documentation
CA2119 Security Disabled SealMethodsThatSatisfyPrivateInterfacesAnalyzer, Documentation
CA2153 Security Disabled DoNotCatchCorruptedStateExceptionsAnalyzer, Documentation
CA2200 Usage Warning RethrowToPreserveStackDetailsAnalyzer, Documentation
CA2201 Usage Hidden DoNotRaiseReservedExceptionTypesAnalyzer, Documentation
CA2207 Usage Disabled InitializeStaticFieldsInlineAnalyzer, Documentation
CA2208 Usage Info InstantiateArgumentExceptionsCorrectlyAnalyzer, Documentation
CA2211 Usage Info NonConstantFieldsShouldNotBeVisibleAnalyzer, Documentation
CA2213 Usage Disabled DisposableFieldsShouldBeDisposed, Documentation
CA2214 Usage Disabled DoNotCallOverridableMethodsInConstructorsAnalyzer, Documentation
CA2215 Usage Hidden DisposeMethodsShouldCallBaseClassDispose, Documentation
CA2216 Usage Disabled DisposableTypesShouldDeclareFinalizerAnalyzer, Documentation
CA2217 Usage Disabled EnumWithFlagsAttributeAnalyzer, Documentation
CA2219 Usage Info DoNotRaiseExceptionsInExceptionClausesAnalyzer, Documentation
CA2225 Usage Disabled OperatorOverloadsHaveNamedAlternatesAnalyzer, Documentation
CA2226 Usage Disabled OperatorsShouldHaveSymmetricalOverloadsAnalyzer, Documentation
CA2227 Usage Disabled CollectionPropertiesShouldBeReadOnlyAnalyzer, Documentation
CA2229 Usage Hidden SerializationRulesDiagnosticAnalyzer, Documentation
CA2231 Usage Info OverloadOperatorEqualsOnOverridingValueTypeEqualsAnalyzer, Documentation
CA2234 Usage Disabled PassSystemUriObjectsInsteadOfStringsAnalyzer, Documentation
CA2235 Usage Disabled SerializationRulesDiagnosticAnalyzer, Documentation
CA2237 Usage Disabled SerializationRulesDiagnosticAnalyzer, Documentation
CA2241 Usage Info ProvideCorrectArgumentsToFormattingMethodsAnalyzer, Documentation
CA2242 Usage Info TestForNaNCorrectlyAnalyzer, Documentation
CA2243 Usage Disabled AttributeStringLiteralsShouldParseCorrectlyAnalyzer, Documentation
CA2244 Usage Info AvoidDuplicateElementInitialization, Documentation
CA2245 Usage Info AvoidPropertySelfAssignment, Documentation
CA2246 Usage Info AssigningSymbolAndItsMemberInSameStatement, Documentation
CA2247 Usage Warning DoNotCreateTaskCompletionSourceWithWrongArguments, Documentation
CA2248 Usage Info ProvideCorrectArgumentToEnumHasFlag, Documentation
CA2249 Usage Info PreferStringContainsOverIndexOfAnalyzer, Documentation
CA2300 Security Disabled DoNotUseInsecureDeserializerBinaryFormatterMethods, Documentation
CA2301 Security Disabled DoNotUseInsecureDeserializerBinaryFormatterWithoutBinder, Documentation
CA2302 Security Disabled DoNotUseInsecureDeserializerBinaryFormatterWithoutBinder, Documentation
CA2305 Security Disabled DoNotUseInsecureDeserializerLosFormatter, Documentation
CA2310 Security Disabled DoNotUseInsecureDeserializerNetDataContractSerializerMethods, Documentation
CA2311 Security Disabled DoNotUseInsecureDeserializerNetDataContractSerializerWithoutBinder, Documentation
CA2312 Security Disabled DoNotUseInsecureDeserializerNetDataContractSerializerWithoutBinder, Documentation
CA2315 Security Disabled DoNotUseInsecureDeserializerObjectStateFormatter, Documentation
CA2321 Security Disabled DoNotUseInsecureDeserializerJavaScriptSerializerWithSimpleTypeResolver, Documentation
CA2322 Security Disabled DoNotUseInsecureDeserializerJavaScriptSerializerWithSimpleTypeResolver, Documentation
CA2326 Security Disabled JsonNetTypeNameHandling, Documentation
CA2327 Security Disabled DoNotUseInsecureSettingsForJsonNet, Documentation
CA2328 Security Disabled DoNotUseInsecureSettingsForJsonNet, Documentation
CA2329 Security Disabled DoNotUseInsecureDeserializerJsonNetWithoutBinder, Documentation
CA2330 Security Disabled DoNotUseInsecureDeserializerJsonNetWithoutBinder, Documentation
CA2350 Security Disabled DoNotUseDataTableReadXml, Documentation
CA2351 Security Disabled DoNotUseDataSetReadXml, Documentation
CA2352 Security Disabled DataSetDataTableInSerializableTypeAnalyzer, Documentation
CA2353 Security Disabled DataSetDataTableInSerializableTypeAnalyzer, Documentation
CA2354 Security Disabled DataSetDataTableInIFormatterSerializableObjectGraphAnalyzer, Documentation
CA2355 Security Disabled DataSetDataTableInSerializableObjectGraphAnalyzer, Documentation
CA2356 Security Disabled DataSetDataTableInWebSerializableObjectGraphAnalyzer, Documentation
CA2361 Security Disabled DoNotUseDataSetReadXml, Documentation
CA2362 Security Disabled DataSetDataTableInSerializableTypeAnalyzer, Documentation
CA3001 Security Disabled ReviewCodeForSqlInjectionVulnerabilities, Documentation
CA3002 Security Disabled ReviewCodeForXssVulnerabilities, Documentation
CA3003 Security Disabled ReviewCodeForFilePathInjectionVulnerabilities, Documentation
CA3004 Security Disabled ReviewCodeForInformationDisclosureVulnerabilities, Documentation
CA3005 Security Disabled ReviewCodeForLdapInjectionVulnerabilities, Documentation
CA3006 Security Disabled ReviewCodeForCommandExecutionVulnerabilities, Documentation
CA3007 Security Disabled ReviewCodeForOpenRedirectVulnerabilities, Documentation
CA3008 Security Disabled ReviewCodeForXPathInjectionVulnerabilities, Documentation
CA3009 Security Disabled ReviewCodeForXmlInjectionVulnerabilities, Documentation
CA3010 Security Disabled ReviewCodeForXamlInjectionVulnerabilities, Documentation
CA3011 Security Disabled ReviewCodeForDllInjectionVulnerabilities, Documentation
CA3012 Security Disabled ReviewCodeForRegexInjectionVulnerabilities, Documentation
CA3061 Security Hidden DoNotAddSchemaByURL, Documentation
CA3075 Security Hidden DoNotUseInsecureDtdProcessingAnalyzer, Documentation
CA3076 Security Hidden DoNotUseInsecureXSLTScriptExecutionAnalyzer, Documentation
CA3077 Security Hidden DoNotUseInsecureDtdProcessingInApiDesignAnalyzer, Documentation
CA3147 Security Hidden MarkVerbHandlersWithValidateAntiforgeryTokenAnalyzer, Documentation
CA5350 Security Hidden DoNotUseInsecureCryptographicAlgorithmsAnalyzer, Documentation
CA5351 Security Hidden DoNotUseInsecureCryptographicAlgorithmsAnalyzer, Documentation
CA5358 Security Disabled ApprovedCipherModeAnalyzer, Documentation
CA5359 Security Hidden DoNotDisableCertificateValidation, Documentation
CA5360 Security Hidden DoNotCallDangerousMethodsInDeserialization, Documentation
CA5361 Security Disabled DoNotSetSwitch, Documentation
CA5362 Security Disabled PotentialReferenceCycleInDeserializedObjectGraph, Documentation
CA5363 Security Hidden DoNotDisableRequestValidation, Documentation
CA5364 Security Hidden DoNotUseDeprecatedSecurityProtocols, Documentation
CA5365 Security Hidden DoNotDisableHTTPHeaderChecking, Documentation
CA5366 Security Hidden UseXmlReaderForDataSetReadXml, Documentation
CA5367 Security Disabled DoNotSerializeTypeWithPointerFields, Documentation
CA5368 Security Hidden SetViewStateUserKey, Documentation
CA5369 Security Hidden UseXmlReaderForDeserialize, Documentation
CA5370 Security Hidden UseXmlReaderForValidatingReader, Documentation
CA5371 Security Hidden UseXmlReaderForSchemaRead, Documentation
CA5372 Security Hidden UseXmlReaderForXPathDocument, Documentation
CA5373 Security Hidden DoNotUseObsoleteKDFAlgorithm, Documentation
CA5374 Security Hidden DoNotUseXslTransform, Documentation
CA5375 Security Disabled DoNotUseAccountSAS, Documentation
CA5376 Security Disabled UseSharedAccessProtocolHttpsOnly, Documentation
CA5377 Security Disabled UseContainerLevelAccessPolicy, Documentation
CA5378 Security Disabled DoNotSetSwitch, Documentation
CA5379 Security Hidden DoNotUseWeakKDFAlgorithm, Documentation
CA5380 Security Disabled DoNotInstallRootCert, Documentation
CA5381 Security Disabled DoNotInstallRootCert, Documentation
CA5382 Security Disabled UseSecureCookiesASPNetCore, Documentation
CA5383 Security Disabled UseSecureCookiesASPNetCore, Documentation
CA5384 Security Hidden DoNotUseDSA, Documentation
CA5385 Security Hidden UseRSAWithSufficientKeySize, Documentation
CA5386 Security Disabled DoNotUseDeprecatedSecurityProtocols, Documentation
CA5387 Security Disabled DoNotUseWeakKDFInsufficientIterationCount, Documentation
CA5388 Security Disabled DoNotUseWeakKDFInsufficientIterationCount, Documentation
CA5389 Security Disabled DoNotAddArchiveItemPathToTheTargetFileSystemPath, Documentation
CA5390 Security Disabled DoNotHardCodeEncryptionKey, Documentation
CA5391 Security Disabled UseAutoValidateAntiforgeryToken, Documentation
CA5392 Security Disabled UseDefaultDllImportSearchPathsAttribute, Documentation
CA5393 Security Disabled UseDefaultDllImportSearchPathsAttribute, Documentation
CA5394 Security Disabled DoNotUseInsecureRandomness, Documentation
CA5395 Security Disabled UseAutoValidateAntiforgeryToken, Documentation
CA5396 Security Disabled SetHttpOnlyForHttpCookie, Documentation
CA5397 Security Hidden SslProtocolsAnalyzer, Documentation
CA5398 Security Disabled SslProtocolsAnalyzer, Documentation
CA5399 Security Disabled DoNotDisableHttpClientCRLCheck, Documentation
CA5400 Security Disabled DoNotDisableHttpClientCRLCheck, Documentation
CA5401 Security Disabled DoNotUseCreateEncryptorWithNonDefaultIV, Documentation
CA5402 Security Disabled DoNotUseCreateEncryptorWithNonDefaultIV, Documentation
CA5403 Security Disabled DoNotHardCodeCertificate, Documentation
IL3000 Publish Warning AvoidAssemblyLocationInSingleFile, Documentation
IL3001 Publish Warning AvoidAssemblyLocationInSingleFile, Documentation

Release 6.0

New Rules

Rule ID Category Severity Notes
CA1418 Interoperability Warning UseValidPlatformString, Documentation
CA1419 Interoperability Info ProvidePublicParameterlessSafeHandleConstructor, Documentation
CA1727 Naming Hidden LoggerMessageDefineAnalyzer, Documentation
CA1839 Performance Info UseEnvironmentMembers, Documentation
CA1840 Performance Info UseEnvironmentMembers, Documentation
CA1841 Performance Info PreferDictionaryContainsMethods, Documentation
CA1842 Performance Info DoNotUseWhenAllOrWaitAllWithSingleArgument, Documentation
CA1843 Performance Info DoNotUseWhenAllOrWaitAllWithSingleArgument, Documentation
CA1844 Performance Info ProvideStreamMemoryBasedAsyncOverrides, Documentation
CA1845 Performance Info UseSpanBasedStringConcat, Documentation
CA1846 Performance Info PreferAsSpanOverSubstring, Documentation
CA1847 Performance Info UseStringContainsCharOverloadWithSingleCharactersAnalyzer, Documentation
CA1848 Performance Hidden LoggerMessageDefineAnalyzer, Documentation
CA2017 Reliability Warning LoggerMessageDefineAnalyzer, Documentation
CA2018 Reliability Warning BufferBlockCopyLengthAnalyzer, Documentation
CA2250 Usage Info UseCancellationTokenThrowIfCancellationRequested, Documentation
CA2251 Usage Hidden UseStringEqualsOverStringCompare, Documentation
CA2252 Usage Error DetectPreviewFeatureAnalyzer, Documentation
CA2253 Usage Info LoggerMessageDefineAnalyzer, Documentation
CA2254 Usage Info LoggerMessageDefineAnalyzer, Documentation
CA2255 Usage Warning ModuleInitializerAttributeShouldNotBeUsedInLibraries, Documentation
CA2256 Usage Warning InterfaceMembersMissingImplementation, Documentation
CA2257 Usage Warning MembersDeclaredOnImplementationTypeMustBeStatic, Documentation
CA2258 Usage Warning DynamicInterfaceCastableImplementationUnsupported, Documentation

Removed Rules

Rule ID Category Severity Notes
CA1801 Usage Disabled ReviewUnusedParametersAnalyzer, Documentation
IL3000 Publish Disabled Moved analyzer to mono/linker
IL3001 Publish Disabled Moved analyzer to mono/linker

Release 7.0

New Rules

Rule ID Category Severity Notes
CA1311 Globalization Hidden SpecifyCultureForToLowerAndToUpper, Documentation
CA1420 Interoperability Warning FeatureUnsupportedWhenRuntimeMarshallingDisabled, Documentation
CA1421 Interoperability Info MethodUsesRuntimeMarshallingEvenWhenMarshallingDisabled, Documentation
CA1422 Interoperability Warning PlatformCompatibilityAnalyzer, Documentation
CA1849 Performance Disabled UseAsyncMethodInAsyncContext, Documentation
CA1850 Performance Info PreferHashDataOverComputeHashAnalyzer, Documentation
CA1851 Performance Disabled AvoidMultipleEnumerations, Documentation
CA1852 Performance Hidden SealInternalTypes, Documentation
CA1853 Performance Info DoNotGuardDictionaryRemoveByContainsKey, Documentation
CA1854 Performance Info PreferDictionaryTryGetValueAnalyzer, Documentation
CA1855 Performance Info UseSpanClearInsteadOfFillAnalyzer, Documentation
CA2019 Reliability Info UseThreadStaticCorrectly, Documentation
CA2020 Reliability Info PreventNumericIntPtrUIntPtrBehavioralChanges, Documentation
CA2259 Usage Warning UseThreadStaticCorrectly, Documentation
CA2260 Usage Warning ImplementGenericMathInterfacesCorrectly, Documentation
CA5404 Security Disabled DoNotDisableTokenValidationChecks, Documentation
CA5405 Security Disabled DoNotAlwaysSkipTokenValidationInDelegates, Documentation

Release 8.0

New Rules

Rule ID Category Severity Notes
CA1865 Performance Info UseStringMethodCharOverloadWithSingleCharacters, Documentation
CA1866 Performance Info UseStringMethodCharOverloadWithSingleCharacters, Documentation
CA1867 Performance Disabled UseStringMethodCharOverloadWithSingleCharacters, Documentation
CA1868 Performance Info DoNotGuardSetAddOrRemoveByContains, Documentation
CA1869 Performance Info AvoidSingleUseOfLocalJsonSerializerOptions, Documentation
CA2261 Usage Warning DoNotUseConfigureAwaitWithSuppressThrowing, Documentation
CA1510 Maintainability Info UseExceptionThrowHelpers, Documentation
CA1511 Maintainability Info UseExceptionThrowHelpers, Documentation
CA1512 Maintainability Info UseExceptionThrowHelpers, Documentation
CA1513 Maintainability Info UseExceptionThrowHelpers, Documentation
CA1856 Performance Error ConstantExpectedAnalyzer, Documentation
CA1857 Performance Warning ConstantExpectedAnalyzer, Documentation
CA1858 Performance Info UseStartsWithInsteadOfIndexOfComparisonWithZero, Documentation
CA1859 Performance Info UseConcreteTypeAnalyzer, Documentation
CA1860 Performance Info PreferLengthCountIsEmptyOverAnyAnalyzer, Documentation
CA1861 Performance Info AvoidConstArrays, Documentation
CA1862 Performance Info RecommendCaseInsensitiveStringComparison, Documentation
CA1863 Performance Hidden UseCompositeFormatAnalyzer, Documentation
CA1864 Performance Info PreferDictionaryTryAddValueOverGuardedAddAnalyzer, Documentation
CA1870 Performance Info UseSearchValuesAnalyzer, Documentation
CA2021 Reliability Warning DoNotCallEnumerableCastOrOfTypeWithIncompatibleTypesAnalyzer, Documentation

Removed Rules

Rule ID Category Severity Notes
CA2109 Security Disabled ReviewVisibleEventHandlersAnalyzer, Documentation
CA2229 Usage Disabled SerializationRulesDiagnosticAnalyzer, Documentation

Release 9.0

New Rules

Rule ID Category Severity Notes
CA1514 Maintainability Info AvoidLengthCheckWhenSlicingToEndAnalyzer, Documentation
CA1515 Maintainability Disabled MakeTypesInternal, Documentation
CA1871 Performance Info DoNotPassNonNullableValueToArgumentNullExceptionThrowIfNull, Documentation
CA1872 Performance Info PreferConvertToHexStringOverBitConverterAnalyzer, Documentation
CA2022 Reliability Warning AvoidUnreliableStreamReadAnalyzer, Documentation
CA2262 Usage Info ProvideHttpClientHandlerMaxResponseHeaderLengthValueCorrectly, Documentation
CA2263 Usage Info PreferGenericOverloadsAnalyzer, Documentation
CA2264 Usage Warning DoNotPassNonNullableValueToArgumentNullExceptionThrowIfNull, Documentation
CA2265 Usage Warning DoNotCompareSpanToNullAnalyzer, Documentation