How to undo "Do not show" inspection code issue?

I've set a code issue to “Do not show”. I'd like to undo this, but I can't find it in settings. And the context menu Alt+Enter does not show the issue anymore either. I'm working on a .Net C# Blazor project and the error is:

error BL0008: Property (..) has [SupplyParameterFromForm] and a property initializer. This can be overwritten with null during form posts.

How do I re-enable that this error is picked up and shown? I mean, the build still fails, so it's not like I can't click and navigate to the file, but just can't find where to undo this suppression in the IDE.

0
2 comments

Hello, 

Thanks for contacting Rider support. 

  • For regular code inspection rules, you can undo it via Settings | Editor | Inspection Settings | Inspection Severity. The changed settings are marked with RESET icon, like below:



This way can help you identify the changed settings and reset them. 

  • For this particular inspection, it's not a regular Rider inspection rule, but come from Roslyn Analyzer. Such rules are saved in ‘This Computer’ layer by default. The default location is %APPDATA%\JetBrains\Rider2025.3\resharper-host\GlobalSettingsStorage.DotSettings on Windows. You can:
    • Either manually edit GlobalSettingsStorage.DotSettings then remove the following line:
      <s:String x:Key="/Default/CodeInspection/Roslyn/RoslynCustomSeverities/=BL0008/@EntryIndexedValue">DO_NOT_SHOW</s:String>
    • Or go to Rider Settings | click “Manage Layers” | then reset “Roslyn” settings for ‘This computer’ layer. This will reset all Roslyn rules. 

 

Let me know if you have any further questions. 

Regards,

Tom

 

0

Hi Tom, 

thank you for your quick reply. Resetting the Roslyn settings via Manage Layers did the trick.

Kind regards,
Diana

0

Please sign in to leave a comment.