Inspections
note
To run inspections for your project, you must have either an IntelliJ IDEA project file (.ipr) or a project directory (.idea) checked into your version control. The runner also supports Maven2 or above: to use
pom.xml
, you need to open it in IntelliJ IDEA and configure inspection profiles as described in the IntelliJ IDEA documentation. IntelliJ IDEA will save your inspection profiles in the corresponding folder. Make sure you have it checked into your version control. Then specify the paths to the inspection profiles while configuring this runner.
IntelliJ IDEA Project Settings
Unresolved Project Modules and Path Variables
Project SDKs
note
You can use references to external properties when defining the values, like
%\system.idea_home%
or%\env.JDK_1_3%
. This will add a Agent Requirements for the corresponding property.
Java Parameters
Inspection Parameters
tip
Include / exclude patterns are newline-delimited set of rules of the form:
[+:|-:]pattern
where the pattern must satisfy the following rules:
must end with either ** or * (this effectively limits the patterns to only the directories level, they do not support file-level patterns)
references to modules can be included as
[module_name]/<path_within_module>
Some notes on patterns processing:
excludes have precedence over includes
if include patterns are specified, only directories matching these patterns will be included, all other directories will be excluded
the include pattern has a special behavior (due to underlying limitations): it includes the directory specified and all the files residing directly in the directories above the one specified.
Example:
+:testData/tables/** -:testData/** -:testdata/** -:[testData]/**
tip
For the file paths to be reported correctly, the "References to resources outside project/module file directory" option for the project and all modules should be set to "Relative" in IDEA project.
Thanks for your feedback!