3 instantiations of RuleSet
Microsoft.CodeAnalysis (3)
RuleSet\RuleSet.cs (2)
96
return new
RuleSet
(FilePath, generalOption, specificOptions.ToImmutable(), _includes);
185
return new
RuleSet
(_filePath, effectiveGeneralOption, effectiveSpecificOptions.ToImmutableDictionary(), ImmutableArray<RuleSetInclude>.Empty);
RuleSet\RuleSetProcessor.cs (1)
140
return new
RuleSet
(filePath, generalOption, specificOptions.ToImmutable(), includes.ToImmutable());
56 references to RuleSet
Microsoft.CodeAnalysis (18)
CommandLine\CommandLineParser.cs (1)
1317
return
RuleSet
.GetDiagnosticOptionsFromRulesetFile(fullPath, out diagnosticOptions, diagnostics, _messageProvider);
RuleSet\RuleSet.cs (10)
70
public
RuleSet
? WithEffectiveAction(ReportDiagnostic action)
105
private
RuleSet
GetEffectiveRuleSet(HashSet<string> includedRulesetPaths)
124
var
ruleSet = ruleSetInclude.LoadRuleSet(this);
142
RuleSet
? effectiveRuleset = ruleSet.GetEffectiveRuleSet(includedRulesetPaths);
206
var
ruleSet = ruleSetInclude.LoadRuleSet(this);
254
public static
RuleSet
LoadEffectiveRuleSetFromFile(string filePath)
256
var
ruleSet = RuleSetProcessor.LoadFromFile(filePath);
269
var
ruleSet = RuleSetProcessor.LoadFromFile(filePath);
306
var
ruleSet =
RuleSet
.LoadEffectiveRuleSetFromFile(resolvedPath);
RuleSet\RuleSetInclude.cs (4)
47
public
RuleSet
? LoadRuleSet(
RuleSet
parent)
50
RuleSet
? ruleSet = null;
81
private string? GetIncludePath(
RuleSet
parent)
RuleSet\RuleSetProcessor.cs (3)
20
/// This type is responsible for parsing a ruleset xml file and producing a <see cref="
RuleSet
"/> object.
59
public static
RuleSet
LoadFromFile(string filePath)
96
private static
RuleSet
ReadRuleSet(XElement ruleSetNode, string filePath)
Microsoft.CodeAnalysis.UnitTests (35)
CommonCommandLineParserTests.cs (35)
31
private
RuleSet
ParseRuleSet(string source, params string[] otherSources)
45
return
RuleSet
.LoadEffectiveRuleSetFromFile(file.Path);
166
var
ruleSet = ParseRuleSet(source);
201
var
ruleSet = ParseRuleSet(source);
215
var
ruleSet = ParseRuleSet(source);
230
var
ruleSet = ParseRuleSet(source, new string[] { "" });
232
Assert.Equal(1,
RuleSet
.GetEffectiveIncludesFromFile(ruleSet.FilePath).Count());
255
var
ruleSet = ParseRuleSet(source, source1);
257
Assert.Equal(2,
RuleSet
.GetEffectiveIncludesFromFile(ruleSet.FilePath).Count());
290
var
ruleSet = ParseRuleSet(source, source1, source2);
292
Assert.Equal(3,
RuleSet
.GetEffectiveIncludesFromFile(ruleSet.FilePath).Count());
409
var
ruleSet = ParseRuleSet(source);
450
var
ruleSet = ParseRuleSet(source);
474
var
ruleSet =
RuleSet
.LoadEffectiveRuleSetFromFile(file.Path);
500
var
ruleSet = ParseRuleSet(source, source1);
528
var
ruleSet = ParseRuleSet(source, source1);
556
var
ruleSet = ParseRuleSet(source, source1);
585
var
ruleSet = ParseRuleSet(source, source1);
623
var
ruleSet = ParseRuleSet(source, source1, source2);
661
var
ruleSet = ParseRuleSet(source, source1, source2);
691
var
ruleSet = ParseRuleSet(source, source1);
727
var
ruleSet = ParseRuleSet(source, source1, source2);
762
var
ruleSet = ParseRuleSet(source, source1, source2);
789
var
ruleSet = ParseRuleSet(source, source1);
813
var
ruleSet = ParseRuleSet(source, source1);
840
var
ruleSet = ParseRuleSet(source, source1);
863
var
ruleSet = ParseRuleSet(source, source1);
885
var
ruleSet = ParseRuleSet(source, source1);
910
var
ruleSet = ParseRuleSet(source, source1);
951
var
ruleSet = ParseRuleSet(source, source1, source2);
989
RuleSet
.LoadEffectiveRuleSetFromFile(file.Path);
1014
var includePaths =
RuleSet
.GetEffectiveIncludesFromFile(file.Path);
1051
var includePaths =
RuleSet
.GetEffectiveIncludesFromFile(file.Path);
1103
var includePaths =
RuleSet
.GetEffectiveIncludesFromFile(file.Path);
Microsoft.VisualStudio.LanguageServices (3)
ProjectSystem\RuleSets\VisualStudioRuleSetManager.RuleSetFile.cs (3)
55
includes =
RuleSet
.GetEffectiveIncludesFromFile(FilePath);
131
var
effectiveRuleset =
RuleSet
.LoadEffectiveRuleSetFromFile(FilePath);