diff options
author | David Cole <40234707+DavidArthurCole@users.noreply.github.com> | 2024-10-13 09:54:05 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-13 15:54:05 +0200 |
commit | e0ae2e8ad4602b3e96fb6ec39716709f225d2461 (patch) | |
tree | b70ad5cec46af89dd0f05a61d39027a964c03693 /src/main/java/at/hannibal2/skyhanni/config | |
parent | 113389a86c769d4d3a547fac5b7440fa8f29bc6f (diff) | |
download | skyhanni-e0ae2e8ad4602b3e96fb6ec39716709f225d2461.tar.gz skyhanni-e0ae2e8ad4602b3e96fb6ec39716709f225d2461.tar.bz2 skyhanni-e0ae2e8ad4602b3e96fb6ec39716709f225d2461.zip |
Backend: Detekt Fixes Part 7 (#2667)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/config')
3 files changed, 17 insertions, 8 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/ConfigManager.kt b/src/main/java/at/hannibal2/skyhanni/config/ConfigManager.kt index b00fc7a8f..24a3748c6 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/ConfigManager.kt +++ b/src/main/java/at/hannibal2/skyhanni/config/ConfigManager.kt @@ -151,7 +151,10 @@ class ConfigManager { } if (missingConfigLink) { println("") - println("This crash is here to remind you to fix the missing @ConfigLink annotation over your new config position config element.") + println( + "This crash is here to remind you to fix the missing " + + "@ConfigLink annotation over your new config position config element." + ) println("") println("Steps to fix:") println("1. Search for `WEE WOO WEE WOO` in the console output.") diff --git a/src/main/java/at/hannibal2/skyhanni/config/ConfigUpdaterMigrator.kt b/src/main/java/at/hannibal2/skyhanni/config/ConfigUpdaterMigrator.kt index c9ae8c2c7..f6d6c72de 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/ConfigUpdaterMigrator.kt +++ b/src/main/java/at/hannibal2/skyhanni/config/ConfigUpdaterMigrator.kt @@ -81,7 +81,10 @@ object ConfigUpdaterMigrator { } val newParentElement = new.at(np.dropLast(1), true) if (newParentElement !is JsonObject) { - logger.log("Catastrophic: element at path $old could not be relocated to $new, since another element already inhabits that path") + logger.log( + "Catastrophic: element at path $old could not be relocated to $new, " + + "since another element already inhabits that path" + ) return } movesPerformed++ diff --git a/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt b/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt index 208beafe4..89f314135 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt +++ b/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt @@ -174,8 +174,8 @@ object Commands { callback { GhostUtil.importCTGhostCounterData() } } event.register("shcroptime") { - description = "Calculates with your current crop per second speed " + - "how long you need to farm a crop to collect this amount of items" + description = + "Calculates with your current crop per second speed " + "how long you need to farm a crop to collect this amount of items" category = CommandCategory.USERS_ACTIVE callback { GardenCropTimeCommand.onCommand(it) } } @@ -205,8 +205,9 @@ object Commands { callback { FarmingWeightDisplay.lookUpCommand(it) } } event.register("shcopytranslation") { - description = "Copy the translation of a message in another language to your clipboard.\n" + - "Uses a language code that can be found at the end of a translation message." + description = + "Copy the translation of a message in another language to your clipboard.\n" + + "Uses a 2 letter language code that can be found at the end of a translation message." category = CommandCategory.USERS_ACTIVE callback { Translator.fromNativeLanguage(it) } } @@ -585,7 +586,8 @@ object Commands { callback { ItemPriceUtils.debugItemPrice(it) } } event.register("shdebugscoreboard") { - description = "Monitors the scoreboard changes: " + + description = + "Monitors the scoreboard changes: " + "Prints the raw scoreboard lines in the console after each update, with time since last update." category = CommandCategory.DEVELOPER_DEBUG callback { ScoreboardData.toggleMonitor() } @@ -740,7 +742,8 @@ object Commands { callback { TitleManager.command(it) } } event.register("shresetconfig") { - description = "Reloads the config manager and rendering processors of MoulConfig. " + + description = + "Reloads the config manager and rendering processors of MoulConfig. " + "This §cWILL RESET §7your config, but also updating the java config files " + "(names, description, orderings and stuff)." category = CommandCategory.DEVELOPER_TEST |