4 writes to EnforcementLevel
Microsoft.CodeAnalysis.Workspaces (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser.cs (1)
84
EnforcementLevel
= rule.EnforcementLevel,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_NamingRule.cs (1)
33
EnforcementLevel
= severity,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SerializableNamingRule.cs (2)
46
EnforcementLevel
= ((DiagnosticSeverity)Enum.Parse(typeof(DiagnosticSeverity), namingRuleElement.Attribute(nameof(EnforcementLevel))!.Value)).ToReportDiagnostic(),
65
EnforcementLevel
= ((DiagnosticSeverity)reader.ReadInt32()).ToReportDiagnostic(),
7 references to EnforcementLevel
Microsoft.CodeAnalysis.Workspaces (7)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser.cs (1)
37
(serializableNamingRule.SymbolSpecificationID, serializableNamingRule.NamingStyleID, serializableNamingRule.
EnforcementLevel
),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (1)
78
entryWriter($"dotnet_naming_rule.{ruleName}.severity", namingRule.
EnforcementLevel
.ToNotificationOption(defaultSeverity: DiagnosticSeverity.Hidden).ToEditorConfigString());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SerializableNamingRule.cs (5)
29
EnforcementLevel
);
37
new XAttribute(nameof(
EnforcementLevel
),
EnforcementLevel
.ToDiagnosticSeverity() ?? DiagnosticSeverity.Hidden));
46
EnforcementLevel = ((DiagnosticSeverity)Enum.Parse(typeof(DiagnosticSeverity), namingRuleElement.Attribute(nameof(
EnforcementLevel
))!.Value)).ToReportDiagnostic(),
56
writer.WriteInt32((int)(
EnforcementLevel
.ToDiagnosticSeverity() ?? DiagnosticSeverity.Hidden));