-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProductionCode.globalconfig
More file actions
20 lines (16 loc) · 1.14 KB
/
Copy pathProductionCode.globalconfig
File metadata and controls
20 lines (16 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Global AnalyzerConfig
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/configuration-files#global-analyzerconfig
is_global = true
# IDE0100: "Remove unnecessary equality operator" a.k.a. "Remove redundant equality"
dotnet_diagnostic.IDE0100.severity = warning
# CA1707: "Identifiers should not contain underscores"
# PEARL: To set the severity, we have to use 'dotnet_diagnostic.CA1707.severity', but to set the api surface, we have to
# use 'dotnet_code_quality.CA1707.api_surface'! Go figure.
dotnet_diagnostic.CA1707.severity = true
dotnet_code_quality.CA1707.api_surface = public
# Justification: Visible identifiers should follow standard naming conventions, i.e. be PascalCase and contain no
# underscores. Mon-visible identifiers should give the programmer more freedom, i.e. the freedom to add underscores.
# CA1515: "Consider making public types internal"
dotnet_diagnostic.CA1515.severity = suggestion # TODO: promote to warning.
# Justification: As the code base stands right now, enabling this would yield an awful lot of warnings. However, it
# should be enabled one day, as it will promote good programming practices.