Allow '_' in checkstyle PackageName rule 60/46860/2
authorTom Pantelis <tpanteli@brocade.com>
Thu, 13 Oct 2016 06:06:39 +0000 (02:06 -0400)
committerRobert Varga <nite@hq.sk>
Thu, 13 Oct 2016 12:23:43 +0000 (12:23 +0000)
commit0f3421b7ac3b48f10e59d01d856b523a317e303f
treee28077b6b84605ba6c02af9708f63b4464b30e69
parent7a5363a97f7eade25ce0796343f388da3e3f8c64
Allow '_' in checkstyle PackageName rule

The JLS allows '_' in package names but the default checkstyle regex
pattern for the PackageName rule doesn't. Underscores shouldn't normally
be used but the yang code generator can generate package names with
underscores. We can exclude most yang-generated code from checkstyle but
the CSS code generator places some classes under src/main/java to be
completed (ie *Module classes) so we need the regex pattern to allow
underscores.

Change-Id: I14fdb1955499d5684b1bdaeabd188f7d425caf60
Signed-off-by: Tom Pantelis <tpanteli@brocade.com>
checkstyle/src/main/resources/odl_checks.xml