Can I disable "code inspection" for test code

I like this feature, "performance code analysis" before committing into Git repository. Especially the type annotation check, those warnings let me think about if I should hide some val or method using private. But for scalatest code, I really don't want the code analysis to see those warnings, or add private to eliminate them. Of course, I can ignore them. However, when I see the results saying 8 warnings after clicking commit, I probably want to review them to make sure if they are from the test code. If IDEA does not run the check, the commit just goes through, and no warnings will distract me.

Can IDEA disable the code analysis for all files under "src/test"?

Can I add some comments or annotation to disable in a file?






1 comment
Comment actions Permalink

Currently, IDEA doesn't provide this option. But it definitely makes sense. I've created feature request for the case: 


Please sign in to leave a comment.