Exclude certain file types from "Perform code analysis" on check in.

I really like the check box on the commit dialog, "Perform code analysis."  

However, I wish I could tell it to ignore certain file types.  For example.  my ant xml files are littered with spurious errors and so whenever I have an ant file included in the commit it makes a lot of noise that I'd rather not have.  

It doesn't seem like there is any way to adjust the scope of the code analysis?  Am I mistaken?

-g

1 comment
Comment actions Permalink

incremental wrote:
It doesn't seem like there is any way to adjust the scope of the code analysis?  Am I mistaken?

Not for commits or general editing. Only when running inspection reports via Analyze > Inspect Code...

You can suppress all warnings (or for certain inspections) for a file (such as your ant file). But this of course prevents you from getting those warnings and errors highlighted during editing.
To suppress:

  • put your cursor on an error or warning;
  • type Alt+Enter; select the inspection;
  • use the right arrow key to expand the side menu;
  • select the suppress level desired;
0

Please sign in to leave a comment.