File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
src/sbt-test/sbt-scalafix/local-rules Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ import _root_.scalafix.sbt.{BuildInfo => Versions}
3
3
inThisBuild(
4
4
List (
5
5
scalafixDependencies := List (
6
- // Custom rule cross-published to Maven Central https://github.com/scalacenter/example-scalafix-rule
7
- " ch.epfl.scala " %% " example- scalafix-rule " % " 1.4.0 "
6
+ // CollectHead
7
+ " com.github.xuwei-k " %% " scalafix-rules " % " 0.6.5 "
8
8
),
9
9
resolvers += Resolver .sonatypeRepo(" snapshots" ),
10
10
// out of sync with scalafix.sbt.BuildInfo.scala213 on purpose
@@ -13,6 +13,7 @@ inThisBuild(
13
13
)
14
14
)
15
15
16
+ // LocalSyntacticRule
16
17
val rules = project
17
18
.disablePlugins(ScalafixPlugin )
18
19
.settings(
@@ -23,9 +24,11 @@ val rules = project
23
24
val service = project
24
25
.dependsOn(rules % ScalafixConfig )
25
26
.settings(
27
+ // SyntacticRule
26
28
libraryDependencies += " ch.epfl.scala" %% " example-scalafix-rule" % " 3.0.0" % ScalafixConfig
27
29
)
28
30
31
+ // SameProjectSyntacticRule
29
32
val sameproject = project
30
33
.settings(
31
34
libraryDependencies += " ch.epfl.scala" %% " scalafix-core" % Versions .scalafixVersion % ScalafixConfig
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ $ delete rules/src/main/scala/local/NoOp.scala
7
7
-> service / scalafix LocalSyntacticRule
8
8
9
9
# make sure scalafixDependencies is also honored by running a rule from a remote JAR
10
- > service / scalafix SyntacticRule
10
+ > service / scalafix CollectHead
11
11
12
12
# run a rule included from a remote JAR referenced via the Scalafix ivy config
13
13
> service / scalafix SyntacticRule
You can’t perform that action at this time.
0 commit comments