Open timheuer opened 7 months ago
Setting the first analyzer size to medium because we'll need to setup the infrastructure in the repo.
Another potential analyzer: Validate the .csproj path passed to AddProject
exists (although this might violate the "don't do I/O from analyzers" rule).
Another analyzer: Provide early feedback about invalid resource names (per recent validation logic).
I suggest moving this to the GA or later milestones as it can be out of band, and we are almost complete. Anyone see differently?
moving to backlog
FYI I have a branch adding the required infrastructure and the first analyzer (invalid resource/endpoint names) at https://github.com/dotnet/aspire/tree/damianedwards/model-name-analyzer. Hope to send a PR soon.
There are likely patterns that are emerging here, especially in AppHost scenario, that could benefit from a set of code analyzers to warn/enforce/fix some of them. For example in #1202 an analyzer could have produced a squiggle + build warning alerting me to a conflict.