diff options
author | Maxime Biais <maxime.biais@gmail.com> | 2014-01-10 14:27:38 +0100 |
---|---|---|
committer | Maxime Biais <maxime.biais@gmail.com> | 2014-01-10 14:27:38 +0100 |
commit | f5a77bf12d77e429acd863ddd321f4d7e252f3f7 (patch) | |
tree | 84692616489e2114513878c4c48340c194b04ad5 /cq-configs | |
parent | 08eb7e09d94a2ad616df6e9e83b8f446285f3b8b (diff) | |
download | gradle-perf-android-medium-f5a77bf12d77e429acd863ddd321f4d7e252f3f7.tar.gz |
add new blank line rules to checkstyle settings
Diffstat (limited to 'cq-configs')
-rw-r--r-- | cq-configs/checkstyle/checkstyle.xml | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/cq-configs/checkstyle/checkstyle.xml b/cq-configs/checkstyle/checkstyle.xml index c924d6201..bd5120aec 100644 --- a/cq-configs/checkstyle/checkstyle.xml +++ b/cq-configs/checkstyle/checkstyle.xml @@ -41,6 +41,21 @@ <property name="severity" value="info"/> </module> + + <module name="RegexpMultiline"> + <property name="format" + value="\n[\t ]*\n[\t ]*\}"/> + <property name="message" value="Empty line not allowed before brace"/> + </module> + + <module name="RegexpMultiline"> + <property name="format" + value="\{[\t ]*\n[\t ]*\n"/> + <property name="message" value="Empty line not allowed after brace"/> + </module> + + <module name="StrictDuplicateCode"/> + <module name="TreeWalker"> <!-- Checks for Javadoc comments. --> @@ -102,7 +117,6 @@ <module name="RedundantImport"/> <module name="UnusedImports"/> - <!-- Checks for Size Violations. --> <!-- See http://checkstyle.sf.net/config_sizes.html --> <module name="LineLength"> @@ -112,10 +126,12 @@ <property name="ignorePattern" value="\$File.*\$"/> <property name="severity" value="info"/> </module> - <module name="MethodLength"/> + <module name="MethodLength"> + <property name="tokens" value="METHOD_DEF"/> + <property name="max" value="60"/> + </module> <module name="ParameterNumber"/> - <!-- Checks for whitespace --> <!-- See http://checkstyle.sf.net/config_whitespace.html --> <module name="EmptyForIteratorPad"/> @@ -198,6 +214,8 @@ <module name="FileContentsHolder"/> <!-- Required by comment suppression filters --> + <module name="OneStatementPerLine"/> + </module> <!-- Enable suppression comments --> |