1 write to GlobalSection
Microsoft.CodeAnalysis (1)
CommandLine\AnalyzerConfig.cs (1)
144
GlobalSection
= globalSection;
22 references to GlobalSection
Microsoft.CodeAnalysis (4)
CommandLine\AnalyzerConfig.cs (3)
94
internal bool IsRoot =>
GlobalSection
.Properties.TryGetValue("root", out string? val) && val == "true";
99
internal bool IsGlobal => _hasGlobalFileName ||
GlobalSection
.Properties.ContainsKey(GlobalKey);
122
if (
GlobalSection
.Properties.TryGetValue(GlobalLevelKey, out string? val) && int.TryParse(val, out int level))
CommandLine\AnalyzerConfigSet.cs (1)
502
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;
134
var properties = config.
GlobalSection
.Properties;
149
var properties = config.
GlobalSection
.Properties;
159
var properties = config.
GlobalSection
.Properties;
173
config.
GlobalSection
.Properties);
183
var properties = config.
GlobalSection
.Properties;
194
var properties = config.
GlobalSection
.Properties;
205
var properties = config.
GlobalSection
.Properties;
218
var properties = config.
GlobalSection
.Properties;
232
var properties = config.
GlobalSection
.Properties;
244
var properties = config.
GlobalSection
.Properties;
257
var properties = config.
GlobalSection
.Properties;
268
var properties = config.
GlobalSection
.Properties;
282
var properties = config.
GlobalSection
.Properties;
299
var properties = config.
GlobalSection
.Properties;
322
config.
GlobalSection
.Properties);
332
config.
GlobalSection
.Properties);