-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[Built-in analyzer] Item is updated inside a target #9884
Copy link
Copy link
Open
Labels
Area: BuildCheckBuildCheck SuggestionSuggestion for a built in MSBuild analyzer. Label should be applied together with 'Area: BuildCheck'Suggestion for a built in MSBuild analyzer. Label should be applied together with 'Area: BuildCheck'triaged
Description
Background
This issue tracks one of the BuildCheck analyzers we would like to ship in-box with MSBuild.
Goal
Implement an analyzer with the following rule: No item is attempted to be updated using the Update attribute inside a target.
Notes
While the Update attribute can be added to items inside a target, it is ignored and the transformation is applied to all items of the given type. Implementing this analyzer will likely require introducing TaskParameterMessageKind.UpdateItem to communicate the attempted operation to the analyzer.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Area: BuildCheckBuildCheck SuggestionSuggestion for a built in MSBuild analyzer. Label should be applied together with 'Area: BuildCheck'Suggestion for a built in MSBuild analyzer. Label should be applied together with 'Area: BuildCheck'triaged
Type
Fields
Give feedbackNo fields configured for issues without a type.