Author: peterreilly Date: Sun Nov 5 14:58:38 2006 New Revision: 471559 URL: http://svn.apache.org/viewvc?view=rev&rev=471559 Log: Add rule to allow in-line suppression of specific checkstyle rules. This will allow code that is kept for backward compatible reasons to be marked in the code, and ignored in the checkstyle report.
Modified: ant/core/trunk/src/etc/checkstyle/checkstyle-config Modified: ant/core/trunk/src/etc/checkstyle/checkstyle-config URL: http://svn.apache.org/viewvc/ant/core/trunk/src/etc/checkstyle/checkstyle-config?view=diff&rev=471559&r1=471558&r2=471559 ============================================================================== --- ant/core/trunk/src/etc/checkstyle/checkstyle-config (original) +++ ant/core/trunk/src/etc/checkstyle/checkstyle-config Sun Nov 5 14:58:38 2006 @@ -104,6 +104,13 @@ </module> <module name="TodoComment"/> <module name="UpperEll"/> + <!-- allow comment suppression of checks --> + <module name="FileContentsHolder"/> </module> <!-- <module name="au.com.redhillconsulting.simian.SimianCheck"/> --> + <module name="SuppressionCommentFilter"> + <property name="offCommentFormat" value="CheckStyle\:([\w\|]+) *OFF"/> + <property name="onCommentFormat" value="CheckStyle\:([\w\|]+) *ON"/> + <property name="checkFormat" value="$1"/> + </module> </module> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]