Include Roslynator.Analyzers and Roslynator.CodeFixes with more strict default severity levels
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
首先检查仓库现有的 C# 标准和 editorconfig 配置,然后将其与列出的 Roslynator 分析器和重构进行比较。完成的标准是已包含 Roslynator,并且所选的 RCS 规则具有已记录的默认严重性;在需要的地方,还应相应补充 C# 标准。
由索引模型根据 Issue 内容生成。
描述
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
- 主要语言
- C#
- 星标
- 12
- 派生
- 16
- 平均合并
- 2 分钟
- 30 天内合并 PR
- 10
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
IntelliTect/CodingGuidelines 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 25/100
IntelliTect/CodingGuidelines#290 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 45/100
IntelliTect/CodingGuidelines#253 ·
维护者通常 1 天内回复
-
Review naming recommendation for fields可能重新可做 @MarkMichaelis 于 1320 天前认领,目前没有进行中的 PR。 未关闭.editorconfig C# coding guidelines proposal
IntelliTect/CodingGuidelines#249 · 6 条评论 · 1 个 reaction · 已指派 2 人 ·
维护者通常 1 天内回复
-
analyzer C# coding guidelines proposal
难度 5/5 一周以上 新手友好度 35/100
IntelliTect/CodingGuidelines#231 ·
维护者通常 1 天内回复
-
bug
难度 3/5 1-2 天 新手友好度 35/100
IntelliTect/CodingGuidelines#230 ·
维护者通常 1 天内回复
查看 IntelliTect/CodingGuidelines 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
microsoft/fluentui-blazor#5364 ·
维护者通常 1 天内回复
-
.NET triage
难度 2/5 1-3 小时 新手友好度 74/100
microsoft/agent-framework#8811 ·
维护者通常 1 天内回复
-
.NET Docs
难度 1/5 1 小时以内 新手友好度 82/100
getsentry/sentry-dotnet#5637 · 1 条评论 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
QuantConnect/Lean#9842 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
NethermindEth/nethermind#14012 ·
维护者通常 1 天内回复