Skip to content

Delete the lint baselines that suppress nothing - #3132

Draft
StylianosGakis wants to merge 1 commit into
chore/lint-config-fixesfrom
chore/delete-empty-lint-baselines
Draft

Delete the lint baselines that suppress nothing#3132
StylianosGakis wants to merge 1 commit into
chore/lint-config-fixesfrom
chore/delete-empty-lint-baselines

Conversation

@StylianosGakis

Copy link
Copy Markdown
Member

🤖 AI description:

The systematic half of #3121. That PR stopped lint requiring a baseline per module; this deletes the ones that requirement produced.

What goes. 104 of the 105 checked-in baselines contain no entries at all, and all 104 are byte-identical at 188 bytes. They existed only because lint aborts whenever it has to create a missing baseline, so every module the convention plugin touched needed the file whether it suppressed anything or not.

With #3121 in place a baseline now means what it says: this module suppresses findings. These 104 said nothing.

What stays. lint-baseline-core-resources.xml, whose 39 entries are the only ones carrying information. It is also the record of what would surface if AGP ever gives KMP modules a runnable lint task, which is why it is worth keeping even though nothing enforces it today (it was generated by lint 8.8.0-alpha09 and cannot be regenerated, since that module has no lint task).

Verified a no-op. An empty baseline suppresses nothing, so removing it cannot change a result. Confirmed by running the full ./gradlew lint with all 104 gone: BUILD SUCCESSFUL, no baseline recreated, no untracked files left behind.

Adding a baseline from here. Create the file empty, then fill it with updateLintBaseline. The task is a no-op when no file exists, and the convention plugin's comment says so at the point where baseline is set.

104 of the 105 checked-in baselines contain no entries. They existed only
because lint used to abort whenever it had to create a missing baseline, so
every module the convention plugin touched needed the file whether it
suppressed anything or not.

Lint no longer requires them, so a baseline in the tree now means what it
says: this module suppresses findings. Deleting the empty ones makes the
tree match that.

`lint-baseline-core-resources.xml` stays. Its 39 entries are the only ones
carrying information, and they are the record of what would surface if AGP
ever gives KMP modules a runnable lint task.

A module that needs a baseline from here creates the file empty and fills it
with `updateLintBaseline`, which the convention plugin documents.
@StylianosGakis
StylianosGakis force-pushed the chore/delete-empty-lint-baselines branch from d6369d5 to fc49ec2 Compare September 4, 2026 16:52
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

Successfully merging this pull request may close these issues.

1 participant