added antlib.xml with checkstyle task definition. Also fixed line numbers in suppressions.xml
This commit is contained in:
parent
d3dd058645
commit
73e2e24fca
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0"?>
|
||||
<antlib>
|
||||
<taskdef name="checkstyle"
|
||||
classname="com.puppycrawl.tools.checkstyle.CheckStyleTask">
|
||||
</taskdef>
|
||||
</antlib>
|
||||
|
|
@ -79,6 +79,27 @@
|
|||
<source>
|
||||
<taskdef resource="checkstyletask.properties"/>
|
||||
</source>
|
||||
|
||||
<p>
|
||||
Or if you use Ant 1.6 and later and assuming that Checkstyle
|
||||
is in the library search path, then you may use antlib feature
|
||||
of Ant (see <a
|
||||
href="http://ant.apache.org/manual/CoreTypes/antlib.html"
|
||||
>http://ant.apache.org/manual/CoreTypes/antlib.html</a>
|
||||
for more details). For example:
|
||||
</p>
|
||||
|
||||
<source>
|
||||
<project name="foo" ...
|
||||
xmlns:cs="antlib:com.puppycrawl.tools.checkstyle">
|
||||
...
|
||||
<cs:checkstyle>
|
||||
...
|
||||
</cs:checkstyle>
|
||||
...
|
||||
</project>
|
||||
</source>
|
||||
|
||||
</section>
|
||||
|
||||
<section name="Parameters">
|
||||
|
|
|
|||
|
|
@ -84,6 +84,9 @@
|
|||
Applied patch 1340300 from David Dodini to update bcel
|
||||
checks to be compilable with current Checkstyle's API.
|
||||
</li>
|
||||
<li>
|
||||
Added antlib.xml to support new cool feature of Ant.
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
</section>
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
lines="176"/>
|
||||
<suppress checks="MagicNumber"
|
||||
files="JavadocMethodCheck.java"
|
||||
lines="751,783,808"/>
|
||||
lines="748,780,805"/>
|
||||
<suppress checks="ImportControl"
|
||||
files="NewlineAtEndOfFileCheck.java"
|
||||
lines="26"/>
|
||||
|
|
|
|||
Loading…
Reference in New Issue