30 lines
1.1 KiB
Plaintext
30 lines
1.1 KiB
Plaintext
is_global = true
|
|
|
|
## Globalization rules
|
|
|
|
# Specify IFormatProvider
|
|
dotnet_diagnostic.CA1305.severity = error
|
|
dotnet_code_quality.CA1305.excluded_symbol_names = T:System.Byte|T:System.SByte|T:System.Int16|T:System.UInt16|T:System.Int32|T:System.UInt32|T:System.Int64|T:System.UInt64|T:System.String|T:System.Text.StringBuilder|T:System.Convert
|
|
# Specify marshalling for P/Invoke string arguments
|
|
dotnet_diagnostic.CA2101.severity = suggestion
|
|
|
|
## Performance rules
|
|
|
|
# Do not initialize unnecessarily
|
|
dotnet_diagnostic.CA1805.severity = silent
|
|
# Mark members as static
|
|
dotnet_diagnostic.CA1822.severity = silent
|
|
# Use property instead of Linq Enumerable method
|
|
dotnet_code_quality.CA1826.exclude_ordefault_methods = true
|
|
# Avoid StringBuilder parameters for P/Invokes
|
|
dotnet_diagnostic.CA1838.severity = suggestion
|
|
|
|
## Usage rules
|
|
|
|
# Call GC.SuppressFinalize correctly
|
|
dotnet_diagnostic.CA1816.severity = none
|
|
# Do not raise reserved exception types
|
|
dotnet_diagnostic.CA2201.severity = suggestion
|
|
# Implement serialization constructors
|
|
dotnet_diagnostic.CA2229.severity = silent
|