spotless
spotless copied to clipboard
Keep your code spotless
Something that @goughy000 mentioned recently is that having the ability for Spotless to format our Gherkin files for Cucumber testing would be super useful. Between the two of us we're...
If you are submitting a **bug**, please include the following: - [x] summary of problem - [x] gradle version: 7.1.1 - [x] spotless version: 5.14.2 - [x] operating system and...
- [x] Maven Groovy `importOrder` prevents `greclipse` from checking and applying - [x] maven version: 3.8.1 - [x] spotless version: 2.12.2 - [x] operating system and version: macOS Catalina v10.15.7...
The default formatting configuration of `greclipse` isn't very standard or desirable. However, spotless configures [`greclipse.properties`](https://github.com/diffplug/spotless/blob/main/testlib/src/main/resources/groovy/greclipse/format/greclipse.properties) in a much more standard way. For example, compare the default formatting of `googleJavaFormat` to...
Back in November, the Google Java Formatter was updated to support turning off formatting of javadocs. This is particularly useful functionality with newer javadoc trends as well as older codebases...
A developer on my team gets multiple "Could not write workspace metadata" errors (complete error message below) when terminating a long-running mvn process. This happens for him in two different...
I pass import layout via userData: ``` ktlint('0.41.0').userData([ ij_kotlin_imports_layout: "java.**,javax.**,kotlin.**,kotlinx.**,android.**,androidx.**,com.company.**,*,^" ]) ``` This layout is taken from `.editorconfig` generated by Android Studio based on our code style preferences so should...
This should be pretty easy, you can follow the example of [`BlackStep`](https://github.com/diffplug/spotless/blob/main/lib/src/main/java/com/diffplug/spotless/python/BlackStep.java) and [`ClangFormatStep`](https://github.com/diffplug/spotless/blob/608e128381c89260f8a38fba985415c1f962ec7b/lib/src/main/java/com/diffplug/spotless/cpp/ClangFormatStep.java). See #672 for more details on how they work.
Currently in Spotless, you can sort imports with `importOrder()` (implementation based on `ImportSorterImpl` from https://github.com/krasa/EclipseCodeFormatter), you can remove unused imports (with Google Java Format) with `removeUnusedImports()`, and you can format...
So I have this simple groovy formatter just to ensure that all files Groovy and Groovy related files end with newlines and are indented using 4 spaces. However, when I...