From 707a867475cb1834a01f4cc5c88315cea5a44fdb Mon Sep 17 00:00:00 2001 From: Olivier NOUGUIER Date: Sun, 6 Oct 2024 23:23:17 +0200 Subject: [PATCH] Refactor build.sbt to enable all warnings and remove unused imports --- build.sbt | 6 +++--- .../shared/src/main/scala/dev/cheleb/ziojwt/WithToken.scala | 2 -- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/build.sbt b/build.sbt index 366461b..8306d4e 100644 --- a/build.sbt +++ b/build.sbt @@ -45,7 +45,8 @@ inThisBuild( scalacOptions ++= Seq( "-deprecation", "-feature", - "-Xfatal-warnings" + "-Xfatal-warnings", + "-Wunused:all" ), wartremoverErrors ++= Warts.all ) @@ -78,8 +79,7 @@ val usedScalacOptions = Seq( "-unchecked", "-language:higherKinds", "-language:implicitConversions", - "-Xmax-inlines:64", - "-Wunused:all" + "-Xmax-inlines:64" ) lazy val shared = crossProject(JSPlatform, JVMPlatform) diff --git a/modules/shared/src/main/scala/dev/cheleb/ziojwt/WithToken.scala b/modules/shared/src/main/scala/dev/cheleb/ziojwt/WithToken.scala index e3f3360..ab5d66a 100644 --- a/modules/shared/src/main/scala/dev/cheleb/ziojwt/WithToken.scala +++ b/modules/shared/src/main/scala/dev/cheleb/ziojwt/WithToken.scala @@ -1,7 +1,5 @@ package dev.cheleb.ziojwt -import sttp.model.Uri - /** A trait to represent a token with an expiration date. */ trait WithToken {