Skip to content

Fix sbt load warnings by excluding unused lint keys (#3029) - #3050

Open
He-Pin wants to merge 1 commit into
1.7.xfrom
sbtWarning
Open

Fix sbt load warnings by excluding unused lint keys (#3029)#3050
He-Pin wants to merge 1 commit into
1.7.xfrom
sbtWarning

Conversation

@He-Pin

@He-Pin He-Pin commented Jun 6, 2026

Copy link
Copy Markdown
Member

Motivation:
sbt load was showing 165 warnings about unused keys, which cluttered the output and made it harder to identify real issues.

Modification:
Added Global / excludeLintKeys to build.sbt to exclude the following keys from lintUnused checks:

  • projectInfoVersion (used for linking to API docs)
  • logManager (used to add timestamps to log output)
  • unidocProjectFilter (used to filter projects for unidoc generation)
  • fork (used for PR validation)
  • javacOptions (used to disable doclint for tests)

Result:
sbt load now completes without any warnings about unused keys.

Tests:

  • Verified sbt load completes without warnings

Refs: None - housekeeping
(cherry picked from commit 7c1d0a6)

Motivation:
sbt load was showing 165 warnings about unused keys, which cluttered the output and made it harder to identify real issues.

Modification:
Added Global / excludeLintKeys to build.sbt to exclude the following keys from lintUnused checks:
- projectInfoVersion (used for linking to API docs)
- logManager (used to add timestamps to log output)
- unidocProjectFilter (used to filter projects for unidoc generation)
- fork (used for PR validation)
- javacOptions (used to disable doclint for tests)

Result:
sbt load now completes without any warnings about unused keys.

Tests:
- Verified sbt load completes without warnings

Refs: None - housekeeping
(cherry picked from commit 7c1d0a6)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant