13 references to Rules
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (6)
Diagnostics\NamingStyles\EditorConfigNamingStyleParserTests.cs (6)
506Assert.Equal($"{firstNameAfterOrdering}_style", namingStylePreferences.Rules.NamingRules[0].NamingStyle.Name); 507Assert.Equal($"{secondNameAfterOrdering}_style", namingStylePreferences.Rules.NamingRules[1].NamingStyle.Name); 542Assert.Equal($"{firstNameAfterOrdering}_style", namingStylePreferences.Rules.NamingRules[0].NamingStyle.Name); 543Assert.Equal($"{secondNameAfterOrdering}_style", namingStylePreferences.Rules.NamingRules[1].NamingStyle.Name); 576Assert.Equal($"{firstNameAfterOrdering}_style", namingStylePreferences.Rules.NamingRules[0].NamingStyle.Name); 577Assert.Equal($"{secondNameAfterOrdering}_style", namingStylePreferences.Rules.NamingRules[1].NamingStyle.Name);
Microsoft.CodeAnalysis.CSharp.Features (1)
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.cs (1)
863var namingRules = Options.NamingStyle.Rules.NamingRules;
Microsoft.CodeAnalysis.EditorFeatures (3)
EditorConfigSettings\Updater\NamingStyles\SourceTextExtensions.cs (3)
92=> csharp.Rules.NamingRules.Intersect(visualBasic.Rules.NamingRules, NamingRuleComparerIgnoreGUIDs.Instance); 95=> csharp.Rules.NamingRules.Except(common, NamingRuleComparerIgnoreGUIDs.Instance);
Microsoft.CodeAnalysis.Features (1)
NamingStyleDiagnosticAnalyzerBase.cs (1)
138var namingStyleRules = namingPreferences.Rules;
Microsoft.CodeAnalysis.Workspaces (1)
EditorConfigNamingStyleParser.cs (1)
84var orderedRules = preferences.Rules.NamingRules
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
EditorConfigStorageLocation\NamingStylePreferenceEditorConfigStorageLocationTests.cs (1)
36Assert.Equal(ReportDiagnostic.Error, value.Rules.NamingRules[0].EnforcementLevel);