Skip to content

Commit

Permalink
Remove the removeFormat method (fixes #653).
Browse files Browse the repository at this point in the history
  • Loading branch information
nedtwigg committed Nov 6, 2021
1 parent f9d66c4 commit 02e8b1c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
3 changes: 3 additions & 0 deletions plugin-gradle/CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (

## [Unreleased]

### Removed
* **BREAKING** `removeFormat` (which has been broken since `5.0`) has been removed. Use `clearSteps()` as a workaround ([#653](https://github.com/diffplug/spotless/issues/653)).

## [5.17.1] - 2021-10-26
### Changed
* Added support and bump Eclipse formatter default versions to `4.21` for `eclipse-groovy`. Change is only applied for JVM 11+.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,15 +182,6 @@ public void format(String name, Action<FormatExtension> closure) {
format(name, FormatExtension.class, closure);
}

/** Makes it possible to remove a format which was created earlier. */
public void removeFormat(String name) {
requireNonNull(name);
FormatExtension toRemove = formats.remove(name);
if (toRemove == null) {
project.getLogger().warn("Called removeFormat('" + name + "') but there was no such format.");
}
}

boolean enforceCheck = true;

/** Returns {@code true} if Gradle's {@code check} task should run {@code spotlessCheck}; {@code false} otherwise. */
Expand Down

0 comments on commit 02e8b1c

Please sign in to comment.