New inspections are constantly added to IDEA, in new EAP builds or by
plugins. This is great, of course, but it does lead to problems when
maintaining existing inspection profiles:
1) Some inspections are added that I don't want to be added. I don't
want inspections for all kinds of XPath problems to be automatically
added to my "unused code" profile, for example.
2) Some inspections are not added that I want to be added.
3) Some inspections are added that I do want to be added, but they
don't have the severity I want.
So now and then I have to go through every inspection profile and once
again check every single inspection to see whether it is correctly
configured. I can't just check the ones that are not included to see if
they should be added, because of (1) and (3). I can't just check the
ones that are new in the current version of IDEA, because even though
some inspections are marked as "New in 9", others are added through
plugins and might be marked with a plugin name without a version
("Powered by XPathView") or not marked at all.
As an example, an old "Foreach" inspection profile that originally only
checked for code where for loops could be replaced with foreach loops
now has well over 200 inspections marked, including inspections related
to Ant, CSS, Groovy, HTML, PHP, and so on.
Of course I don't expect IDEA to know automatically what inspections I
want to add to which profiles or what custom severity levels I want to
use for each inspection, but there are some things that could be done to
Most importantly, IDEA could keep track of which inspections have been
explicitly saved in each inspection profile, and make it possible for
the user to see which inspections are currently using their default
settings rather than settings explicitly saved by the user. This would
perhaps make inspection setting files larger, but it would make it much
easier to keep track of which inspections have to be checked.
Or all new inspections could be associated with an "add date", and
(important!) it could be possible to search for inspections added later
than any given date. This would require no changes to inspection
profiles, but as long as I keep track of when I last updated a profile
(which would be easier if one could also save a comment with each
profile), it would still save a lot of work.
Comments? Am I alone in having this problem? Any other suggestions for
I'll enter a JIRA request later but I'd like to discuss the topic here