IntelliTect / IntelliTect/CodingGuidelines

INTL0003 triggers on generated main methods

Đang mở
#229 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug
Ngôn ngữ chính
C#
Star
12
Fork
16
Merge trung bình
2 phút
Pull request đã merge (30 ngày)
7

Mô tả

Create a new minimal API ASP.NET Core project.
Observed: The analyzer triggers on the generated main method.

![image](https://user-images.githubusercontent.com/952248/164064604-a6156be7-7de5-4ad6-8aef-b457252e1bdc.png)

I suggest we make the analyzer ignore all methods that do not start with a letter or underscore (Full language spec here: https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/language-specification/lexical-structure#643-identifiers)

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

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

Hướng nghiên cứu

Start by reproducing the issue with a minimal API ASP.NET Core project and identify where analyzer INTL0003 evaluates the generated main method. Use the linked C# identifier specification as guidance. Done means generated methods no longer trigger INTL0003 while ordinary methods continue to be checked.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
csharp
Lĩnh vực
tooling
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
42/100

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.