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

[Bug] Lint baseline is not generated #813

Open
saurabharora90 opened this issue Apr 12, 2024 · 2 comments
Open

[Bug] Lint baseline is not generated #813

saurabharora90 opened this issue Apr 12, 2024 · 2 comments

Comments

@saurabharora90
Copy link

Lint is not generating a baseline.xml when using the Lint task from this plugin. The issue seems to that the baseline file is being configured in library modules as well, whereas instead it should only be done for Application Modules. Adding a

if (androidExtensionNullable is ApplicationAndroidComponentsExtension)

before configuring the baseline file seems to resolve the issue. Given checkDependencies is enabled for app modules, it makes sense to enable baseline also just for app modules.

I have this working locally and can send a PR if you are open to contributions and agree with the change. Didn't file it under discussion as it was more of a bug than a feature request :)

@ZacSweers
Copy link
Collaborator

sorry for the delay on this!

it should only be done for Application Modules

I'm not sure I follow this. We run lint with baselines on both library and application projects. In our application project, we only run lint with UnusedResources and nothing else. Could you elaborate on why you think this option only applies to application projects?

@saurabharora90
Copy link
Author

Could you elaborate on why you think this option only applies to application projects?

Been a while since I had filed this. Let me rejig my memory, look through the code again and I'll get back, otherwise will close the issue if I can't!

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

2 participants