Skip to content
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

Some analyzers don't work in Rider with severity being set to "suggestion" #1415

Open
Atulin opened this issue Mar 3, 2024 · 1 comment
Open

Comments

@Atulin
Copy link

Atulin commented Mar 3, 2024

Product and Version Used:

  • 2024.1 EAP 7
  • Roslynator.Analyzers 4.11.0
  • Roslynator.Formatting.Analyzers 4.11.0
  • .NET 8
  • C# 12

Steps to Reproduce:

  1. Create a solution with multiple projects
  2. Add the analyzers to said projects
  3. Create a .editorconfig file on the solution level
  4. Add
    [*.{cs,cshtml}]
    # Roslynator.Analyzers rules
    dotnet_diagnostic.rcs1260.severity = suggestion
    roslynator_trailing_comma_style = omit_when_single_line
    to the .editorconfig file

Actual Behavior:

The chosen trailing comma analyzer does not work, while others like trailing whitespace do. It starts working when severity is set to warning or higher.

image

Expected Behavior:

The chosen trailing comma analyzer works, while others like trailing whitespace still do. All of them work when severity is set to warning or higher.

image
(artistic rendition)

Addendum

While trying to solve the issue, I also noticed that even with the warning severity the rule does not work everywhere:
image

@Atulin
Copy link
Author

Atulin commented Mar 3, 2024

I raised this issue on Rider's issue tracker as well, just in case it's Rider's fault: https://youtrack.jetbrains.com/issue/RIDER-106663/Some-analyzers-dont-work-in-Rider-with-severity-being-set-to-suggestion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants