-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OrganizeImports: support Scala3 syntax as output
- Loading branch information
Showing
60 changed files
with
209 additions
and
27 deletions.
There are no files selected for viewing
This file contains 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 characters
This file contains 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 characters
This file contains 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 characters
This file contains 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 characters
This file contains 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 characters
1 change: 1 addition & 0 deletions
1
scalafix-tests/input/src/main/scala-3/test/organizeImports/DeduplicateGivenImportees.scala
This file contains 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 characters
3 changes: 3 additions & 0 deletions
3
scalafix-tests/input/src/main/scala-3/test/organizeImports/ExpandGiven.scala
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
/* | ||
rules = [OrganizeImports] | ||
OrganizeImports.removeUnused = false | ||
OrganizeImports.targetDialect = Scala3 | ||
*/ | ||
package test.organizeImports | ||
|
||
import test.organizeImports.GivenImports.Beta | ||
import test.organizeImports.GivenImports.Alpha | ||
import test.organizeImports.GivenImports.{given Beta, given Alpha} | ||
import test.organizeImports.GivenImports2.{given Beta} | ||
import test.organizeImports.GivenImports2.{given} | ||
import scala.util.Either | ||
|
||
object ExpandGiven |
1 change: 1 addition & 0 deletions
1
scalafix-tests/input/src/main/scala-3/test/organizeImports/ExpandUnimportGiven.scala
This file contains 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 characters
This file contains 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 characters
This file contains 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 characters
This file contains 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 characters
This file contains 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 characters
2 changes: 2 additions & 0 deletions
2
scalafix-tests/input/src/main/scala/test/organizeImports/CurlyBracedSingleImportee.scala
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
/* | ||
rules = [OrganizeImports] | ||
OrganizeImports.removeUnused = false | ||
OrganizeImports.targetDialect = Auto | ||
*/ | ||
package test.organizeImports | ||
|
||
import scala.collection.{Map} | ||
import scala.collection.{Seq => _} | ||
import scala.collection.{Set => ImmutableSet} | ||
|
||
object CurlyBracedSingleImportee |
This file contains 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 characters
This file contains 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 characters
This file contains 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 characters
1 change: 1 addition & 0 deletions
1
scalafix-tests/input/src/main/scala/test/organizeImports/GroupedImportsExplodeMixed.scala
This file contains 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 characters
1 change: 1 addition & 0 deletions
1
scalafix-tests/input/src/main/scala/test/organizeImports/GroupedImportsExplodeUnimport.scala
This file contains 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 characters
This file contains 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 characters
This file contains 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 characters
This file contains 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 characters
This file contains 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 characters
This file contains 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 characters
This file contains 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 characters
This file contains 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 characters
File renamed without changes.
1 change: 1 addition & 0 deletions
1
...zeImports/CurlyBracedSingleImportee.scala → ...zeImports/CurlyBracedSingleImportee.scala
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
package test.organizeImports | ||
|
||
import scala.collection.Map | ||
import scala.collection.{Seq => _} | ||
import scala.collection.{Set => ImmutableSet} | ||
|
||
object CurlyBracedSingleImportee |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
...izeImports/ImportsOrderSymbolsFirst.scala → ...izeImports/ImportsOrderSymbolsFirst.scala
This file contains 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 characters
File renamed without changes.
8 changes: 8 additions & 0 deletions
8
scalafix-tests/output/src/main/scala-3/test/organizeImports/CoalesceImportees.scala
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package test.organizeImports | ||
|
||
import scala.collection.immutable.{Map, Seq, Vector} | ||
import scala.collection.mutable.* | ||
import scala.concurrent.{Channel as Ch, *} | ||
import scala.util.{Random as _, *} | ||
|
||
object CoalesceImportees |
4 changes: 2 additions & 2 deletions
4
...-tests/output/src/main/scala-3/test/organizeImports/CoalesceImporteesGivensAndNames.scala
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
package test.organizeImports | ||
|
||
import test.organizeImports.Givens._ | ||
import test.organizeImports.Givens.{B => B1, C => _, _, given} | ||
import test.organizeImports.Givens.* | ||
import test.organizeImports.Givens.{B as B1, C as _, *, given} | ||
|
||
object CoalesceImporteesGivensAndNames |
2 changes: 1 addition & 1 deletion
2
scalafix-tests/output/src/main/scala-3/test/organizeImports/CoalesceImporteesNoGivens.scala
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
package test.organizeImports | ||
|
||
import test.organizeImports.Givens.{C => C1, _} | ||
import test.organizeImports.Givens.{C as C1, *} | ||
|
||
object CoalesceImporteesNoGivens |
2 changes: 1 addition & 1 deletion
2
...tests/output/src/main/scala-3/test/organizeImports/CoalesceImporteesNoGivensNoNames.scala
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
package test.organizeImports | ||
|
||
import test.organizeImports.Givens.{A => A1, B => _, _} | ||
import test.organizeImports.Givens.{A as A1, B as _, *} | ||
|
||
object CoalesceImporteesNoGivensNoNames |
4 changes: 2 additions & 2 deletions
4
scalafix-tests/output/src/main/scala-3/test/organizeImports/CoalesceImporteesNoNames.scala
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
package test.organizeImports | ||
|
||
import test.organizeImports.Givens._ | ||
import test.organizeImports.Givens.{A => A1, given} | ||
import test.organizeImports.Givens.* | ||
import test.organizeImports.Givens.{A as A1, given} | ||
|
||
object CoalesceImporteesNoNames |
7 changes: 7 additions & 0 deletions
7
scalafix-tests/output/src/main/scala-3/test/organizeImports/CurlyBracedSingleImportee.scala
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package test.organizeImports | ||
|
||
import scala.collection.Map | ||
import scala.collection.Seq as _ | ||
import scala.collection.Set as ImmutableSet | ||
|
||
object CurlyBracedSingleImportee |
2 changes: 1 addition & 1 deletion
2
scalafix-tests/output/src/main/scala-3/test/organizeImports/DeduplicateGivenImportees.scala
This file contains 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 characters
This file contains 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 characters
Oops, something went wrong.