Skip to content
This repository was archived by the owner on Nov 14, 2024. It is now read-only.
This repository was archived by the owner on Nov 14, 2024. It is now read-only.

Danger fails if no lint report is created #15

@tobiasschuerg

Description

@tobiasschuerg

Using gradle 4.6, gradle build tools 3.2.1 and a target SDK of 28 no lint report is created, if there are no issues found. (tobiasschuerg/FittedDrawable#2)

...
:library:lint
Ran lint on variant release: 0 issues found
Ran lint on variant debug: 0 issues found

and thus, Danger fails:

BUILD SUCCESSFUL in 17s
56 actionable tasks: 2 executed, 54 up-to-date
[!] The exception involves the following plugins:
 -  danger-android_lint
bundler: failed to load command: danger (/usr/local/bin/danger)
Danger::DSLError: 
[!] Invalid `Dangerfile` file: No such file or directory @ rb_sysopen - file:///bitrise/src/library/build/reports/lint-results.xml
 #  from Dangerfile:20
 #  -------------------------------------------
 #  android_lint.report_file = "file:///bitrise/src/library/build/reports/lint-results.xml"
 >  android_lint.lint(inline_mode: true)
 #  android_lint.lint
 #  -------------------------------------------

If issues are found, the report is generated and everything works fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions