forked from scalacenter/scalafix
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Explicitly imported names should not be removed while exploding or me…
…rging imports (scalacenter#28)
- Loading branch information
Showing
5 changed files
with
35 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* | ||
rules = [OrganizeImports] | ||
OrganizeImports { | ||
groupedImports = Explode | ||
} | ||
*/ | ||
package fix | ||
|
||
import scala.collection.immutable._ | ||
import scala.collection.mutable.{Map, Seq => S, Buffer => _, _} | ||
|
||
object GroupedImportsExplodeMixed { | ||
val m: Map[Int, Int] = ??? | ||
} |
10 changes: 10 additions & 0 deletions
10
output/src/main/scala/fix/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package fix | ||
|
||
import scala.collection.immutable._ | ||
import scala.collection.mutable.Map | ||
import scala.collection.mutable.{Buffer => _, _} | ||
import scala.collection.mutable.{Seq => S} | ||
|
||
object GroupedImportsExplodeMixed { | ||
val m: Map[Int, Int] = ??? | ||
} |
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 fix | ||
|
||
import fix.MergeImports.Unimport.{b => B, c => _, _} | ||
import fix.MergeImports.Unimport.{b => B, c => _, d, _} | ||
|
||
object GroupedImportsMergeUnimports |
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,7 +1,7 @@ | ||
package fix | ||
|
||
import fix.MergeImports.Wildcard1._ | ||
import fix.MergeImports.Wildcard1.{d, _} | ||
import fix.MergeImports.Wildcard1.{b => B} | ||
import fix.MergeImports.Wildcard2._ | ||
import fix.MergeImports.Wildcard2.{a, b, _} | ||
|
||
object GroupedImportsMergeWildcard |
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