Skip to content

Commit

Permalink
fix(linter): fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Hoefer committed Dec 18, 2020
1 parent e96ae62 commit 1e2a4f6
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 9 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ dependencies {
tasks.test {
useJUnitPlatform()
testLogging {
events ("passed", "skipped", "failed") //, "standardOut", "standardError"
events("passed", "skipped", "failed") // , "standardOut", "standardError"

showExceptions = true
//exceptionFormat = "full"
// exceptionFormat = "full"
showCauses = true
showStackTraces = true
showStandardStreams = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import androidx.compose.foundation.border
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.preferredSize
import androidx.compose.material.AlertDialog
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
Expand Down Expand Up @@ -64,7 +63,8 @@ private fun ExportCharacterDialog() {
val characterScriptExporter = CharacterScriptExporter()
characterScriptExporter.export()
NotificationsService.notify("""Characters have been exported to "character.txt"""")
}) { BasicButtonText("Export") }
}
) { BasicButtonText("Export") }
},
dismissButton = {
BasicButton(onClick = { AppManager.focusedWindow?.close() }) { BasicButtonText("Cancel") }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ $index = {
${character.birth.toDateAttribute("birth")}
${character.death.toDateAttribute("death")}
}
""".trimIndent()
""".trimIndent()
}.joinToString(separator = "") { it + "\n\n" }
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ fun main() = invokeLater {
MenuItem(
"Export Character Scripts",
onClick = {
DialogManager.openDialog(DialogManager.Dialog.CHARACTER_EXPORT)
DialogManager.openDialog(DialogManager.Dialog.CHARACTER_EXPORT)
}
),
),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.github.xetra11.ck3workbench.app

import androidx.compose.desktop.AppManager
import com.github.xetra11.ck3workbench.module.character.CharacterTemplate
import io.kotest.core.spec.style.ShouldSpec
import io.kotest.matchers.collections.shouldHaveSize
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import com.github.xetra11.ck3workbench.app.StateManager
import com.github.xetra11.ck3workbench.module.character.CharacterTemplate
import io.kotest.core.spec.style.ShouldSpec
import io.kotest.matchers.shouldBe
import io.kotest.matchers.string.shouldContain
import java.io.File

class CharacterScriptExporterTest : ShouldSpec({
Expand All @@ -25,4 +24,3 @@ class CharacterScriptExporterTest : ShouldSpec({
exportFile.readText() shouldBe expectedExportFile.readText()
}
})

0 comments on commit 1e2a4f6

Please sign in to comment.