Formatting Errors Cannot Be Turned Off - Line Break is Redundant Around Comma in Lists

Hello all - I have a problem that is plaguing me in Rider. I get red Error squiggles for “Line break is redundant around comma in lists”, (Over 19,000 errors in our repo for this apparently - I turn off analysis around that time) but I cannot find how to diable the inspection. 

An example screenshot:


I have looked at the inspection settings within rider, but the inspection isn't active.

Nor does it have the highlight showing it is being overridden by StyleCop.
 

When I use alt+enter / ctrl+period and tell the inspection to change severity, it works for one line for one second, then flashes and it's back to a red error.
Anyone have any ideas of where I should look / what I should do?

0
5 comments

Hi Mwmatlock

Which Rider version do you use and what is your project type? 

Could you please try the following:  go to File | Settings | Editor | Code Style and turn off both checkboxes for StyleCop and EditorConfig and check if it helps. 

If not, please open one of the affected files, press double Shift, type "Show Code Style Configuration" and attach a screenshot of resulting window. 

Also, as there are many ways to change severity of the inspection,  could you please add some screenshots illustrating of how exactly you do this? 

Thank you in advance!  

 

0

I have this same issue too on 2024.1.1 and 2024.1.2. We do use StyleCop and EditorConfig and Output type for our projects is net8.0 Class library.

If I toggle EditConfig usage off then the IDE highlighting goes away, but the warnings still appear in inspection results.

0

Hi Brandon

Do you still have the warning if you disable StyleCop? Could you please share your StyleCop and EditorConfig files with us? You can upload them privately to our server and share the ID. Thanks! 

0

In the IDE settings if I uncheck Enable StyleCop support then the visual yellow warnings in the IDE go away, but the 'Line break is missing around expression braces' warning continues to show up in the inspection results.

We only use EditorConfig for configuring StyleCop.

Upload id: 2024_05_31_xRj2YB3ZY3Wzkch7Y5Cwyq

0

Hi Brandon, can you please attach screenshots illustrating the situation before turning off the .editorconfig and after turning it off? It is important that warning texts are visible in screenshots.

Also, before unchecking the Enable Editirconfig support in File | Settings | Editor | Code Style, please:

  • open one of the affected files
  • press double Shift
  • type “Show Code Style Configuration”
  • attach a screenshot of resulting window
1

Please sign in to leave a comment.