spotless icon indicating copy to clipboard operation
spotless copied to clipboard

Keep your code spotless

Results 390 spotless issues
Sort by recently updated
recently updated
newest added

https://developer.android.com/studio/write/lint

I have Groovy code like this: ``` ''' function (doc, meta) { if (doc._class == "springdata.Doc") { emit(meta.id, null); } } '''.stripIndent() ``` and when I use `removeSemicolons()` with my...

This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [com.google.errorprone:error_prone_core](https://errorprone.info) ([source](https://redirect.github.com/google/error-prone)) | `2.42.0` -> `2.45.0` | ![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.errorprone:error_prone_core/2.45.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.errorprone:error_prone_core/2.42.0/2.45.0?slim=true) | --- >...

Git ratchet functionality failed in worktree directories with "Cannot find git repository in any parent directory" because JGit's RepositoryCache.FileKey.isGitRepository() doesn't properly recognize worktree git directories. Worktrees have a different structure...

### new step to expand java wildcard imports #2744 #2594 trying to contribute/polish/finalize: - https://github.com/diffplug/spotless/pull/2744 - https://github.com/diffplug/spotless/issues/2594 thanks for the hard work invested @Plunts

As requested in #2594, this MR introduces an `expandWildcardImports` step. To do this, [JavaParser](https://javaparser.org/) is used to parse the complete sourcecode and resolve the full qualified name of all used...

I noticed that unused `toggleOffOn` is disabling other checks. For example, see https://github.com/apoorva-sriv/spotless-gradle-toggleoffon-issue. `gradle spotlessCheck` [fails](https://github.com/apoorva-sriv/spotless-gradle-toggleoffon-issue/blob/main/src/main/java/org/example/Main.java#L3) correctly without [`toggleOffOn`](https://github.com/apoorva-sriv/spotless-gradle-toggleoffon-issue/blob/main/build.gradle.kts#L19) but passes when it's there, which is incorrect.

enabler for: - https://github.com/diffplug/spotless/pull/2768 related to: - https://github.com/openrewrite/rewrite/issues/6330 - https://github.com/checkstyle/checkstyle/issues/18198

There seems to be a path encoding issue with Groovy. In the root folder where the pom.xml is located, the following temporary directories are created: ``` file%3A%2Fvar%2Ffolders%2F9m%2F7lp33cd577ngz_41_806qk3m0000gn%2FT%2Fspotless-groovy9943439919469970507%2F/ ``` Instead of...

## Summary A backwards compatible extension of the `IdeHook` fuctionality that allow passing in multiple file paths in a comma separated list: ```bash ./gradlew spotlessApply -PspotlessIdeHook=path/to/file_a.md,path/to/file_b.md ``` ## What does...