-
Notifications
You must be signed in to change notification settings - Fork 10.1k
/
.globalconfig
31 lines (26 loc) · 1.62 KB
/
.globalconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
is_global = true
# CA1309: Use ordinal StringComparison
# https://github.com/dotnet/aspnetcore/pull/30111#issuecomment-777817003
dotnet_diagnostic.CA1309.severity = suggestion
# CA1304: Specify CultureInfo
dotnet_diagnostic.CA1304.severity = error
# CA1310: Specify StringComparison for correctness
dotnet_diagnostic.CA1310.severity = error
# TODO: remove this - https://github.com/dotnet/aspnetcore/issues/47912
dotnet_diagnostic.EnableGenerateDocumentationFile.severity = none
# Referencing types that are defined in M.CA.Workspaces is not appropriate
# for analyzers or source generators that might be invoked from a command
# line build because editor-specific types in M.CA.Workspaces are not
# available in the command line. By default, Roslyn enables RS1038
# which does a strict check and throws if a reference to M.CA.Workspaces
# is included in the assembly. Here, we opt for a more relaxed check that
# validates if M.CA.Workspace type references are included in the specific
# Roslyn components that might be loaded in command line builds. We do this
# because we ship editor-specific components, like the routing completion
# providers, in the shared framework and want to avoid the analyzers warning
# on the M.CA.Workspaces reference required for their components even though
# they are never loaded in command line builds. Note: the "relaxed" check that is
# enabled here will actually examine the types loaded by each individually analyzer
# to see if they are from a Workspaces assembly so it will take longer than the
# greedier (and stricter) check for references overall.
roslyn_correctness.assembly_reference_validation = relaxed