Include Roslynator.Analyzers and Roslynator.CodeFixes with more strict default severity levels
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 38/100
Hướng nghiên cứu
Bắt đầu bằng cách xem xét các tiêu chuẩn C# hiện có của repository và cấu hình editorconfig, sau đó so sánh chúng với các analyzer và refactoring Roslynator được liệt kê. Công việc được xem là hoàn tất khi Roslynator được đưa vào và các quy tắc RCS đã chọn có mức độ nghiêm trọng mặc định được lập tài liệu, cùng với các bổ sung tương ứng cho tiêu chuẩn C# khi cần.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Introduce https://github.com/JosefPihrt/Roslynator, which has 500+ analyzers, and also a large number of refactorings.
Lists of each:
http://pihrt.net/Roslynator/Analyzers
http://pihrt.net/Roslynator/Refactorings
Here's a very preliminary set of some recommendations for default severities. This is by no means exhaustive and is only the set that I came up with upon looking at the Info level severity issues from a single project I'm working on at the moment.
For some of these that aren't already covered, corresponding rules should be added to the C# standards.
# RCS1001: Add braces (when expression spans over multiple lines).
dotnet_diagnostic.RCS1001.severity = error
# RCS1003: Add braces to if-else (when expression spans over multiple lines).
dotnet_diagnostic.RCS1003.severity = error
# RCS1007: Add braces
dotnet_diagnostic.RCS1007.severity = error
# RCS1044: Remove original exception from throw statement
dotnet_diagnostic.RCS1044.severity = error
# RCS1123: Add parentheses according to operator precedence.
dotnet_diagnostic.RCS1123.severity = error
# RCS1037: Remove trailing white-space.
dotnet_diagnostic.RCS1037.severity = none
# RCS1036: Remove redundant empty line.
dotnet_diagnostic.RCS1036.severity = none
# RCS1170: Use read-only auto-implemented property.
dotnet_diagnostic.RCS1170.severity = warning
# RCS1213: Remove unused member declaration.
dotnet_diagnostic.RCS1213.severity = warning
- Ngôn ngữ chính
- C#
- Star
- 12
- Fork
- 16
- Merge trung bình
- 2 phút
- Pull request đã merge (30 ngày)
- 10
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của IntelliTect/CodingGuidelines
-
Overriding ToString() Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 25/100
IntelliTect/CodingGuidelines#290 ·
-
proposal: ban List<T>.ForEach Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 45/100
IntelliTect/CodingGuidelines#253 ·
-
.editorconfig C# coding guidelines proposal
IntelliTect/CodingGuidelines#249 · 6 bình luận · 1 reaction · 2 người được giao ·
-
INTL0001 when using records Đang mởanalyzer C# coding guidelines proposal
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
IntelliTect/CodingGuidelines#231 ·
-
bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
IntelliTect/CodingGuidelines#230 ·
Tất cả issue của IntelliTect/CodingGuidelines
Issue tương tự
-
untriaged
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
dotnet/dotnet-api-docs#13095 ·
-
area-deployment area-integrations triage:bot-seen
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 86/100
-
type/automation type/tech-debt
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
-
bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
newrelic/newrelic-dotnet-agent#3850 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
LuckyPennySoftware/AutoMapper#4660 ·