Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Thunderblade73 committed Jun 9, 2024
1 parent ba23687 commit c8617f3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package at.hannibal2.skyhanni.config.core.config;
package at.hannibal2.skyhanni.config.core.config

import io.github.notenoughupdates.moulconfig.annotations.ConfigLink

class PositionList() : MutableList<Position>, ArrayList<Position>() {
class PositionList() : ArrayList<Position>(), MutableList<Position> {

Check failure on line 5 in src/main/java/at/hannibal2/skyhanni/config/core/config/PositionList.kt

View workflow job for this annotation

GitHub Actions / Check Style

[ktlint] reported by reviewdog 🐶 No parenthesis expected Raw Output: src/main/java/at/hannibal2/skyhanni/config/core/config/PositionList.kt:5:19: error: No parenthesis expected (standard:class-signature)

Check failure on line 5 in src/main/java/at/hannibal2/skyhanni/config/core/config/PositionList.kt

View workflow job for this annotation

GitHub Actions / Check Style

[ktlint] reported by reviewdog 🐶 Super type should start on a newline Raw Output: src/main/java/at/hannibal2/skyhanni/config/core/config/PositionList.kt:5:24: error: Super type should start on a newline (standard:class-signature)

Check failure on line 5 in src/main/java/at/hannibal2/skyhanni/config/core/config/PositionList.kt

View workflow job for this annotation

GitHub Actions / Check Style

[ktlint] reported by reviewdog 🐶 Super type should start on a newline Raw Output: src/main/java/at/hannibal2/skyhanni/config/core/config/PositionList.kt:5:47: error: Super type should start on a newline (standard:class-signature)

constructor(init: Collection<Position>) : this() {
this.addAll(init)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import at.hannibal2.skyhanni.events.GuiRenderEvent
import at.hannibal2.skyhanni.events.ProfileJoinEvent
import at.hannibal2.skyhanni.skyhannimodule.SkyHanniModule
import at.hannibal2.skyhanni.test.command.ErrorManager
import at.hannibal2.skyhanni.utils.LorenzUtils
import at.hannibal2.skyhanni.utils.*

Check failure on line 10 in src/main/java/at/hannibal2/skyhanni/features/gui/TabWidgetDisplay.kt

View workflow job for this annotation

GitHub Actions / Check Style

[ktlint] reported by reviewdog 🐶 Wildcard import Raw Output: src/main/java/at/hannibal2/skyhanni/features/gui/TabWidgetDisplay.kt:10:1: error: Wildcard import (standard:no-wildcard-imports)
import at.hannibal2.skyhanni.utils.RenderUtils.renderStrings
import at.hannibal2.skyhanni.utils.StringUtils.allLettersFirstUppercase
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent
Expand Down Expand Up @@ -54,7 +54,8 @@ enum class TabWidgetDisplay(private val configName: String?, vararg val widgets:
if (config?.displayPositions == null) return
config.display.forEach { widget ->
widget.position.renderStrings(
widget.widgets.flatMap { it.lines }, posLabel = "Display Widget: ${widget.name}"
widget.widgets.flatMap { it.lines },
posLabel = "Display Widget: ${widget.name}",
)
}
}
Expand All @@ -68,7 +69,7 @@ enum class TabWidgetDisplay(private val configName: String?, vararg val widgets:
ErrorManager.skyHanniError(
"Invalid State of config.displayPositions",
"Display" to TabWidgetDisplay.entries,
"Positions" to config.displayPositions
"Positions" to config.displayPositions,
)
} else {
config.displayPositions.addAll(generateSequence { Position() }.take(sizeDiff))
Expand Down

0 comments on commit c8617f3

Please sign in to comment.