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

Danger fails if no lint report is created #15

Open
tobiasschuerg opened this issue Nov 14, 2018 · 0 comments
Open

Danger fails if no lint report is created #15

tobiasschuerg opened this issue Nov 14, 2018 · 0 comments

Comments

@tobiasschuerg
Copy link

tobiasschuerg commented Nov 14, 2018

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant