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

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

No branches or pull requests

4 participants