{"id":19720940,"url":"https://github.com/piasy/androidcodequalityconfig","last_synced_at":"2025-10-04T11:11:48.268Z","repository":{"id":75584256,"uuid":"41924134","full_name":"Piasy/AndroidCodeQualityConfig","owner":"Piasy","description":"Code quality config for android project, including lint, pmd, findbugs, checkstyle, jacoco code coverage. Serve as a submodule for repo AndroidTDDBootStrap","archived":false,"fork":false,"pushed_at":"2017-09-28T00:52:29.000Z","size":38,"stargazers_count":67,"open_issues_count":3,"forks_count":34,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-08-30T16:35:37.459Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/Piasy/AndroidTDDBootStrap","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Piasy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-09-04T15:43:56.000Z","updated_at":"2025-08-11T06:46:03.000Z","dependencies_parsed_at":"2023-06-06T23:45:24.395Z","dependency_job_id":null,"html_url":"https://github.com/Piasy/AndroidCodeQualityConfig","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Piasy/AndroidCodeQualityConfig","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Piasy%2FAndroidCodeQualityConfig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Piasy%2FAndroidCodeQualityConfig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Piasy%2FAndroidCodeQualityConfig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Piasy%2FAndroidCodeQualityConfig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Piasy","download_url":"https://codeload.github.com/Piasy/AndroidCodeQualityConfig/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Piasy%2FAndroidCodeQualityConfig/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278302555,"owners_count":25964523,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T23:12:58.422Z","updated_at":"2025-10-04T11:11:48.262Z","avatar_url":"https://github.com/Piasy.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# AndroidCodeQualityConfig\n\nCode quality config for android project, including lint, pmd, findbugs, checkstyle, jacoco code coverage. Serve as a submodule for repo: https://github.com/Piasy/AndroidTDDBootStrap\n\n+  Usage\n  +  step 1. fork me\n  +  step 2. import the forked repo as git submodule, or just put the folder under your project root.\n  +  step 3. `apply from: '../AndroidCodeQualityConfig/quality.gradle'` for android module then run `gradle check`\n  +  step 4. no more step 4 :).\n\nIf you have many modules, you have another option:\n\n+ step 3. add below code into your root project's `build.gradle`:\n\n``` gradle\nsubprojects {\n    apply from: \"$rootProject.projectDir/AndroidCodeQualityConfig/quality.gradle\"\n\n    afterEvaluate {\n        check.dependsOn 'checkstyle', 'findbugs', 'pmd', 'lint'\n   }\n}\n```\n\n+ step 4. remove `check.dependsOn 'checkstyle', 'findbugs', 'pmd', 'lint'` in quality.gradle.\n+ step 5. change the last paragraph of quality.gradle into this:\n\n``` gradle\nafterEvaluate {\n    android {\n        lintOptions {\n            abortOnError true\n            xmlReport true\n            htmlReport true\n            lintConfig file(\"${project.rootDir}/AndroidCodeQualityConfig/quality/lint/lint.xml\")\n        }\n    }\n}\n```\n\n## CheckStyle\n+  [CheckStyle](https://github.com/checkstyle/checkstyle)\n+  [CheckStyle-IDEA plugin](https://github.com/jshiell/checkstyle-idea)\n\n## FindBugs\n+  [Findbugs](https://github.com/findbugsproject/findbugs)\n\n## PMD\n+  [PMD](https://github.com/pmd/pmd)\n\n## Lint\n+  [Android Lint](http://tools.android.com/tips/lint)\n\n## Jacoco\n\nIn your root project `build.gradle`:\n\n``` gradle\napply from: 'AndroidCodeQualityConfig/jacoco.gradle'\n```\n\nthen define `ignoredByJacoco` array in your root project ext part to define ignoring module, and `moduleExcludes` for each not ignoring module.\n\n## License\n\n    The MIT License (MIT)\n\n    Copyright (c) 2015 Piasy\n\n    Permission is hereby granted, free of charge, to any person obtaining a copy\n    of this software and associated documentation files (the \"Software\"), to deal\n    in the Software without restriction, including without limitation the rights\n    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n    copies of the Software, and to permit persons to whom the Software is\n    furnished to do so, subject to the following conditions:\n\n    The above copyright notice and this permission notice shall be included in all\n    copies or substantial portions of the Software.\n\n    THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n    SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiasy%2Fandroidcodequalityconfig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpiasy%2Fandroidcodequalityconfig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiasy%2Fandroidcodequalityconfig/lists"}