47 references to EvaluationCheckScope
Microsoft.Build (23)
BuildCheck\API\CheckConfiguration.cs (6)
24
EvaluationCheckScope = BuildCheck.
EvaluationCheckScope
.ProjectFileOnly,
38
public
EvaluationCheckScope
? EvaluationCheckScope { get; init; }
76
private static
EvaluationCheckScope
? TryExtractEvaluationCheckScope(Dictionary<string, string>? config)
88
return BuildCheck.
EvaluationCheckScope
.ProjectFileOnly;
90
return BuildCheck.
EvaluationCheckScope
.WorkTreeImports;
92
return BuildCheck.
EvaluationCheckScope
.All;
BuildCheck\Checks\NoEnvironmentVariablePropertyCheck.cs (1)
32
private
EvaluationCheckScope
_scope;
BuildCheck\Checks\PropertiesUsageCheck.cs (6)
22
new CheckConfiguration() { Severity = CheckResultSeverity.Warning, EvaluationCheckScope =
EvaluationCheckScope
.ProjectFileOnly });
27
new CheckConfiguration() { Severity = CheckResultSeverity.Warning, EvaluationCheckScope =
EvaluationCheckScope
.ProjectFileOnly });
32
new CheckConfiguration() { Severity = CheckResultSeverity.Suggestion, EvaluationCheckScope =
EvaluationCheckScope
.ProjectFileOnly });
43
private
EvaluationCheckScope
_uninitializedReadScope;
44
private
EvaluationCheckScope
_unusedPropertyScope;
45
private
EvaluationCheckScope
_initializedAfterUseScope;
BuildCheck\Infrastructure\CheckConfigurationEffective.cs (2)
14
public CheckConfigurationEffective(string ruleId,
EvaluationCheckScope
evaluationCheckScope, CheckResultSeverity severity)
32
public
EvaluationCheckScope
EvaluationCheckScope { get; }
BuildCheck\Infrastructure\CheckScopeClassifier.cs (8)
22
public static Func<
EvaluationCheckScope
, bool> IsScopingReady => (scope) => (scope is
EvaluationCheckScope
.ProjectFileOnly or
EvaluationCheckScope
.All) || IsScopingInitialized;
33
EvaluationCheckScope
scope,
47
EvaluationCheckScope
scope,
51
EvaluationCheckScope
.ProjectFileOnly => filePathOfEvent == projectFileFullPath,
52
EvaluationCheckScope
.WorkTreeImports => filePathOfEvent != null
55
EvaluationCheckScope
.All => true,
Microsoft.Build.BuildCheck.UnitTests (24)
CheckConfiguration_Test.cs (8)
78
[InlineData("project_file",
EvaluationCheckScope
.ProjectFileOnly)]
79
[InlineData("projectfile",
EvaluationCheckScope
.ProjectFileOnly)]
80
[InlineData("PROJECT_FILE",
EvaluationCheckScope
.ProjectFileOnly)]
81
[InlineData("work_tree_imports",
EvaluationCheckScope
.WorkTreeImports)]
82
[InlineData("WORK_TREE_IMPORTS",
EvaluationCheckScope
.WorkTreeImports)]
83
[InlineData("all",
EvaluationCheckScope
.All)]
84
[InlineData("ALL",
EvaluationCheckScope
.All)]
85
public void CreateCheckConfiguration_EvaluationCheckScope(string parameter,
EvaluationCheckScope
? expected)
CheckConfigurationEffectiveTests.cs (7)
15
[InlineData("ruleId",
EvaluationCheckScope
.ProjectFileOnly, CheckResultSeverity.Warning, true)]
16
[InlineData("ruleId2",
EvaluationCheckScope
.ProjectFileOnly, CheckResultSeverity.Warning, true)]
17
[InlineData("ruleId",
EvaluationCheckScope
.ProjectFileOnly, CheckResultSeverity.Error, false)]
20
EvaluationCheckScope
secondScope,
26
evaluationCheckScope:
EvaluationCheckScope
.ProjectFileOnly,
46
evaluationCheckScope:
EvaluationCheckScope
.ProjectFileOnly,
59
evaluationCheckScope:
EvaluationCheckScope
.ProjectFileOnly,
ConfigurationProvider_Tests.cs (1)
121
buildConfig.EvaluationCheckScope.ShouldBe(
EvaluationCheckScope
.ProjectFileOnly);
EndToEndTests.cs (8)
383
[InlineData(
EvaluationCheckScope
.ProjectFileOnly)]
384
[InlineData(
EvaluationCheckScope
.WorkTreeImports)]
385
[InlineData(
EvaluationCheckScope
.All)]
386
public void NoEnvironmentVariableProperty_Scoping(
EvaluationCheckScope
scope)
392
EvaluationCheckScope
.ProjectFileOnly => "project_file",
393
EvaluationCheckScope
.WorkTreeImports => "work_tree_imports",
394
EvaluationCheckScope
.All => "all",
412
if(scope ==
EvaluationCheckScope
.ProjectFileOnly)