I would like to be able to selectively apply different rules to different
For example lets consider rules
1. You must use variables matching pattern X
2. You must javadoc all public stuff
3. No unused private members are allowed
I would like to apply (1) all the time.
I would like to use (2) on all public members except;
public static final Strings with name ROLE
Members that match signature A, B or C
(these are framework specific methods which don't need javadoc as
their behaviour is obvious)
I would like to warn about (3) unless it is a constructor in a class that
only contains static members.
Theres a few ways of doing this. One of the more interesting (and
useful IMHO) ways is to always generate warnings but then pass
these warnings to a (chain of) filters supplying enough context
information about where violation occured. It would then be up to the
filter to filter out any audit events it does not want to issue.