2 writes to Id
Microsoft.Build (2)
BuildCheck\API\CheckRule.cs (2)
30
Id
= id;
53
Id
= id;
24 references to Id
Microsoft.Build (18)
BuildCheck\API\BuildCheckResult.cs (2)
41
public string Code => CheckRule.
Id
;
57
? $"https://aka.ms/buildcheck/codes#{CheckRule.
Id
} - {string.Format(CheckRule.MessageFormat, MessageArgs)}"
BuildCheck\Checks\PropertiesUsageCheck.cs (7)
49
var config = configurationContext.CheckConfig.FirstOrDefault(c => c.RuleId == _usedBeforeInitializedRule.
Id
)
55
config = configurationContext.CheckConfig.FirstOrDefault(c => c.RuleId == _unusedPropertyRule.
Id
)
61
config = configurationContext.CheckConfig.FirstOrDefault(c => c.RuleId == _usedBeforeInitializedRule.
Id
)
73
GetAllowUninitPropsInConditionsConfig(customConfigurationData, _usedBeforeInitializedRule.
Id
);
75
GetAllowUninitPropsInConditionsConfig(customConfigurationData, _initializedAfterUsedRule.
Id
);
83
$"[{_usedBeforeInitializedRule.
Id
}] and [{_initializedAfterUsedRule.
Id
}] are not allowed to have differing configuration value for [{_allowUninitPropsInConditionsKey}]");
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (4)
148
new BuiltInCheckFactory([SharedOutputPathCheck.SupportedRule.
Id
], SharedOutputPathCheck.SupportedRule.DefaultConfiguration.IsEnabled ?? false, Construct<SharedOutputPathCheck>),
205
instance.SupportedRules.Select(r => r.
Id
).ToArray(),
272
!check.SupportedRules.Select(r => r.
Id
)
277
$"The check '{check.FriendlyName}' exposes rules '{check.SupportedRules.Select(r => r.
Id
).ToCsvString()}', but different rules were declared during registration: '{checkFactoryContext.RuleIds.ToCsvString()}'");
BuildCheck\Infrastructure\BuildEventsProcessor.cs (2)
245
$"The check '{checkWrapper.Check.FriendlyName}' reported a result for a rule '{result.CheckRule.
Id
}' that it does not support.");
252
r.RuleId.Equals(result.CheckRule.
Id
, StringComparison.CurrentCultureIgnoreCase));
BuildCheck\Infrastructure\CheckWrapper.cs (1)
57
ruleId: checkRule.
Id
,
BuildCheck\Infrastructure\ConfigurationProvider.cs (2)
134
check.SupportedRules[idx].
Id
,
258
=> GetMergedConfiguration(projectFullPath, checkRule.
Id
, checkRule.DefaultConfiguration);
Microsoft.Build.BuildCheck.UnitTests (6)
DoubleWritesAnalyzer_Tests.cs (2)
56
_registrationContext.Results[0].CheckRule.
Id
.ShouldBe("BC0102");
77
_registrationContext.Results.ForEach(result => result.CheckRule.
Id
.ShouldBe("BC0102"));
SharedOutputPathCheck_Tests.cs (3)
88
_registrationContext.Results[0].CheckRule.
Id
.ShouldBe("BC0101");
89
_registrationContext.Results[1].CheckRule.
Id
.ShouldBe("BC0101");
133
result.CheckRule.
Id
.ShouldBe("BC0101");
TaskInvocationAnalysisDataTests.cs (1)
67
new ([TestCheck.SupportedRule.
Id
], true, () => s_testCheck = new TestCheck()),