Skip to content

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

License

Notifications You must be signed in to change notification settings

iamlile/AndroidCodeQualityConfig

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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 or apply from: '../AndroidCodeQualityConfig/quality-java.gradle' for java module, then run gradle check
  • step 4. no more step 4 :).

CheckStyle

  • CheckStyle
  • CheckStyle-IDEA plugin, the latest version has a problem, Unsupported major.minor version 52.0 [Plugin: CheckStyle-IDEA] [Plugin: CheckStyle-IDEA] when opening a project, fix.

FindBugs

PMD

Lint

Jacoco

apply from: 'AndroidCodeQualityConfig/jacoco.gradle'

then define ignoredByJacoco array in your root project ext part to define ignoring module, and moduleClassDirs, moduleJacocoExec, 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: https://github.com/Piasy/AndroidTDDBootStrap

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published