← 输入框|github.com|刷新
Skip to content

About

Code quality config for android project, including lint, pmd, findbugs, checkstyle, jacoco code coverage. Serve as a submodule for repo AndroidTDDBootStrap

Resources

Stars

0 stars

Watchers

1 watching

Forks

 
 

Latest commit

 

History

29 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AndroidCodeQualityConfig

Code quality config for android project, including lint, pmd, findbugs, checkstyle, jacoco code coverage. Serve as a submodule for repo: https://github.com/Piasy/AndroidTDDBootStrap

  • Usage
  • step 1. fork me
  • step 2. import the forked repo as git submodule, or just put the folder under your project root.
  • step 3. apply from: '../AndroidCodeQualityConfig/quality.gradle' for android module then run gradle check
  • step 4. no more step 4 :).

If you have many modules, you can add below code into your root project's build.gradle and skip step 3:

subprojects {
    apply from: "$rootProject.projectDir/AndroidCodeQualityConfig/quality.gradle"

    afterEvaluate {
        check.dependsOn 'checkstyle', 'findbugs', 'pmd', 'lint'
   }
}

Notice: You should first remove check.dependsOn 'checkstyle', 'findbugs', 'pmd', 'lint' in quality.gradle. See more.

CheckStyle

FindBugs

PMD

Lint

Jacoco

In your root project build.gradle:

apply from: 'AndroidCodeQualityConfig/jacoco.gradle'

then define ignoredByJacoco array in your root project ext part to define ignoring module, and moduleExcludes for each not ignoring module.

About

Code quality config for android project, including lint, pmd, findbugs, checkstyle, jacoco code coverage. Serve as a submodule for repo AndroidTDDBootStrap

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors