Resharper seems to ignore settings for inspection severity
Hi since the update to 2025.2.0.0 (and also 2025.2.0.1) I noticed that resharper is sometimes not following my settings for Inspection Severity.
For example it shows me a hint to convert a class constructor into a primary constructor, although I disabled this setting. I can see this in my exported settings:
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=ConvertToPrimaryConstructor/@EntryIndexedValue">DO_NOT_SHOW</s:String>
I do also get a many hints “comparison with false can be simplified”. If I then click “Inspection: ‘Redundant boolean comparison’ → Configure inspection severity I can see that ”Do not show" is already selected, but still it shows up in my editor underlined with green dots.
Edit: Actually while writing this post the 2nd issue is resolved. The setting “Redundant boolean comparison” has a child element “Suggest removing ‘==false’ checks”, which was set to Hint, while Redundant boolean comparison was unselected. I then selected Redundant boolean comparison, so I was able to change Suggest removing ‘==false’ checks to “Do not show” and then I unselected again Redundant boolean comparison.
But the hint with the primary constructor remains.
Please sign in to leave a comment.
Hi David!
For the first issue, I believe it works as intended in 2025.2: SUPPORT-A-2458 ReSharper code inspection ignores inspection severity settings in ReSharper 2025.2. Please try the workaround described in MS documentation.
If this behavior is intentional, it seems the only way to change the inspection severity setting is to manually write it in EditorConfig. Does it make sense?
Hi chumzi! Yes, it works this way for Roslyn inspections. You can change the severity of these Roslyn inspections as described in MS documentation.