[Built-in analyzer] Item is updated inside a target
Open
Area: BuildCheck
BuildCheck Suggestion
triaged
- Dominant language
- C#
- Stars
- 5.5k
- Forks
- 1.5k
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 141
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.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.