Skip to content
This repository has been archived by the owner on Jul 14, 2023. It is now read-only.

blank lines is ignored #147

Closed
kornev opened this issue Jan 11, 2021 · 3 comments
Closed

blank lines is ignored #147

kornev opened this issue Jan 11, 2021 · 3 comments

Comments

@kornev
Copy link

kornev commented Jan 11, 2021

sbt log:

[error] +++ <expected fix>
[error] @@ -8,6 +8,7 @@
[error]  import scala.util.{ Failure, Try }
[error]  
[error]  import org.apache.hadoop.fs.{ FileSystem, Path }
[error] +
[error]  import org.apache.spark.sql.functions.{ size => sqlSize, udf => sqlUdf }
[error]  import org.apache.spark.sql.{ Dataset, SaveMode }
[error]  import org.apache.spark.util.LongAccumulator
[error] (Compile / scalafix) scalafix.sbt.ScalafixFailed: TestError

My config:

OrganizeImports {
  blankLines = Manual
  groups = [
    "java."
    "javax."
    "com.sun."
    "---"
    "scala."
    "cats."
    "---"
    "org.apache.hadoop."
    "org.apache.spark."
    "---"
    "*"
  ]
  groupedImports = Merge
  importSelectorsOrder = SymbolsFirst
  importsOrder = Ascii
  removeUnused = false
}
@liancheng
Copy link
Owner

Oh, @kornev, sorry for the confusion. I just merged PR #142, which implemented the blank lines feature but haven't made a release yet. The README file was updated as part of PR #142, which made it confusing. Will revert the README change for now and make a new release later.

@liancheng
Copy link
Owner

@kornev, you may give this snapshot version a try: 0.4.4+17-784b1415-SNAPSHOT

@liancheng
Copy link
Owner

Made v0.5.0-alpha.1, which supports IntelliJ compatible blank line configuration. I made it an alpha pre-release because it contains backward incompatible behavior changes, and would like to gather more feedback before making it formal.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants