Skip to content

Commit

Permalink
update checkstyle config
Browse files Browse the repository at this point in the history
  • Loading branch information
staceybellerose committed Oct 1, 2018
1 parent eca0e53 commit 6f0ef4d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
12 changes: 11 additions & 1 deletion config/quality.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,17 @@ findbugs {
task codeChecks {
group 'verification'
description 'Runs all code analysis checks'
dependsOn 'checkstyle', 'pmd', 'findbugs', 'lintDebug'
dependsOn 'checkstyle', 'pmd', 'findbugs'
}

android {
applicationVariants.all { variant ->
if(variant.buildType.name == 'debug') {
codeChecks {
dependsOn "lint${variant.name.capitalize()}"
}
}
}
}

task checkstyle(type: Checkstyle) {
Expand Down
2 changes: 1 addition & 1 deletion config/quality/checkstyle/checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<module name="Checker">
<module name="FileLength">
<property name="max" value="700"/>
<property name="fileExtensions" value=""/>
<property name="fileExtensions" value="java"/>
</module>

<module name="SuppressionFilter">
Expand Down
4 changes: 4 additions & 0 deletions sideci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ linter:
ignore:
- warning
- info
dir:
- app/src
exclude:
- res
pmd_java:
rulesets:
- config/quality/pmd/pmd-ruleset.xml
Expand Down

0 comments on commit 6f0ef4d

Please sign in to comment.