Add more keys to excludeLintKeys

This commit is contained in:
Eugene Yokota 2023-01-20 22:34:44 -05:00
parent ec3eda3cc2
commit a8213abb92
1 changed files with 8 additions and 1 deletions

View File

@ -32,17 +32,24 @@ object LintUnused {
aggregate,
concurrentRestrictions,
commands,
configuration,
crossScalaVersions,
crossSbtVersions,
evictionWarningOptions,
initialize,
lintUnusedKeysOnLoad,
onLoad,
onLoadMessage,
onUnload,
pollInterval,
pushRemoteCacheArtifact,
sbt.nio.Keys.outputFileStamper,
sbt.nio.Keys.watchTriggers,
serverConnectionType,
serverIdleTimeout,
shellPrompt,
sLog,
traceLevel,
),
includeLintKeys := Set(
scalacOptions,
@ -148,7 +155,7 @@ object LintUnused {
case Some(data) => data.settingValue.isDefined
case _ => false
}
def isLocallyDefined(u: UnusedKey): Boolean = u.positions exists {
def isLocallyDefined(u: UnusedKey): Boolean = u.positions.exists {
case pos: FilePosition => pos.path.contains(File.separator)
case _ => false
}