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

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

commit d86f0ee9367a67dee8e83ca7ac754c06c980ab65
Author: 虎鸣 <[email protected]>
AuthorDate: Tue Jun 16 12:03:58 2026 +0800

    chore: suppress sbt lint warnings for intentionally used keys
    
    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 32b7b34a..4b80703a 100644
--- a/project/ProjectSettings.scala
+++ b/project/ProjectSettings.scala
@@ -144,4 +144,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