agoda-com / agoda-com/AgodaAnalyzers

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

Đang mở
#118 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
New Rule
Ngôn ngữ chính
C#
Star
25
Fork
15
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.