Forbid files ending in Tests.java as they should end in Test.java
Project: http://git-wip-us.apache.org/repos/asf/incubator-beam/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-beam/commit/f554398b Tree: http://git-wip-us.apache.org/repos/asf/incubator-beam/tree/f554398b Diff: http://git-wip-us.apache.org/repos/asf/incubator-beam/diff/f554398b Branch: refs/heads/master Commit: f554398bc09df194409fd0dd3577f7e800b709cc Parents: 52e43ac Author: Kenneth Knowles <k...@google.com> Authored: Tue Oct 4 15:09:54 2016 -0700 Committer: Luke Cwik <lc...@google.com> Committed: Thu Oct 6 09:49:53 2016 -0700 ---------------------------------------------------------------------- sdks/java/build-tools/src/main/resources/beam/checkstyle.xml | 5 +++++ 1 file changed, 5 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-beam/blob/f554398b/sdks/java/build-tools/src/main/resources/beam/checkstyle.xml ---------------------------------------------------------------------- diff --git a/sdks/java/build-tools/src/main/resources/beam/checkstyle.xml b/sdks/java/build-tools/src/main/resources/beam/checkstyle.xml index c26f94e..ae4fcba 100644 --- a/sdks/java/build-tools/src/main/resources/beam/checkstyle.xml +++ b/sdks/java/build-tools/src/main/resources/beam/checkstyle.xml @@ -53,6 +53,11 @@ page at http://checkstyle.sourceforge.net/config.html --> <property name="severity" value="error"/> </module> + <!-- Prevent *Tests.java as tools may not pick them up --> + <module name="RegexpOnFilename"> + <property name="fileNamePattern" value=".*Tests\.java$" /> + </module> + <!-- Allow use of comment to suppress javadocstyle --> <module name="SuppressionCommentFilter"> <property name="offCommentFormat" value="CHECKSTYLE.OFF\: ([\w\|]+)"/>