We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scalafix 0.4 doesn't remove unused imports which are aliased:
import scala.collection.mutable.{Set ⇒ MutableSet, Map ⇒ MutableMap}
The following patch will cause the unused import rewrite test to fail:
diff --git i/scalafix-tests/input/src/main/scala/test/RemoveUnusedImports.scala w/scalafix-tests/input/src/main/scala/test/RemoveUnusedImports.scala index 9b64c9c..e410565 100644 --- i/scalafix-tests/input/src/main/scala/test/RemoveUnusedImports.scala +++ w/scalafix-tests/input/src/main/scala/test/RemoveUnusedImports.scala @@ -11,6 +11,8 @@ import scala.util.{Success => Successful, Random} import scala.sys.process._ import scala.concurrent.{CancellationException, ExecutionException, ExecutionContext} import scala.runtime.{RichBoolean} +import scala.collection.mutable.{Set ⇒ MutableSet, Map ⇒ MutableMap} +import scala.collection.mutable.{Seq => MutableSeq} import scala.concurrent.{ // formatting caveat CancellationException, ExecutionException,
Observed in sangria-graphql/sangria#250, specifically this line which had to be fixed manually.
The text was updated successfully, but these errors were encountered:
Thank you for reporting! I opened #190 which I believe fixes this bug.
Sorry, something went wrong.
a256002
Merge pull request #190 from olafurpg/189
8641796
Handle Importee.Rename in RemoveUnusedImports, fixes #189
Bump olafurpg/setup-scala from 11 to 12 (scalacenter#189)
992ff4c
Bumps [olafurpg/setup-scala](https://github.com/olafurpg/setup-scala) from 11 to 12. - [Release notes](https://github.com/olafurpg/setup-scala/releases) - [Commits](olafurpg/setup-scala@v11...v12) --- updated-dependencies: - dependency-name: olafurpg/setup-scala dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
No branches or pull requests
Scalafix 0.4 doesn't remove unused imports which are aliased:
The following patch will cause the unused import rewrite test to fail:
Observed in sangria-graphql/sangria#250, specifically this line which had to be fixed manually.
The text was updated successfully, but these errors were encountered: