Merge pull request #5686 from eatkins/sbt-build-lint

Remove lint warnings in sbt build
This commit is contained in:
eugene yokota 2020-07-27 15:27:42 -04:00 committed by GitHub
commit 8e85035773
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 3 deletions

View File

@ -16,6 +16,13 @@ ThisBuild / scalafmtOnCompile := !(Global / insideCI).value
ThisBuild / Test / scalafmtOnCompile := !(Global / insideCI).value ThisBuild / Test / scalafmtOnCompile := !(Global / insideCI).value
ThisBuild / turbo := true ThisBuild / turbo := true
val excludeLint = SettingKey[Set[Def.KeyedInitialize[_]]]("excludeLintKeys")
Global / excludeLint := (Global / excludeLint).?.value.getOrElse(Set.empty)
Global / excludeLint += componentID
Global / excludeLint += whitesourceIgnoredScopes
Global / excludeLint += scriptedBufferLog
Global / excludeLint += checkPluginCross
// ThisBuild settings take lower precedence, // ThisBuild settings take lower precedence,
// but can be shared across the multi projects. // but can be shared across the multi projects.
def buildLevelSettings: Seq[Setting[_]] = def buildLevelSettings: Seq[Setting[_]] =
@ -103,8 +110,7 @@ def commonBaseSettings: Seq[Setting[_]] = Def.settings(
bintrayPackage := (bintrayPackage in ThisBuild).value, bintrayPackage := (bintrayPackage in ThisBuild).value,
bintrayRepository := (bintrayRepository in ThisBuild).value, bintrayRepository := (bintrayRepository in ThisBuild).value,
publishArtifact in Test := false, publishArtifact in Test := false,
fork in compile := true, fork in run := true,
fork in run := true
) )
def commonSettings: Seq[Setting[_]] = def commonSettings: Seq[Setting[_]] =
commonBaseSettings :+ commonBaseSettings :+

View File

@ -29,7 +29,6 @@ object NightlyPlugin extends AutoPlugin {
) )
override def projectSettings: Seq[Setting[_]] = Seq( override def projectSettings: Seq[Setting[_]] = Seq(
crossVersion in update := CrossVersion.full,
resolvers += Resolver.typesafeIvyRepo("releases").withName("typesafe-alt-project-releases") resolvers += Resolver.typesafeIvyRepo("releases").withName("typesafe-alt-project-releases")
) )
} }