From 6f3e21e75c82c6d77c03b329db0de147d9df1be2 Mon Sep 17 00:00:00 2001 From: Pat Garrity Date: Mon, 20 Jul 2026 21:49:58 -0500 Subject: [PATCH] Pre-Commit --- build.sbt | 37 +++++++++++++++++++------------------ src/main/scala/gs/Gs.scala | 4 ++-- 2 files changed, 21 insertions(+), 20 deletions(-) diff --git a/build.sbt b/build.sbt index 8c37bdc..d1dc4ce 100644 --- a/build.sbt +++ b/build.sbt @@ -13,7 +13,7 @@ val Description: String = "SBT 2.0.0+ plugin for Garrity Software projects." val CurrentVersion: String = "0.8.0" -def isRelease(): Boolean = +def isRelease(): Boolean = !CurrentVersion.contains("SNAPSHOT") lazy val publishSettings = Seq( @@ -28,7 +28,9 @@ lazy val publishSettings = Seq( ), description := Description, licenses := List( - "MIT" -> uri(s"https://git.garrity.co/garrity-software/$ProjectName/LICENSE") + "MIT" -> uri( + s"https://git.garrity.co/garrity-software/$ProjectName/LICENSE" + ) ), homepage := Some( uri(s"https://git.garrity.co/garrity-software/$ProjectName") @@ -48,22 +50,21 @@ lazy val root = Project(ProjectName, file(".")) .settings( name := ProjectName, version := CurrentVersion, - pluginCrossBuild / sbtVersion := { - "2.0.0" - }, + pluginCrossBuild / sbtVersion := + "2.0.0", scalacOptions := Seq( - "-encoding", - "utf8", - "-deprecation", - "-feature", - "-explain", - "-unchecked", - "-explain-types", - "-language:strictEquality", - "-Wunused:implicits", - "-Wunused:explicits", - "-Wunused:imports", - "-Wunused:locals", - "-Wunused:privates" + "-encoding", + "utf8", + "-deprecation", + "-feature", + "-explain", + "-unchecked", + "-explain-types", + "-language:strictEquality", + "-Wunused:implicits", + "-Wunused:explicits", + "-Wunused:imports", + "-Wunused:locals", + "-Wunused:privates" ) ) diff --git a/src/main/scala/gs/Gs.scala b/src/main/scala/gs/Gs.scala index 4ea782c..b56a737 100644 --- a/src/main/scala/gs/Gs.scala +++ b/src/main/scala/gs/Gs.scala @@ -13,9 +13,9 @@ object Gs: "-feature", // Emit warning and location for usages of features that should be imported explicitly. "-explain", // Explain errors in more detail. "-unchecked", // Enable additional warnings where generated code depends on assumptions. - "-explain-types", // Explain type errors in more detail. + "-explain-types", // Explain type errors in more detail. "-language:strictEquality", // Enable multiversal equality (require CanEqual) - "-Werror", // Fail the compilation if there are any warnings. + "-Werror", // Fail the compilation if there are any warnings. "-Wunused:implicits", // Warn if an implicit parameter is unused. "-Wunused:explicits", // Warn if an explicit parameter is unused. "-Wunused:imports", // Warn if an import selector is not referenced.