Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AG0036: Ensure controller action methods are decorated with the [Route] attribute #118

Open
mikechamberlain opened this issue Oct 5, 2018 · 0 comments
Labels
Projects

Comments

@mikechamberlain
Copy link
Contributor

mikechamberlain commented Oct 5, 2018

We want to move away from convention-based to attribute-based routing.

This analyzer should ensure that all public methods in a class that inherit from System.Web.Mvc.Controller or System.Web.Http.ApiController have a [Route] attribute.

https://agoda-com.github.io/standards-c-sharp/routing/attribute.html

@mikechamberlain mikechamberlain changed the title AG0036: Ensure controller action methods are decorated the [Route] attribute AG0036: Ensure controller action methods are decorated with the [Route] attribute Oct 5, 2018
@mikechamberlain mikechamberlain added this to To do in Analyzers Oct 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Analyzers
  
To do
Development

No branches or pull requests

1 participant