[Feature Request]: Analyzer - report when Target Explicit Input list doesn't include inner Task parameters
- Dominant language
- C#
- Stars
- 5.5k
- Forks
- 1.5k
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 139
Description
### Summary
There should be an analyzer that validates that Targets that explicitly track Inputs are accounting for Properties/Items that
In https://github.com/dotnet/sdk/issues/16325 we discovered that the `CoreCompile` Target wasn't tracking an value that was used by a Task inside the Target.
### Background and Motivation
https://github.com/dotnet/sdk/issues/16325 is an example of this - the `$(SourceLink)` property points to the generated sourcelink file, and is an input to the `Csc` Task inside `CoreCompile`, but that Property isn't captured in the `Inputs` of `CoreCompile`.
### Proposed Feature
We should have an analyzer that validates this and suggests that users add specific values to the Inputs list.
### Alternative Designs
_No response_
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.