{"id":17158946,"url":"https://github.com/trevorwang/quality-tools-demo","last_synced_at":"2025-08-21T07:45:26.675Z","repository":{"id":42395956,"uuid":"474341531","full_name":"trevorwang/quality-tools-demo","owner":"trevorwang","description":null,"archived":false,"fork":false,"pushed_at":"2022-04-07T02:16:13.000Z","size":396,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-29T19:31:10.698Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","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/trevorwang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"trevorwang# Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2022-03-26T12:30:49.000Z","updated_at":"2022-03-26T12:31:04.000Z","dependencies_parsed_at":"2022-09-11T07:01:28.312Z","dependency_job_id":null,"html_url":"https://github.com/trevorwang/quality-tools-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trevorwang%2Fquality-tools-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trevorwang%2Fquality-tools-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trevorwang%2Fquality-tools-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trevorwang%2Fquality-tools-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trevorwang","download_url":"https://codeload.github.com/trevorwang/quality-tools-demo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245294490,"owners_count":20591898,"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","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-10-14T22:12:55.816Z","updated_at":"2025-03-24T14:43:18.372Z","avatar_url":"https://github.com/trevorwang.png","language":"Kotlin","funding_links":["https://github.com/sponsors/trevorwang# Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]"],"categories":[],"sub_categories":[],"readme":"# Quality Demo\n\n\n\n## composing build 管理依赖版本\n\n\u003e  请参照[掘进文章](https://juejin.cn/post/6844904176250519565)了解详情\n\n\u003e 如果使用 AGP 7.0以上版本，必须使用 IDEA 或者 Android Studio 2022.3.1\n\n\n\n- 代码提示，不用每次都copy 出现代码不一致的情况\n\n![](./images/1.png)\n\n- 版本统一管理，不会出现多个版本情况\n\n![](./images/2.png)\n\n## 质量管理\n\n \n\n```groovy\n// Top-level build file where you can add configuration options common to all sub-projects/modules.\nplugins {\n    id 'com.android.application' version '7.0.3' apply false\n    id 'com.android.library' version '7.0.3' apply false\n    id 'org.jetbrains.kotlin.android' version '1.5.21' apply false\n    id 'org.jetbrains.kotlin.jvm' version '1.5.21' apply false\n    id 'legox.deps'\n    id 'com.vanniktech.code.quality.tools' version '0.21.0'\n}\n\ncodeQualityTools {\n    htmlReports = true\n    textReports = true\n\n    checkstyle {\n        toolVersion '10.0'\n        configFile = file(\"config/checkstyle/checkstyle.xml\")\n    }\n\n    detekt {\n        toolVersion = '1.19.0'\n        config = file(\"config/detekt/detekt.yml\")\n    }\n\n    pmd {\n        toolVersion = '6.43.0'\n        ruleSetFile = file(\"config/pmd/pmd.xml\")\n    }\n\n    cpd {\n        minimumTokenCount = 20\n    }\n}\n\n```\n\n\n\n```shell\n./gradlew check  # 此脚本全面会调用 checkstyle、detekt、klint、lint、pmd、cpd 来检查代码，全部通过才可以合并\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrevorwang%2Fquality-tools-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrevorwang%2Fquality-tools-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrevorwang%2Fquality-tools-demo/lists"}