[Analyzer] mismatch of routing template and name with FromRoute attribute in API controller
- Dominant language
- C#
- Stars
- 38.4k
- Forks
- 10.9k
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 290
Description
## Background and Motivation
## Proposed Analyzer
### Analyzer Behavior and Message
### Category
- [ ] Design
- [ ] Documentation
- [ ] Globalization
- [ ] Interoperability
- [ ] Maintainability
- [ ] Naming
- [ ] Performance
- [ ] Reliability
- [ ] Security
- [ ] Style
- [x] Usage
### Severity Level
- [ ] Error
- [x] Warning
- [ ] Info
- [ ] Hidden
## Usage Scenarios
Just like https://github.com/DotNetAnalyzers/AspNetCoreAnalyzers/blob/master/documentation/ASP002.md
We already have https://learn.microsoft.com/en-us/aspnet/core/diagnostics/asp0003?view=aspnetcore-7.0
So it's pretty nature to have such a similar feature, rather than downloading another analyzer package to enable it.
## Risks
Contributor guide
Assessment
This issue has not been assessed yet.