From 0b77686215cd1c92d95da314c29a503eb11dd5e1 Mon Sep 17 00:00:00 2001 From: Aurimas Liutikas Date: Mon, 19 Sep 2016 10:23:18 -0700 Subject: [PATCH] Allow missing method Javadocs for test classes in Checkstyle. Bug: None Test: Existing test_ShouldSkip will test this as it is using checkstyle.SKIPPED_RULES_FOR_TEST_FILES Change-Id: I56c8c86a36f93b6b72a87fd97b75e5233fde9077 --- tools/checkstyle/checkstyle.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/checkstyle/checkstyle.py b/tools/checkstyle/checkstyle.py index 1399098d02c..52f5e36a28c 100755 --- a/tools/checkstyle/checkstyle.py +++ b/tools/checkstyle/checkstyle.py @@ -34,7 +34,8 @@ CHECKSTYLE_STYLE = os.path.join(MAIN_DIRECTORY, 'android-style.xml') FORCED_RULES = ['com.puppycrawl.tools.checkstyle.checks.imports.ImportOrderCheck', 'com.puppycrawl.tools.checkstyle.checks.imports.UnusedImportsCheck'] -SKIPPED_RULES_FOR_TEST_FILES = ['com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocTypeCheck'] +SKIPPED_RULES_FOR_TEST_FILES = ['com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocTypeCheck', + 'com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocMethodCheck'] SUBPATH_FOR_TEST_FILES = ['/tests/java/', '/tests/src/'] ERROR_UNCOMMITTED = 'You need to commit all modified files before running Checkstyle\n' ERROR_UNTRACKED = 'You have untracked java files that are not being checked:\n'