Issue #2131: Add inspection scope profile for IDEA analysis

This commit is contained in:
Michal Kordas 2015-09-06 22:55:23 +02:00
parent ccf2d8315c
commit 20b73ed383
3 changed files with 9 additions and 1 deletions

View File

@ -0,0 +1,3 @@
<component name="DependencyValidationManager">
<scope name="Checkstyle Inspection Scope" pattern="!file:target//*&amp;&amp;!file:src/test/resources*//**&amp;&amp;!file:src/test/java/com/puppycrawl/tools/checkstyle/checks/javadoc/ParseTreeBuilder.java&amp;&amp;!file:src/site/resources/js/google-analytics.js"/>
</component>

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View File

@ -74,7 +74,12 @@
Settings -> Editor -> Inspections -> Manage -> Import... and locate file
<code>config/intellij-idea-inspections.xml</code>.<br/><br/>
<img alt="Inspections in IntelliJ IDEA" src="images/gui_screenshot_inspections_idea.png"/>
<br/>
<br/><br/>
Not all files in repository should be analyzed. For example test input files contain numerous
violations on purpose. Our shared inspection scope can be used to exclude such files.<br/>
To add custom scope copy file <code>config/intellij-idea-inspection-scope.xml</code>
to <code>.idea/scopes</code> directory. Now it should be ready to use in inspect code window:<br/><br/>
<img alt="Scope for inspections" src="images/gui_screenshot_scope_idea.png"/>
</p>
</section>