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

Commit 0cb70e7

Browse files
AustinShalitPeterJohnson
authored andcommitted
Use spotless to check the style of non-java files (#59)
1 parent b430919 commit 0cb70e7

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

build.gradle.kts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,19 @@ spotless {
3939
kotlinGradle {
4040
// Configure the formatting of the Gradle Kotlin DSL files (*.gradle.kts)
4141
ktlint("0.9.1")
42+
trimTrailingWhitespace()
43+
indentWithSpaces()
44+
endWithNewline()
45+
}
46+
freshmark {
47+
trimTrailingWhitespace()
48+
indentWithSpaces()
49+
endWithNewline()
50+
}
51+
format("extraneous") {
52+
target("src/**/*.fxml", "src/**/*.css", "*.xml", "*.yml")
53+
trimTrailingWhitespace()
54+
indentWithSpaces()
4255
endWithNewline()
4356
}
4457
}

src/main/resources/edu/wpi/first/outlineviewer/styles.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,4 @@
5959
.text-field-warning {
6060
-fx-text-box-border: yellow;
6161
-fx-focus-color: yellow;
62-
}
62+
}

0 commit comments

Comments
 (0)