Skip to content

Delete the lint baselines that suppress nothing - #3132

Merged
StylianosGakis merged 1 commit into
chore/lint-config-fixesfrom
chore/delete-empty-lint-baselines
Sep 8, 2026
Merged

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

Conversation

@StylianosGakis

@StylianosGakis StylianosGakis commented Sep 4, 2026

Copy link
Copy Markdown
Member

Delete all the empty baseline files which were noise without giving us any benefit

🤖 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 marked this pull request as ready for review September 7, 2026 14:54
@StylianosGakis
StylianosGakis requested a review from a team as a code owner September 7, 2026 14:54
@StylianosGakis
StylianosGakis force-pushed the chore/delete-empty-lint-baselines branch from fc49ec2 to 29ee588 Compare September 7, 2026 15:00
@StylianosGakis
StylianosGakis merged commit e57b29a into develop Sep 8, 2026
4 checks passed
@StylianosGakis
StylianosGakis deleted the chore/delete-empty-lint-baselines branch September 8, 2026 09:51
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.

2 participants