#87 Filter classes

release_3.0
closed
nobody
None
5
2012-10-10
2002-07-17
Anonymous
No

It would be very convienent if it would be possible to user
filters what classes are checked and what classes are
not checked.

For example: I have a large project and I am enforcing
coding styles. There are many classes which are
deprecated - so it would be nice if it could be configured
that those are not checked.

Hope you can support this feature.

Discussion

  • Lars Kühne
    Lars Kühne
    2002-07-21

    Logged In: YES
    user_id=401384

    Excluding files from checking is already supported through
    Ant's nested fileset element, e.g. to exclude all files that
    start with 'Generated'

    <checkstyle>
    <fileset
    dir="src/checkstyle"
    includes="/*.java"
    excludes="
    /Generated*.java"/>
    </checkstyle>

    You can also enumerate specific files in the excludes list,
    please consult the Ant documentation for details.