Skip to content

Commit

Permalink
Fix Scalastyle
Browse files Browse the repository at this point in the history
This contains a workaround for
scalastyle/scalastyle-sbt-plugin#47
  • Loading branch information
fthomas committed Jan 6, 2016
1 parent 1991f82 commit 0d5e072
Show file tree
Hide file tree
Showing 14 changed files with 19 additions and 21 deletions.
4 changes: 4 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,10 @@ lazy val myDoctestSettings =
lazy val styleSettings =
scalariformSettings ++
Seq(
// workaround for https://github.com/scalastyle/scalastyle-sbt-plugin/issues/47
scalastyleSources in Compile :=
(unmanagedSourceDirectories in Compile).value,

sourceDirectories in (Compile, SbtScalariform.ScalariformKeys.format) :=
(sourceDirectories in Compile).value,
sourceDirectories in (Test, SbtScalariform.ScalariformKeys.format) :=
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ package scalacheck

import eu.timepit.refined.api.{ RefType, Validate }
import eu.timepit.refined.numeric._
import org.scalacheck.Gen.Choose
import org.scalacheck.{ Arbitrary, Gen }
import shapeless.ops.nat.ToInt
import org.scalacheck.Gen.Choose
import shapeless.{ Nat, Witness }
import shapeless.ops.nat.ToInt

object numeric {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package eu.timepit.refined
package api

import eu.timepit.refined.internal.Resources

import scala.util.Try

/**
Expand Down
2 changes: 1 addition & 1 deletion core/shared/src/main/scala/eu/timepit/refined/auto.scala
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package eu.timepit.refined

import eu.timepit.refined.api.{ Refined, RefType, Validate }
import eu.timepit.refined.api.Inference.==>
import eu.timepit.refined.api.{ RefType, Refined, Validate }
import eu.timepit.refined.macros.{ InferMacro, RefineMacro }
import shapeless.tag.@@

Expand Down
4 changes: 2 additions & 2 deletions core/shared/src/main/scala/eu/timepit/refined/boolean.scala
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package eu.timepit.refined

import eu.timepit.refined.api.Inference.==>
import eu.timepit.refined.api._
import eu.timepit.refined.api.Inference.==>
import eu.timepit.refined.boolean._
import eu.timepit.refined.internal.Resources
import shapeless.ops.hlist.ToList
import shapeless.{ ::, HList, HNil }
import shapeless.ops.hlist.ToList

object boolean extends BooleanValidate with BooleanInference0 {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package eu.timepit.refined

import eu.timepit.refined.api.Inference.==>
import eu.timepit.refined.api.{ Inference, Result, Validate }
import eu.timepit.refined.api.Inference.==>
import eu.timepit.refined.boolean.Not
import eu.timepit.refined.collection._
import eu.timepit.refined.generic.Equal
Expand Down
7 changes: 3 additions & 4 deletions core/shared/src/main/scala/eu/timepit/refined/generic.scala
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
package eu.timepit.refined

import eu.timepit.refined.api.Inference.==>
import eu.timepit.refined.api.{ Inference, Validate }
import eu.timepit.refined.api.Inference.==>
import eu.timepit.refined.generic._
import scala.reflect.runtime.currentMirror
import scala.tools.reflect.ToolBox
import shapeless._
import shapeless.ops.coproduct.ToHList
import shapeless.ops.hlist.ToList
import shapeless.ops.nat.ToInt
import shapeless.ops.record.Keys

import scala.reflect.runtime.currentMirror
import scala.tools.reflect.ToolBox

object generic extends GenericValidate with GenericInference {

/** Predicate that checks if a value is equal to `U`. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package eu.timepit.refined
package internal

import eu.timepit.refined.api.Result

import scala.util.{ Failure, Success, Try }

object Resources {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import eu.timepit.refined.api.Inference.==>
import eu.timepit.refined.api.RefType
import eu.timepit.refined.internal.Resources
import macrocompat.bundle

import scala.reflect.macros.blackbox

@bundle
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package eu.timepit.refined
package macros

import macrocompat.bundle

import scala.reflect.macros.blackbox
import scala.util.{ Success, Try }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ package macros
import eu.timepit.refined.api.{ RefType, Validate }
import eu.timepit.refined.internal.Resources
import macrocompat.bundle

import scala.reflect.macros.blackbox

@bundle
Expand Down
8 changes: 4 additions & 4 deletions core/shared/src/main/scala/eu/timepit/refined/numeric.scala
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package eu.timepit.refined

import eu.timepit.refined.api.Inference.==>
import eu.timepit.refined.api.{ Inference, Validate }
import eu.timepit.refined.boolean._
import eu.timepit.refined.api.Inference.==>
import eu.timepit.refined.boolean.{ And, Not }
import eu.timepit.refined.numeric._
import shapeless.nat._
import shapeless.ops.nat.ToInt
import shapeless.{ Nat, Witness }
import shapeless.nat._0
import shapeless.ops.nat.ToInt

/**
* Module for numeric predicates. Predicates that take type parameters
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package eu.timepit

import eu.timepit.refined.api.{ RefType, Refined }
import eu.timepit.refined.api.{ Refined, RefType }
import eu.timepit.refined.internal._
import shapeless.tag.@@

Expand Down
2 changes: 1 addition & 1 deletion core/shared/src/main/scala/eu/timepit/refined/string.scala
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package eu.timepit.refined

import eu.timepit.refined.api.Inference.==>
import eu.timepit.refined.api.{ Inference, Validate }
import eu.timepit.refined.api.Inference.==>
import eu.timepit.refined.string._
import shapeless.Witness

Expand Down

0 comments on commit 0d5e072

Please sign in to comment.