This is an automated email from the ASF dual-hosted git repository.
slawrence pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-daffodil.git
The following commit(s) were added to refs/heads/master by this push:
new cbb3de6 Update ratCheck to latest version, and check fail on
unexpected binaries
cbb3de6 is described below
commit cbb3de60dd1f5fc9b2b18dcbbafb8598715cbfeb
Author: Steve Lawrence <[email protected]>
AuthorDate: Wed Nov 11 13:36:53 2020 -0500
Update ratCheck to latest version, and check fail on unexpected binaries
ASF policy is to not allow unexpected binaries in source/releases.
Unfortunately, ratCheck doesn't currently fail if binaries are
committed, so it is possible for them to unintentionally slip into the
code base. To ensure this doesn't happen, this updates the sbt-rat
plugin to the latest version and enables the new ratFailBinaries setting
so it fails if binaries are found in the repo. This now requires that
any binaries that are expected and allowed to be in the repo (e.g.
images, test data) are explicitly excluded in project/Rat.scala
DAFFODIL-2434
---
build.sbt | 5 ++---
project/plugins.sbt | 2 +-
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/build.sbt b/build.sbt
index 5a3fdd5..ed0eeac 100644
--- a/build.sbt
+++ b/build.sbt
@@ -232,12 +232,11 @@ lazy val ratSettings = Seq(
ratLicenses := Seq(
("BSD2 ", Rat.BSD2_LICENSE_NAME, Rat.LICENSE_TEXT_PASSERA)
),
-
ratLicenseFamilies := Seq(
Rat.BSD2_LICENSE_NAME
),
-
- ratExcludes := Rat.excludes
+ ratExcludes := Rat.excludes,
+ ratFailBinaries := true,
)
lazy val unidocSettings = Seq(
diff --git a/project/plugins.sbt b/project/plugins.sbt
index 9805c82..6918bca 100644
--- a/project/plugins.sbt
+++ b/project/plugins.sbt
@@ -17,7 +17,7 @@
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "1.7.5")
-addSbtPlugin("org.musigma" % "sbt-rat" % "0.6.0")
+addSbtPlugin("org.musigma" % "sbt-rat" % "0.7.0")
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.6.1")