33 writes to EnforcementLevel
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (5)
Completion\CompletionProviders\DeclarationNameCompletionProviderTests.cs (1)
3030EnforcementLevel = ReportDiagnostic.Error
ConvertAutoPropertyToFullProperty\ConvertAutoPropertyToFullPropertyTests_OptionSets.cs (3)
96EnforcementLevel = ReportDiagnostic.Error 128EnforcementLevel = ReportDiagnostic.Error 160EnforcementLevel = ReportDiagnostic.Error
ConvertTupleToStruct\ConvertTupleToStructTests.cs (1)
401EnforcementLevel = ReportDiagnostic.Error
Microsoft.CodeAnalysis.EditorFeatures.DiagnosticsTests.Utilities (21)
NamingStyles\NamingStylesTestOptionSets.cs (21)
150EnforcementLevel = ReportDiagnostic.Error 181EnforcementLevel = ReportDiagnostic.Error 213EnforcementLevel = ReportDiagnostic.Error 245EnforcementLevel = ReportDiagnostic.Error 277EnforcementLevel = ReportDiagnostic.Error 315EnforcementLevel = ReportDiagnostic.Error 346EnforcementLevel = ReportDiagnostic.Error 377EnforcementLevel = ReportDiagnostic.Error 408EnforcementLevel = ReportDiagnostic.Error 439EnforcementLevel = ReportDiagnostic.Error 471EnforcementLevel = ReportDiagnostic.Error 503EnforcementLevel = ReportDiagnostic.Error 535EnforcementLevel = ReportDiagnostic.Error 567EnforcementLevel = ReportDiagnostic.Error 599EnforcementLevel = ReportDiagnostic.Error 631EnforcementLevel = ReportDiagnostic.Error 663EnforcementLevel = ReportDiagnostic.Error 697EnforcementLevel = ReportDiagnostic.Error 744EnforcementLevel = ReportDiagnostic.Error 751EnforcementLevel = ReportDiagnostic.Error 785EnforcementLevel = ReportDiagnostic.Error
Microsoft.CodeAnalysis.Workspaces (5)
EditorConfigFileGenerator_NamingStyles.cs (1)
25EnforcementLevel = x.EnforcementLevel,
EditorConfigNamingStyleParser.cs (1)
99EnforcementLevel = rule.EnforcementLevel,
EditorConfigNamingStyleParser_NamingRule.cs (1)
30EnforcementLevel = severity,
SerializableNamingRule.cs (2)
48EnforcementLevel = ((DiagnosticSeverity)Enum.Parse(typeof(DiagnosticSeverity), namingRuleElement.Attribute(nameof(EnforcementLevel)).Value)).ToReportDiagnostic(), 69EnforcementLevel = ((DiagnosticSeverity)reader.ReadInt32()).ToReportDiagnostic(),
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Options\OptionsTestHelpers.cs (1)
170EnforcementLevel = ReportDiagnostic.Error
Microsoft.VisualStudio.LanguageServices.Implementation (1)
Options\Style\NamingPreferences\NamingStyleOptionPageControl.xaml.cs (1)
155EnforcementLevel = item.SelectedNotificationPreference.Notification.Severity,
16 references to EnforcementLevel
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (8)
Diagnostics\NamingStyles\EditorConfigNamingStyleParserTests.cs (8)
45Assert.Equal(ReportDiagnostic.Warn, namingRule.EnforcementLevel); 90Assert.Equal(ReportDiagnostic.Warn, namingRule.EnforcementLevel); 115Assert.Equal(ReportDiagnostic.Error, namingRule.EnforcementLevel); 173Assert.Equal(ReportDiagnostic.Info, namingRule.EnforcementLevel); 221Assert.Equal(ReportDiagnostic.Hidden, namingRule.EnforcementLevel); 264Assert.Equal(ReportDiagnostic.Info, namingRule.EnforcementLevel); 307Assert.Equal(ReportDiagnostic.Info, namingRule.EnforcementLevel); 452Assert.Equal(ReportDiagnostic.Warn, namingRule.EnforcementLevel);
Microsoft.CodeAnalysis.Workspaces (7)
EditorConfigFileGenerator_NamingStyles.cs (1)
72editorconfig.AppendLine($"dotnet_naming_rule.{ruleNameMap[namingRule]}.severity = {namingRule.EnforcementLevel.ToNotificationOption(defaultSeverity: DiagnosticSeverity.Hidden).ToEditorConfigString()}");
EditorConfigNamingStyleParser.cs (1)
37var ruleKey = (serializableNamingRule.SymbolSpecificationID, serializableNamingRule.NamingStyleID, serializableNamingRule.EnforcementLevel);
SerializableNamingRule.cs (5)
31EnforcementLevel); 39new XAttribute(nameof(EnforcementLevel), EnforcementLevel.ToDiagnosticSeverity() ?? DiagnosticSeverity.Hidden)); 48EnforcementLevel = ((DiagnosticSeverity)Enum.Parse(typeof(DiagnosticSeverity), namingRuleElement.Attribute(nameof(EnforcementLevel)).Value)).ToReportDiagnostic(), 60writer.WriteInt32((int)(EnforcementLevel.ToDiagnosticSeverity() ?? DiagnosticSeverity.Hidden));
Microsoft.VisualStudio.LanguageServices.Implementation (1)
Options\Style\NamingPreferences\NamingStyleOptionPageViewModel.cs (1)
53viewModel.SelectedNotificationPreference = viewModel.NotificationPreferences.Single(n => n.Notification.Severity == namingRule.EnforcementLevel);