views:

190

answers:

0

In turning off Checkstyle for a segment of code, is there a syntax that would supress only specific checks.

So rather than just

// CHECKSTYLE:OFF code // CHECKSTYLE:ON

you could have something like

// CHECKSTYLE:OFF:RequireThis, code // CHECKSTYLE:ON

In cases where we are purposely making an exception to the style, it would be nice to be clearer what the exception case is.