mirror of https://github.com/sbt/sbt.git
Add scalafmt newlines.topLevelStatementBlankLines setting (#8949)
This commit is contained in:
parent
cf80230738
commit
6dcb601f73
|
|
@ -37,3 +37,11 @@ fileOverride {
|
|||
runner.dialectOverride.allowAsForImportRename = false
|
||||
}
|
||||
}
|
||||
|
||||
newlines.topLevelStatementBlankLines = [
|
||||
{
|
||||
blanks { after = 1 }
|
||||
maxNest = 0
|
||||
regex = "Import"
|
||||
}
|
||||
]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
package sbt.internal.librarymanagement
|
||||
|
||||
sealed abstract class SemSelOperator {
|
||||
override def toString: String = this match {
|
||||
case SemSelOperator.Lte => "<="
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
package lmcoursier.definitions
|
||||
|
||||
import dataclass.data
|
||||
|
||||
@data class Module(
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
*/
|
||||
|
||||
package sbt
|
||||
|
||||
import sbt.internal.util.RMap
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@
|
|||
package sbt
|
||||
|
||||
package internal
|
||||
|
||||
import java.io.{ File, IOException }
|
||||
import java.net.Socket
|
||||
import java.util.concurrent.atomic.*
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
*/
|
||||
|
||||
package sbt.internal.protocol.codec
|
||||
|
||||
trait JsonRPCProtocol
|
||||
extends sbt.internal.util.codec.JValueFormats
|
||||
with sjsonnew.BasicJsonProtocol
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
*/
|
||||
|
||||
package sbt.internal.util
|
||||
|
||||
import scala.collection.parallel.CollectionConverters.*
|
||||
import scala.collection.parallel.ParSeq
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue