Allow projects to suppress checkstyle warnings 87/27987/2
authorSam Hague <shague@redhat.com>
Tue, 6 Oct 2015 20:20:03 +0000 (16:20 -0400)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Thu, 22 Oct 2015 03:21:30 +0000 (03:21 +0000)
commitf58030f1390e75d16bbfb9e6af5fc521e94145fe
tree127b7d4078bbc071359d628836169ca6ec12e44b
parentccf829ac3f0b09f3e4b821b8a1bcb28a7a571dc9
Allow projects to suppress checkstyle warnings

This allows projects to override individual checkstyle rules by
using @SuppressWarnings() annotations. In the example below the
checkstyle error before suppressing the warning is shown and
then the annotation to disable the warning:

(whitespace) MethodParamPad: '(' is preceded with whitespace.

@SuppressWarnings("checkstyle:methodparampad")
public AbstractDataTreeListener (INetvirtSfcOF13Provider provider, Class<T> clazz) {
}

Change-Id: I13cf83a6afca4e8f95e8e2969ebb2ac9129e93f8
Signed-off-by: Sam Hague <shague@redhat.com>
checkstyle/src/main/resources/odl_checks.xml