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
Enable Roslynator #21013
Enable Roslynator #21013
Conversation
634a65a
to
0980fee
Compare
This gives me a spam of errors like
|
0980fee
to
250b6a5
Compare
I've downgraded from Roslynator 4.4.0 to 4.2.0. This depends on compiler version 4.0, so should increase the compatibility. I suspect since the CI runner is using .NET 7 SDK it is avoiding running into the same issue. |
250b6a5
to
136539f
Compare
LGTM, but if I switch to the files view I see a collection of "Unnecessary usage of verbatim string literal." warnings in MiniYamlTest.cs that should probably be fixed before merging. |
Remove existing rules which were not enforced and have some existing violations. Enforce a suite of useful rules that have no existing violations.
136539f
to
2d1b973
Compare
I've removed that rule for now. Will deal with enabling rules that require fixes in some follow-ups. |
Remove existing rules which were not enforced and have some existing violations. Enforce a suite of useful rules that have no existing violations.
Following on from #20996.
We added some Roslynator rules to the config in previous code quality PRs, but we never added the nuget package for it so the rules were never enforced as such. Reset by removing the existing rules and enforcing some useful rules with no current violations. Follow-up PRs will look to enable ~30 other useful rules the require violations to be fixed.
Roslynator seems to have some useful rules above and beyond the existing solutions we have in place, it's the last extra rule component I currently think would be worth implementing.
See https://josefpihrt.github.io/docs/roslynator/analyzers for explanation of each rule.