16 instantiations of CheckConfiguration
Microsoft.Build (16)
BuildCheck\API\CheckConfiguration.cs (3)
21
public static CheckConfiguration Default { get; } =
new
()
27
public static CheckConfiguration Null { get; } =
new
();
70
internal static CheckConfiguration Create(Dictionary<string, string>? configDictionary) =>
new
()
BuildCheck\Checks\CopyAlwaysCheck.cs (1)
18
new
CheckConfiguration
() { RuleId = RuleId, Severity = CheckResultSeverity.Warning });
BuildCheck\Checks\DoubleWritesCheck.cs (1)
26
new
CheckConfiguration
() { Severity = CheckResultSeverity.Warning });
BuildCheck\Checks\EmbeddedResourceCheck.cs (1)
18
new
CheckConfiguration
() { RuleId = RuleId, Severity = CheckResultSeverity.Warning });
BuildCheck\Checks\ExecCliBuildCheck.cs (1)
24
new
CheckConfiguration
() { Severity = CheckResultSeverity.Warning });
BuildCheck\Checks\NoEnvironmentVariablePropertyCheck.cs (1)
18
new
CheckConfiguration
() { Severity = CheckResultSeverity.Suggestion });
BuildCheck\Checks\PreferProjectReferenceCheck.cs (1)
18
new
CheckConfiguration
() { RuleId = RuleId, Severity = CheckResultSeverity.Warning });
BuildCheck\Checks\PropertiesUsageCheck.cs (3)
20
new
CheckConfiguration
() { RuleId = "BC0201", Severity = CheckResultSeverity.Warning, EvaluationCheckScope = EvaluationCheckScope.ProjectFileOnly });
25
new
CheckConfiguration
() { RuleId = "BC0202", Severity = CheckResultSeverity.Warning, EvaluationCheckScope = EvaluationCheckScope.ProjectFileOnly });
30
new
CheckConfiguration
() { RuleId = "BC0203", Severity = CheckResultSeverity.None, EvaluationCheckScope = EvaluationCheckScope.ProjectFileOnly });
BuildCheck\Checks\SharedOutputPathCheck.cs (1)
18
new
CheckConfiguration
() { RuleId = RuleId, Severity = CheckResultSeverity.Warning });
BuildCheck\Checks\TargetFrameworkConfusionCheck.cs (1)
17
new
CheckConfiguration
() { RuleId = RuleId, Severity = CheckResultSeverity.Warning });
BuildCheck\Checks\TargetFrameworkUnexpectedCheck.cs (1)
18
new
CheckConfiguration
() { RuleId = RuleId, Severity = CheckResultSeverity.Warning });
BuildCheck\Checks\UntrustedLocationCheck.cs (1)
25
new
CheckConfiguration
() { Severity = CheckResultSeverity.Error });
35 references to CheckConfiguration
Microsoft.Build (35)
BuildCheck\API\CheckConfiguration.cs (5)
21
public static
CheckConfiguration
Default { get; } = new()
27
public static
CheckConfiguration
Null { get; } = new();
64
/// Creates a <see cref="
CheckConfiguration
"/> object based on the provided configuration dictionary.
69
/// <returns>A new instance of <see cref="
CheckConfiguration
"/> with the specified settings.</returns>
70
internal static
CheckConfiguration
Create(Dictionary<string, string>? configDictionary) => new()
BuildCheck\API\CheckRule.cs (3)
27
CheckConfiguration
defaultConfiguration,
51
CheckConfiguration
defaultConfiguration)
93
public
CheckConfiguration
DefaultConfiguration { get; }
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (2)
257
CheckConfiguration
[] userEditorConfigs =
315
CheckConfiguration
[] userEditorConfigs =
BuildCheck\Infrastructure\CheckConfigurationEffective.cs (2)
26
new(string.Empty,
CheckConfiguration
.Default.EvaluationCheckScope!.Value,
27
CheckConfiguration
.Default.Severity!.Value);
BuildCheck\Infrastructure\CheckWrapper.cs (1)
82
IReadOnlyList<
CheckConfiguration
> editorConfigs)
BuildCheck\Infrastructure\ConfigurationProvider.cs (19)
23
private readonly ConcurrentDictionary<string,
CheckConfiguration
> _checkConfiguration = new ConcurrentDictionary<string,
CheckConfiguration
>(StringComparer.InvariantCultureIgnoreCase);
109
public
CheckConfiguration
[] GetUserConfigurations(
126
CheckConfiguration
[] userConfigs,
229
internal
CheckConfiguration
GetUserConfiguration(string projectFullPath, string ruleId)
233
var
editorConfigValue = _checkConfiguration.GetOrAdd(cacheKey, (key) =>
235
CheckConfiguration
? editorConfig =
CheckConfiguration
.Null;
241
editorConfig =
CheckConfiguration
.Create(config);
262
CheckConfiguration
defaultConfig,
263
CheckConfiguration
editorConfig)
272
CheckConfiguration
defaultConfig)
276
CheckConfiguration
editorConfigValue,
277
CheckConfiguration
defaultValue,
278
Func<
CheckConfiguration
, T?> propertyGetter) where T : struct
281
EnsureNonNull(propertyGetter(
CheckConfiguration
.Default));
283
private CheckResultSeverity GetSeverityValue(
CheckConfiguration
editorConfigValue,
CheckConfiguration
defaultValue)
294
resultSeverity ??= defaultValue.Severity ?? EnsureNonNull(
CheckConfiguration
.Default.Severity);
BuildCheck\Infrastructure\CustomConfigurationData.cs (1)
12
/// The configuration data that is recognized by the infrastructure is passed as <see cref="
CheckConfiguration
"/>.
BuildCheck\Infrastructure\IConfigurationProvider.cs (2)
11
CheckConfiguration
[] GetUserConfigurations(
20
CheckConfiguration
[] userConfigs,