Last active
March 1, 2021 11:09
-
-
Save fthomas/ea14d58e1b445d8038a5bc22acf751e8 to your computer and use it in GitHub Desktop.
Revisions
-
fthomas revised this gist
Mar 1, 2021 . No changes.There are no files selected for viewing
-
fthomas revised this gist
Feb 26, 2021 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -6,6 +6,9 @@ import scala.meta._ class v1_2_0 extends SemanticRule("v1_2_0") { override def fix(implicit doc: SemanticDocument): Patch = { doc.tree.collect { case t @ Term.Select(Term.Select(Term.Select(Term.Name("_root_"), Term.Name("io")), Term.Name("chrisdavenport")), Term.Name("log4cats")) => Patch.replaceTree(t, "_root_.org.typelevel.log4cats") case t @ Term.Select(Term.Select(Term.Name("io"), Term.Name("chrisdavenport")), Term.Name("log4cats")) => Patch.replaceTree(t, "org.typelevel.log4cats") }.asPatch -
fthomas revised this gist
Feb 26, 2021 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -6,8 +6,8 @@ import scala.meta._ class v1_2_0 extends SemanticRule("v1_2_0") { override def fix(implicit doc: SemanticDocument): Patch = { doc.tree.collect { case t @ Term.Select(Term.Select(Term.Name("io"), Term.Name("chrisdavenport")), Term.Name("log4cats")) => Patch.replaceTree(t, "org.typelevel.log4cats") }.asPatch } } -
fthomas revised this gist
Feb 26, 2021 . 1 changed file with 4 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,8 +5,9 @@ import scala.meta._ class v1_2_0 extends SemanticRule("v1_2_0") { override def fix(implicit doc: SemanticDocument): Patch = { doc.tree.collect { case t @ Term.Select(Term.Name("io"), Term.Name("chrisdavenport")) => Patch.replaceTree(t, "org.typelevel") }.asPatch } } -
fthomas created this gist
Feb 26, 2021 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ package fix import scalafix.v1._ import scala.meta._ class v1_2_0 extends SemanticRule("v1_2_0") { override def fix(implicit doc: SemanticDocument): Patch = { Patch.replaceSymbols( "io/chrisdavenport/log4cats." -> "org/typelevel/log4cats.", ) } }