Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 52 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -503,4 +503,55 @@ dotnet_naming_symbols.private_internal_fields.applicable_kinds = field
dotnet_naming_symbols.private_internal_fields.applicable_accessibilities = private, internal

dotnet_naming_style.camel_case_underscore_style.required_prefix = _
dotnet_naming_style.camel_case_underscore_style.capitalization = camel_case
dotnet_naming_style.camel_case_underscore_style.capitalization = camel_case

# Meziantou.Analyzer rules
# https://github.com/meziantou/Meziantou.Analyzer/tree/main/docs/Rules

# MA0002: Use IEqualityComparer/IComparer - HashSet/Dictionary use ordinal by default which is correct for most cases
dotnet_diagnostic.MA0002.severity = suggestion

# MA0004: Use Task.ConfigureAwait
dotnet_diagnostic.MA0004.severity = suggestion

# MA0006: Use string.Equals instead of == for string comparison
dotnet_diagnostic.MA0006.severity = suggestion

# MA0011: IFormatProvider is missing
dotnet_diagnostic.MA0011.severity = suggestion

# MA0015: Specify the parameter name in ArgumentException - lowered since validation methods validate properties not parameters
dotnet_diagnostic.MA0015.severity = suggestion

# MA0016: Prefer using collection abstraction instead of implementation
dotnet_diagnostic.MA0016.severity = suggestion

# MA0018: Do not declare static members on generic types
dotnet_diagnostic.MA0018.severity = suggestion

# MA0026: Fix TODO comment
dotnet_diagnostic.MA0026.severity = suggestion

# MA0039: Do not write your own certificate validation method - intentional for simulator to accept self-signed certs
dotnet_diagnostic.MA0039.severity = none

# MA0048: File name must match type name - noisy for internal helper types in same file
dotnet_diagnostic.MA0048.severity = suggestion

# MA0049: Type name should not match containing namespace
dotnet_diagnostic.MA0049.severity = suggestion

# MA0051: Method is too long
dotnet_diagnostic.MA0051.severity = suggestion

# MA0055: Do not use finalizer - allowed in test fixtures for cleanup safety nets
dotnet_diagnostic.MA0055.severity = suggestion

# MA0158: Use System.Threading.Lock (.NET 9+) - lowered due to multi-targeting .NET 8 which doesn't have Lock
dotnet_diagnostic.MA0158.severity = suggestion

# MA0074: Use overload with StringComparison parameter
dotnet_diagnostic.MA0074.severity = warning

# MA0099: Use the null-forgiving operator with caution (disallow !)
dotnet_diagnostic.MA0099.severity = warning
Loading
Loading