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

android_lint.filtering = true doesn't work #18

Open
afaucogney opened this issue Jun 27, 2019 · 5 comments
Open

android_lint.filtering = true doesn't work #18

afaucogney opened this issue Jun 27, 2019 · 5 comments

Comments

@afaucogney
Copy link

here is the config:

android_lint.skip_gradle_task = true
android_lint.report_file = "./app/build/reports/lint/lint-report.xml"
android_lint.filtering = true
android_lint.lint(inline_mode: true)

Danger report every issues in the PR
I use gitlab

How filtering should work ?

  • is it a configuration of the gradle task that will apply lint to the expected filers ?
  • or this is a filter of the issues files itself ?
@ShivamPokhriyal
Copy link
Contributor

ShivamPokhriyal commented May 17, 2021

+1
Using filtering = true, danger should only commit lint issues in the added/modified lines. Instead it comments on everything in the PR(lines below the added ones).

@ShivamPokhriyal
Copy link
Contributor

Example PR dimagi/commcare-android#2479

@barbosa
Copy link
Contributor

barbosa commented May 18, 2021

Hey @ShivamPokhriyal
Thanks for pointing that out. It's indeed a current limitation of the plugin.
Do you want to give it a shot and send us a PR?

@ShivamPokhriyal
Copy link
Contributor

Sure, I'll take a look at it.

@petitJAM
Copy link
Contributor

I found that the new parameter added in #30 doesn't work when inline_mode: false, so I submitted a PR for that. I think this issue can be closed after that is merged.

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

4 participants