spotless Questions
1
Solved
I just added Spotless to my project with this config:
build.gradle.kts(:app)
plugins {
id("com.android.application")
id("org.jetbrains.kotlin.android")
id("com.diffplug....
Salas asked 15/12, 2023 at 14:43
1
I am trying to configure a maven spring boot application to use spotless with google java format style. I would like as well to have Intellij formatting the code as the maven plugin does.
But i am ...
Biggin asked 3/3, 2022 at 15:20
3
I use the Spotless Gradle plugin to ensure consistent formatting of the Java code in my app. The relevant entries in build.gradle are
plugins {
id "com.diffplug.gradle.spotless" version "3.27.0"
...
Bifurcate asked 15/1, 2020 at 15:29
1
I have a project that uses Spotless with the Eclipse formatter to check and format the source code.
Now one problem is that the formatter creates some absurdly long lines such as the following:
@A...
2
Solved
How can I instruct the Spotless code formatter to ignore a specific code section?
I wrote this Java code section:
String content = Joiner.on(System.lineSeparator()).join(
"services:",
...
2
Solved
I'm getting weird exception when trying to run ./gradlew spotlessApply on my project in Kotlin.
Class causing the problem:
import io.realm.RealmObject
import io.realm.annotations.PrimaryKey
open c...
1
I followed the Spotless plugin's readme and included the following into my build.gradle:
apply plugin: 'java'
spotless {
java {
eclipseFormatFile 'my-eclipse-format.xml'
}
}
When I run "gra...
1
© 2022 - 2024 — McMap. All rights reserved.