dotnet / dotnet/aspnetcore

[Analyzer] mismatch of routing template and name with FromRoute attribute in API controller

Open
#46,857 2 comments 0 reactions 0 assignees View on GitHub
analyzer api-suggestion area-mvc
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.