Default inspection scope? Follow
I want to exclude generated java sources from inspections. I created scope that excludes generated sources. I can run Analyze | Inspect Code and select my scope and desired profile, this is fine. In Settings | Editor | Inspections I can also select project default profile. But I have found no way how to specify default project scope or how to associate scope with inspection profile. This https://intellij-support.jetbrains.com/hc/en-us/community/posts/207002185-Confused-about-errors-inspection-scopes?input_string=Default%20inspection%20scope%3F says:
3) added three profile assignments
but I am confused where I can do this assignment.
Kind regards, Jan
IntelliJ IDEA 2016.3.1
Please sign in to leave a comment.
Scope can be set per inspection or the group of inspections in the profile:
Thank you for you quick response Serge.
AFAIK this way I will change inspection severity per scope. How can I disable the inspection altogether? There are severities: Error, Warning, Weak Warning, Server Problem and Type. What I need to disable the checkbox on the left per scope
You can set the severity to No highlighting, only fix.
Thank you Serge, this seems to be one of the few weaknesses of your IDE. Too much clicking and not intuitive UI just to remove some package from inspections.
What I miss is a way to associate scope and profile at global level.
Kind regard,s Jan