1 write to GlobalSection
Microsoft.CodeAnalysis (1)
CommandLine\AnalyzerConfig.cs (1)
164
GlobalSection
= globalSection;
22 references to GlobalSection
Microsoft.CodeAnalysis (4)
CommandLine\AnalyzerConfig.cs (3)
114
internal bool IsRoot =>
GlobalSection
.Properties.TryGetValue("root", out string? val) && val == "true";
119
internal bool IsGlobal => _hasGlobalFileName ||
GlobalSection
.Properties.ContainsKey(GlobalKey);
142
if (
GlobalSection
.Properties.TryGetValue(GlobalLevelKey, out string? val) && int.TryParse(val, out int level))
CommandLine\AnalyzerConfigSet.cs (1)
491
MergeSection(config.PathToFile, config.
GlobalSection
, config.GlobalLevel, isGlobalSection: true);
Microsoft.CodeAnalysis.UnitTests (18)
Analyzers\AnalyzerConfigTests.cs (18)
42
Assert.Equal("", config.
GlobalSection
.Name);
43
var properties = config.
GlobalSection
.Properties;
168
var properties = config.
GlobalSection
.Properties;
183
var properties = config.
GlobalSection
.Properties;
193
var properties = config.
GlobalSection
.Properties;
207
config.
GlobalSection
.Properties);
217
var properties = config.
GlobalSection
.Properties;
228
var properties = config.
GlobalSection
.Properties;
239
var properties = config.
GlobalSection
.Properties;
252
var properties = config.
GlobalSection
.Properties;
266
var properties = config.
GlobalSection
.Properties;
278
var properties = config.
GlobalSection
.Properties;
291
var properties = config.
GlobalSection
.Properties;
302
var properties = config.
GlobalSection
.Properties;
316
var properties = config.
GlobalSection
.Properties;
333
var properties = config.
GlobalSection
.Properties;
356
config.
GlobalSection
.Properties);
366
config.
GlobalSection
.Properties);