# Description: All Rules are enabled as build warnings. Rules with IsEnabledByDefault = false are force enabled as build warnings.
# Code files
[*.{cs,vb}]
# CA1000: Do not declare static members on generic types
dotnet_diagnostic.CA1000.severity=warning
# CA1001: Types that own disposable fields should be disposable
dotnet_diagnostic.CA1001.severity=warning
# CA1002: Do not expose generic lists
dotnet_diagnostic.CA1002.severity=warning
# CA1003: Use generic event handler instances
dotnet_diagnostic.CA1003.severity=warning
# CA1005: Avoid excessive parameters on generic types
dotnet_diagnostic.CA1005.severity=warning
# CA1008: Enums should have zero value
dotnet_diagnostic.CA1008.severity=warning
# CA1010: Generic interface should also be implemented
dotnet_diagnostic.CA1010.severity=warning
# CA1012: Abstract types should not have public constructors
dotnet_diagnostic.CA1012.severity=warning
# CA1014: Mark assemblies with CLSCompliant
dotnet_diagnostic.CA1014.severity=warning
# CA1016: Mark assemblies with assembly version
dotnet_diagnostic.CA1016.severity=warning
# CA1017: Mark assemblies with ComVisible
dotnet_diagnostic.CA1017.severity=warning
# CA1018: Mark attributes with AttributeUsageAttribute
dotnet_diagnostic.CA1018.severity=warning
# CA1019: Define accessors for attribute arguments
dotnet_diagnostic.CA1019.severity=warning
# CA1021: Avoid out parameters
dotnet_diagnostic.CA1021.severity=none
# CA1024: Use properties where appropriate
dotnet_diagnostic.CA1024.severity=warning
# CA1027: Mark enums with FlagsAttribute
dotnet_diagnostic.CA1027.severity=warning
# CA1028: Enum Storage should be Int32
dotnet_diagnostic.CA1028.severity=warning
# CA1030: Use events where appropriate
dotnet_diagnostic.CA1030.severity=warning
# CA1031: Do not catch general exception types
dotnet_diagnostic.CA1031.severity=suggestion
# CA1032: Implement standard exception constructors
dotnet_diagnostic.CA1032.severity=warning
# CA1033: Interface methods should be callable by child types
dotnet_diagnostic.CA1033.severity=warning
# CA1034: Nested types should not be visible
dotnet_diagnostic.CA1034.severity=warning
# CA1036: Override methods on comparable types
dotnet_diagnostic.CA1036.severity=warning
# CA1040: Avoid empty interfaces
dotnet_diagnostic.CA1040.severity=warning
# CA1041: Provide ObsoleteAttribute message
dotnet_diagnostic.CA1041.severity=warning
# CA1043: Use Integral Or String Argument For Indexers
dotnet_diagnostic.CA1043.severity=warning
# CA1044: Properties should not be write only
dotnet_diagnostic.CA1044.severity=warning
# CA1045: Do not pass types by reference
dotnet_diagnostic.CA1045.severity=warning
# CA1046: Do not overload equality operator on reference types
dotnet_diagnostic.CA1046.severity=warning
# CA1047: Do not declare protected member in sealed type
dotnet_diagnostic.CA1047.severity=warning
# CA1050: Declare types in namespaces
dotnet_diagnostic.CA1050.severity=warning
# CA1051: Do not declare visible instance fields
dotnet_diagnostic.CA1051.severity=warning
# CA1052: Static holder types should be Static or NotInheritable
dotnet_diagnostic.CA1052.severity=warning
# CA1054: URI-like parameters should not be strings
dotnet_diagnostic.CA1054.severity=warning
# CA1055: URI-like return values should not be strings
dotnet_diagnostic.CA1055.severity=warning
# CA1056: URI-like properties should not be strings
dotnet_diagnostic.CA1056.severity=warning
# CA1058: Types should not extend certain base types
dotnet_diagnostic.CA1058.severity=warning
# CA1060: Move pinvokes to native methods class
dotnet_diagnostic.CA1060.severity=warning
# CA1061: Do not hide base class methods
dotnet_diagnostic.CA1061.severity=warning
# CA1062: Validate arguments of public methods
dotnet_diagnostic.CA1062.severity=warning
# CA1063: Implement IDisposable Correctly
dotnet_diagnostic.CA1063.severity=warning
# CA1064: Exceptions should be public
dotnet_diagnostic.CA1064.severity=warning
# CA1065: Do not raise exceptions in unexpected locations
dotnet_diagnostic.CA1065.severity=warning
# CA1066: Implement IEquatable when overriding Object.Equals
dotnet_diagnostic.CA1066.severity=warning
# CA1067: Override Object.Equals(object) when implementing IEquatable<T>
dotnet_diagnostic.CA1067.severity=warning
# CA1068: CancellationToken parameters must come last
dotnet_diagnostic.CA1068.severity=warning
# CA1069: Enums values should not be duplicated
dotnet_diagnostic.CA1069.severity=warning
# CA1070: Do not declare event fields as virtual
dotnet_diagnostic.CA1070.severity=warning
# CA1200: Avoid using cref tags with a prefix
dotnet_diagnostic.CA1200.severity=warning
# CA1303: Do not pass literals as localized parameters
dotnet_diagnostic.CA1303.severity=warning
# CA1304: Specify CultureInfo
dotnet_diagnostic.CA1304.severity=warning
# CA1305: Specify IFormatProvider
dotnet_diagnostic.CA1305.severity=warning
# CA1307: Specify StringComparison for clarity
dotnet_diagnostic.CA1307.severity=warning
# CA1308: Normalize strings to uppercase
dotnet_diagnostic.CA1308.severity=warning
# CA1309: Use ordinal string comparison
dotnet_diagnostic.CA1309.severity=warning
# CA1310: Specify StringComparison for correctness
dotnet_diagnostic.CA1310.severity=warning
# CA1311: Specify a culture or use an invariant version
dotnet_diagnostic.CA1311.severity=warning
# CA1401: P/Invokes should not be visible
dotnet_diagnostic.CA1401.severity=warning
# CA1416: Validate platform compatibility
dotnet_diagnostic.CA1416.severity=warning
# CA1417: Do not use 'OutAttribute' on string parameters for P/Invokes
dotnet_diagnostic.CA1417.severity=warning
# CA1418: Use valid platform string
dotnet_diagnostic.CA1418.severity=warning
# 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=warning
# CA1420: Property, type, or attribute requires runtime marshalling
dotnet_diagnostic.CA1420.severity=warning
# CA1421: This method uses runtime marshalling even when the 'DisableRuntimeMarshallingAttribute' is applied
dotnet_diagnostic.CA1421.severity=warning
# CA1422: Validate platform compatibility
dotnet_diagnostic.CA1422.severity=warning
# CA1501: Avoid excessive inheritance
dotnet_diagnostic.CA1501.severity=warning
# CA1502: Avoid excessive complexity
dotnet_diagnostic.CA1502.severity=warning
# CA1505: Avoid unmaintainable code
dotnet_diagnostic.CA1505.severity=warning
# CA1506: Avoid excessive class coupling
dotnet_diagnostic.CA1506.severity=warning
# CA1507: Use nameof to express symbol names
dotnet_diagnostic.CA1507.severity=warning
# CA1508: Avoid dead conditional code
dotnet_diagnostic.CA1508.severity=warning
# CA1509: Invalid entry in code metrics rule specification file
dotnet_diagnostic.CA1509.severity=warning
# CA1510: Use ArgumentNullException throw helper
dotnet_diagnostic.CA1510.severity=warning
# CA1511: Use ArgumentException throw helper
dotnet_diagnostic.CA1511.severity=warning
# CA1512: Use ArgumentOutOfRangeException throw helper
dotnet_diagnostic.CA1512.severity=warning
# CA1513: Use ObjectDisposedException throw helper
dotnet_diagnostic.CA1513.severity=warning
# CA1700: Do not name enum values 'Reserved'
dotnet_diagnostic.CA1700.severity=warning
# CA1707: Identifiers should not contain underscores
dotnet_diagnostic.CA1707.severity=warning
# CA1708: Identifiers should differ by more than case
dotnet_diagnostic.CA1708.severity=warning
# CA1710: Identifiers should have correct suffix
dotnet_diagnostic.CA1710.severity=warning
# CA1711: Identifiers should not have incorrect suffix
dotnet_diagnostic.CA1711.severity=warning
# CA1712: Do not prefix enum values with type name
dotnet_diagnostic.CA1712.severity=warning
# CA1713: Events should not have 'Before' or 'After' prefix
dotnet_diagnostic.CA1713.severity=warning
# CA1715: Identifiers should have correct prefix
dotnet_diagnostic.CA1715.severity=warning
# CA1716: Identifiers should not match keywords
dotnet_diagnostic.CA1716.severity=warning
# CA1720: Identifier contains type name
dotnet_diagnostic.CA1720.severity=warning
# CA1721: Property names should not match get methods
dotnet_diagnostic.CA1721.severity=warning
# CA1724: Type names should not match namespaces
dotnet_diagnostic.CA1724.severity=warning
# CA1725: Parameter names should match base declaration
dotnet_diagnostic.CA1725.severity=warning
# CA1727: Use PascalCase for named placeholders
dotnet_diagnostic.CA1727.severity=warning
# CA1802: Use literals where appropriate
dotnet_diagnostic.CA1802.severity=warning
# CA1805: Do not initialize unnecessarily
dotnet_diagnostic.CA1805.severity=warning
# CA1806: Do not ignore method results
dotnet_diagnostic.CA1806.severity=warning
# CA1810: Initialize reference type static fields inline
dotnet_diagnostic.CA1810.severity=warning
# CA1812: Avoid uninstantiated internal classes
dotnet_diagnostic.CA1812.severity=warning
# CA1813: Avoid unsealed attributes
dotnet_diagnostic.CA1813.severity=warning
# CA1814: Prefer jagged arrays over multidimensional
dotnet_diagnostic.CA1814.severity=warning
# CA1815: Override equals and operator equals on value types
dotnet_diagnostic.CA1815.severity=warning
# CA1816: Dispose methods should call SuppressFinalize
dotnet_diagnostic.CA1816.severity=warning
# CA1819: Properties should not return arrays
dotnet_diagnostic.CA1819.severity=warning
# CA1820: Test for empty strings using string length
dotnet_diagnostic.CA1820.severity=warning
# CA1821: Remove empty Finalizers
dotnet_diagnostic.CA1821.severity=warning
# CA1822: Mark members as static
dotnet_diagnostic.CA1822.severity=warning
# CA1823: Avoid unused private fields
dotnet_diagnostic.CA1823.severity=warning
# CA1824: Mark assemblies with NeutralResourcesLanguageAttribute
dotnet_diagnostic.CA1824.severity=warning
# CA1825: Avoid zero-length array allocations
dotnet_diagnostic.CA1825.severity=warning
# CA1826: Do not use Enumerable methods on indexable collections
dotnet_diagnostic.CA1826.severity=warning
# CA1827: Do not use Count() or LongCount() when Any() can be used
dotnet_diagnostic.CA1827.severity=warning
# CA1828: Do not use CountAsync() or LongCountAsync() when AnyAsync() can be used
dotnet_diagnostic.CA1828.severity=warning
# CA1829: Use Length/Count property instead of Count() when available
dotnet_diagnostic.CA1829.severity=warning
# CA1830: Prefer strongly-typed Append and Insert method overloads on StringBuilder
dotnet_diagnostic.CA1830.severity=warning
# CA1831: Use AsSpan or AsMemory instead of Range-based indexers when appropriate
dotnet_diagnostic.CA1831.severity=warning
# CA1832: Use AsSpan or AsMemory instead of Range-based indexers when appropriate
dotnet_diagnostic.CA1832.severity=warning
# CA1833: Use AsSpan or AsMemory instead of Range-based indexers when appropriate
dotnet_diagnostic.CA1833.severity=warning
# CA1834: Consider using 'StringBuilder.Append(char)' when applicable
dotnet_diagnostic.CA1834.severity=warning
# CA1835: Prefer the 'Memory'-based overloads for 'ReadAsync' and 'WriteAsync'
dotnet_diagnostic.CA1835.severity=warning
# CA1836: Prefer IsEmpty over Count
dotnet_diagnostic.CA1836.severity=warning
# CA1837: Use 'Environment.ProcessId'
dotnet_diagnostic.CA1837.severity=warning
# CA1838: Avoid 'StringBuilder' parameters for P/Invokes
dotnet_diagnostic.CA1838.severity=warning
# CA1839: Use 'Environment.ProcessPath'
dotnet_diagnostic.CA1839.severity=warning
# CA1840: Use 'Environment.CurrentManagedThreadId'
dotnet_diagnostic.CA1840.severity=warning
# CA1841: Prefer Dictionary.Contains methods
dotnet_diagnostic.CA1841.severity=warning
# CA1842: Do not use 'WhenAll' with a single task
dotnet_diagnostic.CA1842.severity=warning
# CA1843: Do not use 'WaitAll' with a single task
dotnet_diagnostic.CA1843.severity=warning
# CA1844: Provide memory-based overrides of async methods when subclassing 'Stream'
dotnet_diagnostic.CA1844.severity=warning
# CA1845: Use span-based 'string.Concat'
dotnet_diagnostic.CA1845.severity=warning
# CA1846: Prefer 'AsSpan' over 'Substring'
dotnet_diagnostic.CA1846.severity=warning
# CA1847: Use char literal for a single character lookup
dotnet_diagnostic.CA1847.severity=warning
# CA1848: Use the LoggerMessage delegates
dotnet_diagnostic.CA1848.severity=warning
# CA1849: Call async methods when in an async method
dotnet_diagnostic.CA1849.severity=warning
# CA1850: Prefer static 'HashData' method over 'ComputeHash'
dotnet_diagnostic.CA1850.severity=warning
# CA1851: Possible multiple enumerations of 'IEnumerable' collection
dotnet_diagnostic.CA1851.severity=warning
# CA1852: Seal internal types
dotnet_diagnostic.CA1852.severity=warning
# CA1853: Unnecessary call to 'Dictionary.ContainsKey(key)'
dotnet_diagnostic.CA1853.severity=warning
# CA1854: Prefer the 'IDictionary.TryGetValue(TKey, out TValue)' method
dotnet_diagnostic.CA1854.severity=warning
# CA1855: Prefer 'Clear' over 'Fill'
dotnet_diagnostic.CA1855.severity=warning
# CA1856: Incorrect usage of ConstantExpected attribute
dotnet_diagnostic.CA1856.severity=warning
# CA1857: A constant is expected for the parameter
dotnet_diagnostic.CA1857.severity=warning
# CA1858: Use 'StartsWith' instead of 'IndexOf'
dotnet_diagnostic.CA1858.severity=warning
# CA1859: Use concrete types when possible for improved performance
dotnet_diagnostic.CA1859.severity=warning
# CA1860: Avoid using 'Enumerable.Any()' extension method
dotnet_diagnostic.CA1860.severity=warning
# CA1861: Avoid constant arrays as arguments
dotnet_diagnostic.CA1861.severity=warning
# CA1862: Use the 'StringComparison' method overloads to perform case-insensitive string comparisons
dotnet_diagnostic.CA1862.severity=warning
# CA1863: Use 'CompositeFormat'
dotnet_diagnostic.CA1863.severity=warning
# CA1864: Prefer the 'IDictionary.TryAdd(TKey, TValue)' method
dotnet_diagnostic.CA1864.severity=warning
# CA1865: Use char overload
dotnet_diagnostic.CA1865.severity=warning
# CA1866: Use char overload
dotnet_diagnostic.CA1866.severity=warning
# CA1867: Use char overload
dotnet_diagnostic.CA1867.severity=warning
# CA1868: Unnecessary call to 'Contains(item)'
dotnet_diagnostic.CA1868.severity=warning
# CA1869: Cache and reuse 'JsonSerializerOptions' instances
dotnet_diagnostic.CA1869.severity=warning
# CA1870: Use a cached 'SearchValues' instance
dotnet_diagnostic.CA1870.severity=warning
# CA2000: Dispose objects before losing scope
dotnet_diagnostic.CA2000.severity=warning
# CA2002: Do not lock on objects with weak identity
dotnet_diagnostic.CA2002.severity=warning
# CA2007: Consider calling ConfigureAwait on the awaited task
dotnet_diagnostic.CA2007.severity=warning
# CA2008: Do not create tasks without passing a TaskScheduler
dotnet_diagnostic.CA2008.severity=warning
# CA2009: Do not call ToImmutableCollection on an ImmutableCollection value
dotnet_diagnostic.CA2009.severity=warning
# CA2011: Avoid infinite recursion
dotnet_diagnostic.CA2011.severity=warning
# CA2012: Use ValueTasks correctly
dotnet_diagnostic.CA2012.severity=warning
# CA2013: Do not use ReferenceEquals with value types
dotnet_diagnostic.CA2013.severity=warning
# CA2014: Do not use stackalloc in loops
dotnet_diagnostic.CA2014.severity=warning
# CA2015: Do not define finalizers for types derived from MemoryManager<T>
dotnet_diagnostic.CA2015.severity=warning
# CA2016: Forward the 'CancellationToken' parameter to methods
dotnet_diagnostic.CA2016.severity=warning
# CA2017: Parameter count mismatch
dotnet_diagnostic.CA2017.severity=warning
# CA2018: 'Buffer.BlockCopy' expects the number of bytes to be copied for the 'count' argument
dotnet_diagnostic.CA2018.severity=warning
# CA2019: Improper 'ThreadStatic' field initialization
dotnet_diagnostic.CA2019.severity=warning
# CA2020: Prevent behavioral change
dotnet_diagnostic.CA2020.severity=warning
# CA2021: Do not call Enumerable.Cast<T> or Enumerable.OfType<T> with incompatible types
dotnet_diagnostic.CA2021.severity=warning
# CA2100: Review SQL queries for security vulnerabilities
dotnet_diagnostic.CA2100.severity=warning
# CA2101: Specify marshaling for P/Invoke string arguments
dotnet_diagnostic.CA2101.severity=warning
# CA2119: Seal methods that satisfy private interfaces
dotnet_diagnostic.CA2119.severity=warning
# CA2153: Do Not Catch Corrupted State Exceptions
dotnet_diagnostic.CA2153.severity=warning
# CA2200: Rethrow to preserve stack details
dotnet_diagnostic.CA2200.severity=warning
# CA2201: Do not raise reserved exception types
dotnet_diagnostic.CA2201.severity=warning
# CA2207: Initialize value type static fields inline