Skip to content

Commit

Permalink
More s/rewrite/rule
Browse files Browse the repository at this point in the history
  • Loading branch information
gabro committed Sep 10, 2017
1 parent b5383e4 commit 81c18da
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions scalafix/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Scalafix rewrites for cats
# Scalafix rules for cats

## Try this!

Expand All @@ -14,7 +14,7 @@ run
sbt scalafix github:typelevel/cats/v1.0.0
```

## Available rewrites
## Available rules

- [x] All Unapply enabled methods, e.g. sequenceU, traverseU, etc. are removed. Unapply enabled syntax ops are also removed. Please use the partial unification SI-2712 fix instead. The easiest way might be this sbt-plugin.

Expand Down
4 changes: 2 additions & 2 deletions scalafix/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
val V = _root_.scalafix.Versions
scalaVersion in ThisBuild := V.scala212

lazy val rewrites = project.settings(
lazy val rules = project.settings(
libraryDependencies += "ch.epfl.scala" %% "scalafix-core" % V.version
)

Expand Down Expand Up @@ -35,5 +35,5 @@ lazy val tests = project
classDirectory.in(input, Compile).value
)
)
.dependsOn(input, rewrites)
.dependsOn(input, rules)
.enablePlugins(BuildInfoPlugin)
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
rewrite = "scala:fix.v1_0_0.RemoveCartesianBuilder"
rule = "scala:fix.v1_0_0.RemoveCartesianBuilder"
*/
package fix
package to1_0_0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
rewrite = "scala:fix.v1_0_0.RemoveCartesianBuilder"
rule = "scala:fix.v1_0_0.RemoveCartesianBuilder"
*/
package fix
package to1_0_0
Expand Down
2 changes: 1 addition & 1 deletion scalafix/input/src/main/scala/fix/v1_0_0/RemoveSplit.scala
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
rewrite = "scala:fix.v1_0_0.RemoveSplit"
rule = "scala:fix.v1_0_0.RemoveSplit"
*/
package fix
package to1_0_0
Expand Down
4 changes: 2 additions & 2 deletions scalafix/input/src/main/scala/fix/v1_0_0/RemoveUnapply.scala
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
rewrite = "scala:fix.v1_0_0.RemoveUnapply"
/*
rule = "scala:fix.v1_0_0.RemoveUnapply"
*/
package fix
package to1_0_0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
rewrite = "scala:fix.v1_0_0.RenameFreeSuspend"
/*
rule = "scala:fix.v1_0_0.RenameFreeSuspend"
*/
package fix
package to1_0_0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
rewrite = "scala:fix.v1_0_0.RenameInjectProdAndCoproduct"
/*
rule = "scala:fix.v1_0_0.RenameInjectProdAndCoproduct"
*/
package fix
package to1_0_0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
rewrite = "scala:fix.v1_0_0.RenameReducibleMethods"
/*
rule = "scala:fix.v1_0_0.RenameReducibleMethods"
*/
package fix
package to1_0_0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
rewrite = "scala:fix.v1_0_0.RenameTupleApplySyntax"
rule = "scala:fix.v1_0_0.RenameTupleApplySyntax"
*/
package fix
package to1_0_0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
rewrite = "scala:fix.v1_0_0.SimplifyEitherTLift"
rule = "scala:fix.v1_0_0.SimplifyEitherTLift"
*/
package fix
package to1_0_0
Expand Down

0 comments on commit 81c18da

Please sign in to comment.