Skip to content
This repository was archived by the owner on Dec 10, 2025. It is now read-only.

Commit 8d3ea2d

Browse files
committed
style: apply consistent formatting across multiple files
1 parent 76fb7e4 commit 8d3ea2d

File tree

285 files changed

+90185
-1450
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

285 files changed

+90185
-1450
lines changed

qodana.sarif.json

Lines changed: 89090 additions & 0 deletions
Large diffs are not rendered by default.

qodana.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,12 @@ exclude:
4040
- Writerside
4141

4242
include:
43-
- name: IncorrectFormatting
43+
- name: IncorrectFormatting
44+
- name: ReplaceSubstringWithTake
45+
- name: ConstantConditionIf
46+
- name: PrivatePropertyName
47+
- name: RedundantSuspendModifier
48+
- name: RedundantNullableReturnType
49+
- name: KotlinUnusedImport
50+
- name: UnusedSymbol
51+

surf-cloud-api/surf-cloud-api-client/surf-cloud-api-client-paper/src/main/kotlin/dev/slne/surf/cloud/api/client/paper/command/args/CloudServerArgument.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,5 @@ inline fun CommandAPICommand.cloudServerArgument(
7070
nodeName: String,
7171
optional: Boolean = false,
7272
block: Argument<*>.() -> Unit = {}
73-
): CommandAPICommand = withArguments(CloudServerArgument(nodeName).setOptional(optional).apply(block))
73+
): CommandAPICommand =
74+
withArguments(CloudServerArgument(nodeName).setOptional(optional).apply(block))

surf-cloud-api/surf-cloud-api-client/surf-cloud-api-client-paper/src/main/kotlin/dev/slne/surf/cloud/api/client/paper/command/args/CloudServerGroupArgument.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,5 @@ inline fun CommandAPICommand.cloudServerGroupArgument(
7070
nodeName: String,
7171
optional: Boolean = false,
7272
block: Argument<*>.() -> Unit = {}
73-
): CommandAPICommand = withArguments(CloudServerGroupArgument(nodeName).setOptional(optional).apply(block))
73+
): CommandAPICommand =
74+
withArguments(CloudServerGroupArgument(nodeName).setOptional(optional).apply(block))

surf-cloud-api/surf-cloud-api-client/surf-cloud-api-client-paper/src/main/kotlin/dev/slne/surf/cloud/api/client/paper/command/args/OnlineCloudPlayerArgument.kt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ package dev.slne.surf.cloud.api.client.paper.command.args
22

33
import dev.jorel.commandapi.CommandAPICommand
44
import dev.jorel.commandapi.CommandTree
5-
import dev.jorel.commandapi.arguments.*
5+
import dev.jorel.commandapi.arguments.Argument
6+
import dev.jorel.commandapi.arguments.ArgumentSuggestions
7+
import dev.jorel.commandapi.arguments.CustomArgument
8+
import dev.jorel.commandapi.arguments.StringArgument
69
import dev.slne.surf.cloud.api.common.player.CloudPlayer
710
import dev.slne.surf.cloud.api.common.player.CloudPlayerManager
811
import dev.slne.surf.surfapi.core.api.util.logger
@@ -59,4 +62,5 @@ inline fun CommandAPICommand.onlineCloudPlayerArgument(
5962
nodeName: String,
6063
optional: Boolean = false,
6164
block: Argument<*>.() -> Unit = {}
62-
): CommandAPICommand = withArguments(OnlineCloudPlayerArgument(nodeName).setOptional(optional).apply(block))
65+
): CommandAPICommand =
66+
withArguments(OnlineCloudPlayerArgument(nodeName).setOptional(optional).apply(block))

surf-cloud-api/surf-cloud-api-client/surf-cloud-api-client-paper/src/main/kotlin/dev/slne/surf/cloud/api/client/paper/player/CloudPlayerBukkitExtensions.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import dev.slne.surf.surfapi.bukkit.api.extensions.server
1010
import io.papermc.paper.entity.TeleportFlag
1111
import org.bukkit.Location
1212
import org.bukkit.OfflinePlayer
13+
import org.bukkit.entity.Player
1314
import org.bukkit.event.player.PlayerTeleportEvent
1415

1516
/**
@@ -57,7 +58,7 @@ fun CloudPlayer.toBukkitPlayer() = server.getPlayer(uuid)
5758
/**
5859
* Converts an instance of [OfflineCloudPlayer] to the corresponding Bukkit offline player.
5960
*
60-
* This function utilizes the player's unique identifier (UUID) to fetch the associated
61+
* This function uses the player's unique identifier (UUID) to fetch the associated
6162
* [org.bukkit.OfflinePlayer] from the server.
6263
*
6364
* @receiver The [OfflineCloudPlayer] instance to convert.

surf-cloud-api/surf-cloud-api-client/surf-cloud-api-client-velocity/src/main/kotlin/dev/slne/surf/cloud/api/client/velocity/command/args/CloudServerArgument.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,5 @@ inline fun CommandAPICommand.cloudServerArgument(
5959
nodeName: String,
6060
optional: Boolean = false,
6161
block: Argument<*>.() -> Unit = {}
62-
): CommandAPICommand = withArguments(CloudServerArgument(nodeName).setOptional(optional).apply(block))
62+
): CommandAPICommand =
63+
withArguments(CloudServerArgument(nodeName).setOptional(optional).apply(block))

surf-cloud-api/surf-cloud-api-client/surf-cloud-api-client-velocity/src/main/kotlin/dev/slne/surf/cloud/api/client/velocity/command/args/CloudServerGroupArgument.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,5 @@ inline fun CommandAPICommand.cloudServerGroupArgument(
6161
nodeName: String,
6262
optional: Boolean = false,
6363
block: Argument<*>.() -> Unit = {}
64-
): CommandAPICommand = withArguments(CloudServerGroupArgument(nodeName).setOptional(optional).apply(block))
64+
): CommandAPICommand =
65+
withArguments(CloudServerGroupArgument(nodeName).setOptional(optional).apply(block))

surf-cloud-api/surf-cloud-api-client/surf-cloud-api-client-velocity/src/main/kotlin/dev/slne/surf/cloud/api/client/velocity/server/VelocityCloudServerExtensions.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ import kotlin.jvm.optionals.getOrNull
99
fun CloudServer.toRegisteredServer(proxy: ProxyServer) =
1010
proxy.getServer(name).getOrNull() ?: error("Server $name is not registered in Velocity proxy")
1111

12-
fun RegisteredServer.toCloudServer() = CloudServerManager.retrieveServerByName(serverInfo.name) as? CloudServer
12+
fun RegisteredServer.toCloudServer() =
13+
CloudServerManager.retrieveServerByName(serverInfo.name) as? CloudServer

surf-cloud-api/surf-cloud-api-common/src/main/kotlin/dev/slne/surf/cloud/api/common/config/properties/CloudProperties.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
package dev.slne.surf.cloud.api.common.config.properties
22

3+
import dev.slne.surf.cloud.api.common.config.properties.CloudProperties.SERVER_CATEGORY_NOT_SET
4+
5+
36
/**
47
* Contains predefined cloud properties for Surf Cloud applications.
58
*/

0 commit comments

Comments
 (0)