Skip to content

build: fix sbt lint warnings by excluding unused keys#1071

Merged
He-Pin merged 1 commit into
mainfrom
fix/resolve-sbt-lint-warnings
Jun 16, 2026
Merged

build: fix sbt lint warnings by excluding unused keys#1071
He-Pin merged 1 commit into
mainfrom
fix/resolve-sbt-lint-warnings

Conversation

@He-Pin

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

Copy link
Copy Markdown
Member

Motivation

sbt lint reported 45 unused keys (projectInfoVersion, mimaReportSignatureProblems, autoAPIMappings, unidocProjectFilter) across sub-projects. These keys are intentionally set in Common.scala and Doc.scala plugins with allRequirements trigger but are only read in specific scopes, causing spurious lint warnings.

Modification

Add projectInfoVersion, mimaReportSignatureProblems, autoAPIMappings, and unidocProjectFilter to excludeLintKeys in project/Common.scala globalSettings.

Result

All 45 sbt lint warnings resolved with a single centralized exclusion in the common plugin.

Tests

  • sbt "http-core / compile; http / compile; parsing / compile" - no sbt lint warnings
  • sbt "http-caching / compile; http-cors / compile; http-testkit / compile; http-marshallers-scala / compile; http-marshallers-java / compile" - no sbt lint warnings

References

None - build configuration cleanup

Motivation:
sbt lint reported 45 unused keys across sub-projects.

Modification:
Add projectInfoVersion, mimaReportSignatureProblems, autoAPIMappings,
and unidocProjectFilter to excludeLintKeys in project/Common.scala
globalSettings.

Result:
sbt lint warnings resolved.

Tests:
- sbt "http-core / compile; http / compile; parsing / compile" - sbt lint warnings resolved
- sbt "http-caching / compile; http-cors / compile; http-testkit / compile" - sbt lint warnings resolved

References:
None - build configuration cleanup
@He-Pin He-Pin requested a review from pjfanning June 16, 2026 05:07

@pjfanning pjfanning left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@He-Pin He-Pin merged commit ab6fac2 into main Jun 16, 2026
5 checks passed
@He-Pin He-Pin deleted the fix/resolve-sbt-lint-warnings branch June 16, 2026 10:23
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