Skip to content

Commit 4ddaf2e

Browse files
committed
build: scalafmt3
1 parent 8b116d9 commit 4ddaf2e

File tree

6 files changed

+18
-17
lines changed

6 files changed

+18
-17
lines changed

.scalafix.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
rules = [
22
//Semantic Rules
3-
ExplicitResultTypes,
3+
//ExplicitResultTypes, // Deactivated as scalafix on Scala 3 fails otherwise
44
RemoveUnused,
55
NoAutoTupling,
66
//Syntactic Rules
77
DisableSyntax,
88
ProcedureSyntax,
99
LeakingImplicitClassVal,
1010
NoValInForComprehension
11-
]
11+
]

.scalafmt.conf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
version = 2.7.5
1+
version = 3.0.0-RC3
22
style = defaultWithAlign
3-
danglingParentheses = true
4-
indentOperator = spray
3+
danglingParentheses.preset = true
4+
indentOperator.preset = spray
55
includeCurlyBraceInSelectChains = true
66
maxColumn = 120
77
rewrite.rules = [RedundantParens, SortImports, PreferCurlyFors]
88
spaces.inImportCurlyBraces = true
99
binPack.literalArgumentLists = false
1010
unindentTopLevelOperators = true
1111
optIn.breaksInsideChains = true
12-
newlines.alwaysBeforeTopLevelStatements = true
12+
newlines.alwaysBeforeTopLevelStatements = true

docker-controller-scala-flyway/src/main/scala/com/github/j5ik2o/dockerController/flyway/FlywaySpecSupport.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ trait FlywaySpecSupport {
5858
flywayDbUserName,
5959
flywayDbPassword
6060
)
61+
6162
// s"jdbc:mysql://$flywayDbHost:$flywayDbHostPort/$flywayDbName?useSSL=false&user=$flywayDbUserName&password=$flywayDbPassword",
6263

6364
protected def createFlywayContext(flywayConfig: FlywayConfig): FlywayContext = createFlywayContext(

docker-controller-scala-kafka/src/main/scala/com/github/j5ik2o/dockerController/kafka/KafkaController.scala

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,15 @@ class KafkaController(
7070
private val zooKeeperContainerPort = zooKeeperController.containerPort
7171

7272
private val environmentVariables = Map(
73-
"KAFKA_AUTO_CREATE_TOPICS_ENABLE" -> (if (createTopics.isEmpty) "false" else "true"),
74-
"KAFKA_CREATE_TOPICS" -> createTopics.mkString(","),
75-
"KAFKA_BROKER_ID" -> "1",
76-
"KAFKA_ADVERTISED_LISTENERS" -> s"LISTENER_DOCKER_INTERNAL://$kafkaContainerName:19092,LISTENER_DOCKER_EXTERNAL://$kafkaExternalHostName:$kafkaExternalHostPort",
77-
"KAFKA_LISTENERS" -> s"LISTENER_DOCKER_INTERNAL://:19092,LISTENER_DOCKER_EXTERNAL://:$kafkaExternalHostPort",
78-
"KAFKA_LISTENER_SECURITY_PROTOCOL_MAP" -> "LISTENER_DOCKER_INTERNAL:PLAINTEXT,LISTENER_DOCKER_EXTERNAL:PLAINTEXT",
79-
"KAFKA_INTER_BROKER_LISTENER_NAME" -> "LISTENER_DOCKER_INTERNAL",
80-
"KAFKA_ZOOKEEPER_CONNECT" -> s"$zooKeeperContainerName:$zooKeeperContainerPort",
81-
"KAFKA_LOG4J_LOGGERS" -> "kafka.controller=INFO,kafka.producer.async.DefaultEventHandler=INFO,state.change.logger=INFO",
73+
"KAFKA_AUTO_CREATE_TOPICS_ENABLE" -> (if (createTopics.isEmpty) "false" else "true"),
74+
"KAFKA_CREATE_TOPICS" -> createTopics.mkString(","),
75+
"KAFKA_BROKER_ID" -> "1",
76+
"KAFKA_ADVERTISED_LISTENERS" -> s"LISTENER_DOCKER_INTERNAL://$kafkaContainerName:19092,LISTENER_DOCKER_EXTERNAL://$kafkaExternalHostName:$kafkaExternalHostPort",
77+
"KAFKA_LISTENERS" -> s"LISTENER_DOCKER_INTERNAL://:19092,LISTENER_DOCKER_EXTERNAL://:$kafkaExternalHostPort",
78+
"KAFKA_LISTENER_SECURITY_PROTOCOL_MAP" -> "LISTENER_DOCKER_INTERNAL:PLAINTEXT,LISTENER_DOCKER_EXTERNAL:PLAINTEXT",
79+
"KAFKA_INTER_BROKER_LISTENER_NAME" -> "LISTENER_DOCKER_INTERNAL",
80+
"KAFKA_ZOOKEEPER_CONNECT" -> s"$zooKeeperContainerName:$zooKeeperContainerPort",
81+
"KAFKA_LOG4J_LOGGERS" -> "kafka.controller=INFO,kafka.producer.async.DefaultEventHandler=INFO,state.change.logger=INFO",
8282
"KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR" -> "1"
8383
) ++ envVars
8484

docker-controller-scala-mysql/src/test/scala/com/github/j5ik2o/dockerController/MySQLControllerSpec.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class MySQLControllerSpec extends AnyFreeSpec with DockerControllerSpecSupport w
2525
override protected def flywayJDBCUrl: String =
2626
s"jdbc:mysql://$flywayDbHost:$flywayDbHostPort/$flywayDbName?useSSL=false&user=$flywayDbUserName&password=$flywayDbPassword"
2727

28-
val controller: MySQLController = MySQLController(dockerClient)(hostPort, rootPassword, databaseName = Some("test"))
28+
val controller: MySQLController = MySQLController(dockerClient)(hostPort, rootPassword, databaseName = Some("test"))
2929
override protected val dockerControllers: Vector[DockerController] = Vector(controller)
3030

3131
override protected val waitPredicatesSettings: Map[DockerController, WaitPredicateSetting] =

docker-controller-scala-zookeeper/src/main/scala/com/github/j5ik2o/dockerController/zooKeeper/ZooKeeperController.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class ZooKeeperController(
6161
val portBinding = new Ports()
6262
portBinding.bind(zooPort, Ports.Binding.bindPort(hostPort))
6363
val defaultHostConfig = newHostConfig.withPortBindings(portBinding)
64-
val hostConfig = networkAlias.fold(defaultHostConfig) { n => defaultHostConfig.withNetworkMode(n.network.id) }
64+
val hostConfig = networkAlias.fold(defaultHostConfig) { n => defaultHostConfig.withNetworkMode(n.network.id) }
6565
val result = super
6666
.newCreateContainerCmd()
6767
.withEnv(environmentVariables(myId).map { case (k, v) => s"$k=$v" }.toArray: _*)

0 commit comments

Comments
 (0)