diff options
author | Stephen Toub <stoub@microsoft.com> | 2022-03-30 13:55:28 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-30 13:55:28 +0300 |
commit | b2e494c6ba2d3290e18c42559ced61b6cf1eebd0 (patch) | |
tree | 74815c66ce62c6bee65c598675e717bb1ef2ef0c /eng/CodeAnalysis.test.globalconfig | |
parent | 38fe46837aae576b8d1fdaa3177ddb3c24fa6018 (diff) |
Enable recently added analyzers (and fix some violations) (#67292)
Diffstat (limited to 'eng/CodeAnalysis.test.globalconfig')
-rw-r--r-- | eng/CodeAnalysis.test.globalconfig | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/eng/CodeAnalysis.test.globalconfig b/eng/CodeAnalysis.test.globalconfig index 6e8b42ea360..0b5cef6baa9 100644 --- a/eng/CodeAnalysis.test.globalconfig +++ b/eng/CodeAnalysis.test.globalconfig @@ -204,6 +204,12 @@ dotnet_diagnostic.CA1418.severity = none # CA1419: Provide a parameterless constructor that is as visible as the containing type for concrete types derived from 'System.Runtime.InteropServices.SafeHandle' dotnet_diagnostic.CA1419.severity = none +# CA1420: Property, type, or attribute requires runtime marshalling +dotnet_diagnostic.CA1420.severity = none + +# CA1421: This method uses runtime marshalling even when the 'DisableRuntimeMarshallingAttribute' is applied +dotnet_diagnostic.CA1421.severity = none + # CA1501: Avoid excessive inheritance dotnet_diagnostic.CA1501.severity = none @@ -390,6 +396,9 @@ dotnet_diagnostic.CA1849.severity = none # CA1850: Prefer static 'HashData' method over 'ComputeHash' dotnet_diagnostic.CA1850.severity = none +# CA1851: Possible multiple enumerations of 'IEnumerable' collection +dotnet_diagnostic.CA1851.severity = none + # CA2000: Dispose objects before losing scope dotnet_diagnostic.CA2000.severity = none @@ -424,10 +433,13 @@ dotnet_diagnostic.CA2015.severity = none dotnet_diagnostic.CA2016.severity = none # CA2017: Parameter count mismatch -dotnet_diagnostic.CA2017.severity = warning +dotnet_diagnostic.CA2017.severity = none # CA2018: 'Buffer.BlockCopy' expects the number of bytes to be copied for the 'count' argument -dotnet_diagnostic.CA2018.severity = warning +dotnet_diagnostic.CA2018.severity = none + +# CA2019: Improper 'ThreadStatic' field initialization +dotnet_diagnostic.CA2019.severity = none # CA2100: Review SQL queries for security vulnerabilities dotnet_diagnostic.CA2100.severity = none @@ -550,16 +562,19 @@ dotnet_diagnostic.CA2253.severity = none dotnet_diagnostic.CA2254.severity = none # CA2255: The 'ModuleInitializer' attribute should not be used in libraries -dotnet_diagnostic.CA2255.severity = warning +dotnet_diagnostic.CA2255.severity = none # CA2256: All members declared in parent interfaces must have an implementation in a DynamicInterfaceCastableImplementation-attributed interface -dotnet_diagnostic.CA2256.severity = warning +dotnet_diagnostic.CA2256.severity = none # CA2257: Members defined on an interface with the 'DynamicInterfaceCastableImplementationAttribute' should be 'static' -dotnet_diagnostic.CA2257.severity = warning +dotnet_diagnostic.CA2257.severity = none # CA2258: Providing a 'DynamicInterfaceCastableImplementation' interface in Visual Basic is unsupported -dotnet_diagnostic.CA2258.severity = warning +dotnet_diagnostic.CA2258.severity = none + +# CA2259: 'ThreadStatic' only affects static fields +dotnet_diagnostic.CA2259.severity = none # CA2300: Do not use insecure deserializer BinaryFormatter dotnet_diagnostic.CA2300.severity = none |