This is an automated email from the ASF dual-hosted git repository.

He-Pin pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pekko-connectors-kafka.git


The following commit(s) were added to refs/heads/main by this push:
     new 8782b87f chore: suppress sbt lint warnings for intentionally used keys 
(#555)
8782b87f is described below

commit 8782b87f03a5751360c5d3c0b37b7642009936db
Author: He-Pin(kerr) <[email protected]>
AuthorDate: Sat Jun 20 03:38:05 2026 +0800

    chore: suppress sbt lint warnings for intentionally used keys (#555)
    
    Motivation:
    sbt lint reports false positives for keys that are legitimately used
    in build configuration but appear unused to the linter.
    
    Modification:
    - Add globalSettings override to exclude mimaReportSignatureProblems
      and projectInfoVersion from lint checks
    - Add Global excludeLintKeys for previewPath in docs project
    
    Result:
    Clean sbt build with no lint warnings
---
 build.sbt                     | 1 +
 project/ProjectSettings.scala | 3 +++
 2 files changed, 4 insertions(+)

diff --git a/build.sbt b/build.sbt
index d8b9ad0a..526e3071 100644
--- a/build.sbt
+++ b/build.sbt
@@ -141,6 +141,7 @@ lazy val docs = project
     Compile / paradox / name := "Pekko",
     makeSite := makeSite.dependsOn(LocalRootProject / ScalaUnidoc / doc).value,
     previewPath := (Paradox / siteSubdirName).value,
+    Global / excludeLintKeys += previewPath,
     Global / pekkoParadoxIncubatorNotice := None,
     Preprocess / siteSubdirName := 
s"api/pekko-connectors-kafka/${projectInfoVersion.value}",
     Preprocess / sourceDirectory := (LocalRootProject / ScalaUnidoc / unidoc / 
target).value,
diff --git a/project/ProjectSettings.scala b/project/ProjectSettings.scala
index 1f4d9fc9..b808c814 100644
--- a/project/ProjectSettings.scala
+++ b/project/ProjectSettings.scala
@@ -145,4 +145,7 @@ object ProjectSettings extends AutoPlugin {
 
   override lazy val buildSettings = Seq(
     dynverSonatypeSnapshots := true)
+
+  override def globalSettings =
+    Seq(excludeLintKeys ++= Set(mimaReportSignatureProblems, 
projectInfoVersion))
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to