Scope : exclude directories

Hello,

We have a number of generated java files produced by third party libs, and i'd like to exclude them from my Inspection.
These files are located in a module subdirectory like target/generated.
I'm using Scopes and i can't figure out how to express the exclusion, can you help ?

Gilles Philippart

3 comments
Comment actions Permalink

Hello Gilles,

You can specify a scope for directory and then assign an empty inspection
profile for that scope.

Should do the trick.


Thank you


-


Anna Kozlova
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

Hello,

We have a number of generated java files produced by third party libs,
and i'd like to exclude them from my Inspection.

These files are located in a module subdirectory like
target/generated.

I'm using Scopes and i can't figure out how to express the exclusion,
can you help ?

Gilles Philippart



0
Comment actions Permalink

Thanks Anna for the answer, but how do you specify a scope for a directory ?

0
Comment actions Permalink

You should choose file based scopes (in version 7 it is Hector-like toggle toolbar button; version 8 contains toolbar combo); then select your directory in your tree and click include recursively

Thank you

0

Please sign in to leave a comment.