4 writes to EnforcementLevel
Microsoft.CodeAnalysis.Workspaces (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser.cs (1)
99
EnforcementLevel
= rule.EnforcementLevel,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_NamingRule.cs (1)
30
EnforcementLevel
= severity,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SerializableNamingRule.cs (2)
48
EnforcementLevel
= ((DiagnosticSeverity)Enum.Parse(typeof(DiagnosticSeverity), namingRuleElement.Attribute(nameof(EnforcementLevel)).Value)).ToReportDiagnostic(),
67
EnforcementLevel
= ((DiagnosticSeverity)reader.ReadInt32()).ToReportDiagnostic(),
7 references to EnforcementLevel
Microsoft.CodeAnalysis.Workspaces (7)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser.cs (1)
37
var ruleKey = (serializableNamingRule.SymbolSpecificationID, serializableNamingRule.NamingStyleID, serializableNamingRule.
EnforcementLevel
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (1)
68
entryWriter($"dotnet_naming_rule.{ruleNameMap[namingRule]}.severity", namingRule.
EnforcementLevel
.ToNotificationOption(defaultSeverity: DiagnosticSeverity.Hidden).ToEditorConfigString());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SerializableNamingRule.cs (5)
31
EnforcementLevel
);
39
new XAttribute(nameof(
EnforcementLevel
),
EnforcementLevel
.ToDiagnosticSeverity() ?? DiagnosticSeverity.Hidden));
48
EnforcementLevel = ((DiagnosticSeverity)Enum.Parse(typeof(DiagnosticSeverity), namingRuleElement.Attribute(nameof(
EnforcementLevel
)).Value)).ToReportDiagnostic(),
58
writer.WriteInt32((int)(
EnforcementLevel
.ToDiagnosticSeverity() ?? DiagnosticSeverity.Hidden));