Skip to content
This repository has been archived by the owner on Aug 13, 2024. It is now read-only.

Commit

Permalink
Use sbt-tpolecat (closes #14)
Browse files Browse the repository at this point in the history
  • Loading branch information
BenFradet authored and chuwy committed Mar 9, 2021
1 parent 4dc9282 commit f76aa81
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 31 deletions.
1 change: 0 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ lazy val root = project.in(file("."))
scalaVersion := "2.12.13",
licenses += ("Apache-2.0", url("https://www.apache.org/licenses/LICENSE-2.0"))
)
.settings(BuildSettings.buildSettings)
.settings(BuildSettings.publishSettings)
.settings(
resolvers ++= Seq(
Expand Down
25 changes: 0 additions & 25 deletions project/BuildSettings.scala
Original file line number Diff line number Diff line change
Expand Up @@ -24,31 +24,6 @@ import bintray.BintrayKeys._
* To enable any of these you need to explicitly add Settings value to build.sbt
*/
object BuildSettings {

lazy val buildSettings = Seq[Setting[_]](
scalacOptions := Seq(
"-deprecation",
"-encoding", "UTF-8",
"-feature",
"-unchecked",
"-Ywarn-dead-code",
"-Ywarn-inaccessible",
"-Ywarn-infer-any",
"-Ywarn-nullary-override",
"-Ywarn-nullary-unit",
"-Ywarn-numeric-widen",
"-Ywarn-unused",
"-Ywarn-value-discard",
"-Ypartial-unification",
"-language:higherKinds"
),
javacOptions := Seq(
"-source", "1.8",
"-target", "1.8",
"-Xlint"
)
)

lazy val publishSettings = bintraySettings ++ Seq(
publishMavenStyle := true,
publishArtifact := true,
Expand Down
1 change: 1 addition & 0 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
logLevel := Level.Warn

addSbtPlugin("org.foundweekends" % "sbt-bintray" % "0.5.4")
addSbtPlugin("io.github.davidgregory084" % "sbt-tpolecat" % "0.1.16")
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ package com.snowplowanalytics.iglu.schemaddl.scalacheck
import cats.Monad
import cats.effect.Clock
import cats.implicits._
import com.snowplowanalytics.iglu.client.Client
import com.snowplowanalytics.iglu.client.validator.CirceValidator
import com.snowplowanalytics.iglu.client.resolver.{InitListCache, InitSchemaCache, Resolver}
import com.snowplowanalytics.iglu.client.resolver.registries.RegistryLookup
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ package com.snowplowanalytics.iglu.schemaddl.scalacheck

import java.time.{Instant, ZoneOffset}
import java.time.format.DateTimeFormatter
import java.util.Locale

import cats._
import cats.implicits._
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
package com.snowplowanalytics.iglu.schemaddl.scalacheck

import cats.data.EitherT
import cats.effect.{Clock, IO}
import cats.syntax.either._
import cats.effect.IO
import com.snowplowanalytics.iglu.client.resolver.Resolver
import com.snowplowanalytics.iglu.client.resolver.registries.Registry
import com.snowplowanalytics.iglu.core.SchemaKey
Expand All @@ -35,7 +34,7 @@ class IgluSchemasSpec extends Specification with ScalaCheck { def is = s2"""
implicit val arb: Arbitrary[Json] = Arbitrary(gen)
prop { (json: Json) =>
IgluSchemas.validate(json, schema) match {
case Right(s) =>
case Right(_) =>
true
case Left(error) =>
println(s"Failed for schema:\n${json.printWith(Printer.spaces2)}\nReason:\n $error")
Expand Down

0 comments on commit f76aa81

Please sign in to comment.