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

CC0091 Fires For Mvc Controller Actions #1024

Open
busyscout opened this issue Apr 15, 2019 · 0 comments
Open

CC0091 Fires For Mvc Controller Actions #1024

busyscout opened this issue Apr 15, 2019 · 0 comments

Comments

@busyscout
Copy link

CC0091 incorrectly suggests to make mvc actions static.

Example:

[HttpPost]
 public string SayHello()
 {
        return "hello";
 }

This is a correct MVC action. If you make it static, then it will not work as an action.
So, CC0091 should ignore methods with mvc action attributes - HttpPost, HttpGet etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant