From 496d00e1e21fc9480f5379b4dc8f3f2e11b33330 Mon Sep 17 00:00:00 2001 From: Martin Grotzke Date: Sun, 21 Jan 2024 19:50:53 +0100 Subject: [PATCH] Prevent linter / lintUnused warning This warning now no longer happens on sbt startup: ``` [warn] there's a key that's not used by any other settings/tasks: [warn] [warn] * solrs / Paradox / sourceDirectory [warn] +- /home/magro/proj/solrs/build.sbt:72 [warn] [warn] note: a setting might still be used by a command; to exclude a key from this `lintUnused` check [warn] either append it to `Global / excludeLintKeys` or call .withRank(KeyRanks.Invisible) on the key ``` --- build.sbt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build.sbt b/build.sbt index dc9f6a9..2ec4dee 100644 --- a/build.sbt +++ b/build.sbt @@ -71,6 +71,9 @@ Test / fork := true enablePlugins(ParadoxSitePlugin) Paradox / sourceDirectory := sourceDirectory.value / "main" / "paradox" +// prevent linter warning "there's a key that's not used by any other settings/tasks" +Global / excludeLintKeys += Paradox / sourceDirectory + enablePlugins(GhpagesPlugin) git.remoteRepo := scmInfo.value.get.connection