{"id":13684516,"url":"https://github.com/gianluz/danger-kotlin-android-lint-plugin","last_synced_at":"2026-03-04T08:01:22.434Z","repository":{"id":115489138,"uuid":"201784358","full_name":"gianluz/danger-kotlin-android-lint-plugin","owner":"gianluz","description":"Show the Android lint errors with Danger","archived":false,"fork":false,"pushed_at":"2020-04-18T17:20:46.000Z","size":156,"stargazers_count":17,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-30T21:38:51.706Z","etag":null,"topics":["android","android-lint","danger","danger-kotlin","danger-plugin","kotlin"],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gianluz.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}},"created_at":"2019-08-11T15:48:34.000Z","updated_at":"2022-07-11T18:18:21.000Z","dependencies_parsed_at":"2024-01-14T16:08:45.321Z","dependency_job_id":null,"html_url":"https://github.com/gianluz/danger-kotlin-android-lint-plugin","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/gianluz/danger-kotlin-android-lint-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gianluz%2Fdanger-kotlin-android-lint-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gianluz%2Fdanger-kotlin-android-lint-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gianluz%2Fdanger-kotlin-android-lint-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gianluz%2Fdanger-kotlin-android-lint-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gianluz","download_url":"https://codeload.github.com/gianluz/danger-kotlin-android-lint-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gianluz%2Fdanger-kotlin-android-lint-plugin/sbom","scorecard":{"id":426099,"data":{"date":"2025-08-11","repo":{"name":"github.com/gianluz/danger-kotlin-android-lint-plugin","commit":"e28c3ab12a07c7457713ed88aa05081735e38df0"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/27 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/deploy.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/deploy.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/gianluz/danger-kotlin-android-lint-plugin/deploy.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/deploy.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/gianluz/danger-kotlin-android-lint-plugin/deploy.yml/master?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 6 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-19T02:17:19.942Z","repository_id":115489138,"created_at":"2025-08-19T02:17:19.942Z","updated_at":"2025-08-19T02:17:19.942Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30075908,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T05:31:57.858Z","status":"ssl_error","status_checked_at":"2026-03-04T05:31:38.462Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["android","android-lint","danger","danger-kotlin","danger-plugin","kotlin"],"created_at":"2024-08-02T14:00:34.388Z","updated_at":"2026-03-04T08:01:22.403Z","avatar_url":"https://github.com/gianluz.png","language":"Kotlin","funding_links":[],"categories":["Plugins"],"sub_categories":["Kotlin (danger-kotlin)"],"readme":"[![Maven Central](https://img.shields.io/maven-central/v/com.gianluz/danger-kotlin-android-lint-plugin.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22com.gianluz%22%20AND%20a:%22danger-kotlin-android-lint-plugin%22)\n[![Build Status](https://travis-ci.org/gianluz/danger-kotlin-android-lint-plugin.svg?branch=master)](https://travis-ci.org/gianluz/danger-kotlin-android-lint-plugin)\n# danger-kotlin-android-lint-plugin\n\nShow the Android lint errors on your PR with [Danger Kotlin]\n\n## Setup\n\nInstall and run [Danger Kotlin] as normal and in your `Dangerfile.df.kts` add the following dependency:\n```kotlin\n@file:DependsOn(\"com.gianluz:danger-kotlin-android-lint-plugin:0.1.0\")\n```\nThen register your plugin before the `danger` initialisation and use the plugin:\n```kotlin\nregister plugin AndroidLint\n\nval danger = Danger(args)\n\n// Default report\nAndroidLint.report(\"/path/to/the/androidlint/result/file.xml\")\n```\nYou can report more than one lint file.\n\nYou can also keep tidy your `DangerFile.df.kts` using the following block:\n```kotlin\nandroidLint {\n    [...]\n}\n```\nOr make your own custom report by manipulating all the issues found, for example failing the build at the first `Fatal` found in a specific module.\n```kotlin\nandroidLint {\n        // Fail for each Fatal in a single module\n        val moduleLintFilePaths = find(\n            moduleDir,\n            \"lint-results-debug.xml\",\n            \"lint-results-release.xml\"\n        ).toTypedArray()\n\n        parseAllDistinct(*moduleLintFilePaths).forEach {\n            if(it.severity == \"Fatal\")\n                fail(\n                    \"Danger lint check failed: ${it.message}\", \n                    it.location.file.replace(System.getProperty(\"user.dir\"), \"\"), \n                    Integer.parseInt(it.location.line)\n                )\n        }\n    }\n```\n\n## Configuration for the default report\n\nYou can customise the aspect of your default reports defining the configuration file `androidlint.dangerplugin.yml`\n```yaml\nlogLevel: WARNING\nformat: \"{severity}: {message}\"\nfailIf:\n  warnings: 3\n  errors: 1\n  fatals: 1\n  total: 3\n```\n\n#### Accepted values are:\n\n| **SETTING**  | **DESCRIPTION**                                                                                                                                   |                **DEFAULT**                | **ACCEPTED VALUES**                                                                                                                |\n|----------|-----------------------------------------------------------------------------------------------------------------------------------------------|:-------------------------------------:|--------------------------------------------------------------------------------------------------------------------------------|\n| `logLevel` | Report all the lints with `severity` \u003e= `logLevel`                                                                                                | `WARNING`                               | `WARNING, ERROR, FATAL`                                                                                                          |\n| `format`   | Define a custom message for your lints                                                                                                        | `\"{severity}: {message}\"`               | `{id}, {severity}, {message}, {category}`,\u003cbr\u003e`{priority}, {summary}, {explanation}, {url},`\u003cbr\u003e`{urls}, {errorLine1}, {errorLine2}` |\n| `failIf`   | Fail your PR if the condition is satisfied:\u003cbr\u003efor example in this case will fail if there are at least:\u003cbr\u003e3 warnings or 1 error or 1 fatal. | `warnings: 3`\u003cbr\u003e`errors: 1`\u003cbr\u003e`fatals: 1` | `warnings: Int`\u003cbr\u003e`errors: Int`\u003cbr\u003e`fatals: Int`\u003cbr\u003e`total: Int`                                                                      |\n\n\n[Danger Kotlin]:https://github.com/danger/kotlin\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgianluz%2Fdanger-kotlin-android-lint-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgianluz%2Fdanger-kotlin-android-lint-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgianluz%2Fdanger-kotlin-android-lint-plugin/lists"}