Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant