How to exclude rules to local project mode?

Hi Everyone

I have a doubt regarding excluding rules when analyzing a source, currently I use the following command
-D"SuppressWarnings(“java:S2095”)" and the problem I currently have is that this rule cannot be disabled because it is an inherited rule, where could I find the list of these rules from which they cannot be excluded.

Hey there.

This is… not how setting rule exclusions works.

You can exclude specific rules from specific files (specific can also mean… “all” files).

In the Quality Profiles section of your instance, you’ll find the parent Quality Profile which includes the rules that can’t be turned off in child profiles.