Skip to content

Commit

Permalink
Prevent linter / lintUnused warning
Browse files Browse the repository at this point in the history
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
```
  • Loading branch information
magro committed Jan 21, 2024
1 parent 124d68a commit 496d00e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 496d00e

Please sign in to comment.