Skip to content

Commit 319f8e1

Browse files
add plugin Spotless
1 parent cdef898 commit 319f8e1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

app/build.gradle.kts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ plugins {
33
application
44
checkstyle
55
jacoco
6+
id("com.diffplug.spotless") version "6.12.0"
67
}
78

89
group = "hexlet.code"
@@ -31,4 +32,12 @@ tasks.test {
3132
tasks.jacocoTestReport {
3233
dependsOn(tasks.test) // tests are required to run before generating the report
3334
reports { xml.required.set(true) }
35+
}
36+
spotless {
37+
java {
38+
removeUnusedImports()
39+
googleJavaFormat("1.15.0")
40+
.aosp()
41+
.reflowLongStrings()
42+
}
3443
}

0 commit comments

Comments
 (0)