{"id":13684152,"url":"https://github.com/loadsmart/danger-android_lint","last_synced_at":"2025-04-05T11:10:11.632Z","repository":{"id":13500817,"uuid":"74384003","full_name":"loadsmart/danger-android_lint","owner":"loadsmart","description":"A Danger plugin for Android Lint","archived":false,"fork":false,"pushed_at":"2024-07-31T17:41:05.000Z","size":68,"stargazers_count":55,"open_issues_count":7,"forks_count":24,"subscribers_count":64,"default_branch":"master","last_synced_at":"2024-10-05T01:19:01.062Z","etag":null,"topics":["android","danger","gradle","lint"],"latest_commit_sha":null,"homepage":"https://developer.android.com/studio/write/lint.html","language":"Ruby","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/loadsmart.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-11-21T16:39:45.000Z","updated_at":"2024-06-02T14:23:09.000Z","dependencies_parsed_at":"2024-01-14T16:07:44.734Z","dependency_job_id":"5a9252a7-669d-4270-bbd6-c8a216d877be","html_url":"https://github.com/loadsmart/danger-android_lint","commit_stats":{"total_commits":66,"total_committers":11,"mean_commits":6.0,"dds":"0.28787878787878785","last_synced_commit":"4e7febad6a26b81f21f87794cd59363d3b130d75"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loadsmart%2Fdanger-android_lint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loadsmart%2Fdanger-android_lint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loadsmart%2Fdanger-android_lint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loadsmart%2Fdanger-android_lint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/loadsmart","download_url":"https://codeload.github.com/loadsmart/danger-android_lint/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247325693,"owners_count":20920714,"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":["android","danger","gradle","lint"],"created_at":"2024-08-02T14:00:27.649Z","updated_at":"2025-04-05T11:10:11.614Z","avatar_url":"https://github.com/loadsmart.png","language":"Ruby","funding_links":[],"categories":["Plugins"],"sub_categories":["Ruby (danger)"],"readme":"[![CircleCI](https://circleci.com/gh/loadsmart/danger-android_lint.svg?style=svg)](https://circleci.com/gh/loadsmart/danger-android_lint)\n\n# danger-android_lint\n\nLint files of a gradle based Android project.\n\n## Installation\n\n### Via global gems\n\n```\n$ gem install danger-android_lint\n```\n\n### Via Bundler\n\nAdd the following line to your Gemfile and then run `bundle install`:\n\n```rb\ngem 'danger-android_lint'\n```\n\n## Usage\n\nBefore all, you need to turn lint reports on in your `build.gradle` file. You can do this by adding the `xmlReport true` option, like:\n\n```gradle\nandroid {\n    lintOptions {\n        xmlReport true\n    }\n}\n```\n\n### Basic\n\n```rb\nandroid_lint.lint\n```\n\n### Advanced\n\n#### Using a custom gradle task\n\nIn case you have multiple flavors, you may want to change the gradle task that runs the lint command. You can achieve that by simply changing the value of `gradle_task`. Default is `lint`.\n\n```rb\nandroid_lint.gradle_task = \"lintMyFlavorDebug\"\nandroid_lint.lint\n```\n\n#### Skip gradle task execution\n\nIf you want to skip the gradle task execution. You can achieve that by simply changing the value of `skip_gradle_task`. Default is `false`.\n\n```rb\nandroid_lint.skip_gradle_task = true\nandroid_lint.lint\n```\n\n#### Changing report's file path\n\nIf you're using a path to output your report file other than the default one, you can specify it by setting a new value to `report_file`:\n\n```rb\nandroid_lint.report_file = \"your/report/file.xml\"\nandroid_lint.lint\n```\n\n#### Changing report's severity level\n\nIf you want to filter lint issues based on their severity level, you can do that by setting a value to `severity`. Bear in mind that you are filtering issues by the severity level you've set **and up**. Possible values are `Warning`, `Error` and `Fatal`. Default is `Warning` (which is everything).\n\n```rb\nandroid_lint.severity = \"Error\"\nandroid_lint.lint\n```\n\n#### Lint only added/modified files\n\nIf you're dealing with a legacy project, with tons of warnings, you may want to lint only new/modified files. You can easily achieve that, setting the `filtering` parameter to `true`.\n\n```rb\nandroid_lint.filtering = true\nandroid_lint.lint\n```\n\nAdditionally, you can further filter to only the modified lines by setting the `filtering_lines` parameter to `true`.\n\n```rb\nandroid_lint.filtering_lines = true\nandroid_lint.lint\n```\n\n#### Filter issues by ID\n\nIn some cases you may want to conditionally ignore specific lint warnings without fully disabling\nthem in your `lintOptions` configuration. To do that, you can pass a list of IDs to the\n`excluding_issue_ids` parameter.\n\n```rb\nandroid_lint.excluding_issue_ids = [\"MissingTranslation\"]\nandroid_lint.lint\n```\n\n#### Make Danger comment directly on the line instead of printing a Markdown table (GitHub only)\n\n```rb\nandroid_lint.lint(inline_mode: true)\n```\n\n## Development\n\n1. Clone this repo\n2. Run `bundle install` to setup dependencies.\n3. Run `bundle exec rake spec` to run the tests.\n4. Use `bundle exec guard` to automatically have tests run as you make changes.\n5. Make your changes.\n\n## License\n\n[MIT](https://raw.githubusercontent.com/loadsmart/danger-android_lint/master/LICENSE.txt)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floadsmart%2Fdanger-android_lint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Floadsmart%2Fdanger-android_lint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floadsmart%2Fdanger-android_lint/lists"}