Skip to content

Commit a9bd0a6

Browse files
committed
Update changelog.
1 parent 6619a76 commit a9bd0a6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

CHANGES.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@ This document is intended for Spotless developers.
1010
We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (starting after version `1.27.0`).
1111

1212
## [Unreleased]
13+
### Added
14+
* APIs to support linting. (implemented in [#2148](https://github.com/diffplug/spotless/pull/2148) and [#2149](https://github.com/diffplug/spotless/pull/2149))
15+
* Spotless is still primarily a formatter, not a linter. But when formatting fails, it's more flexible to model those failures as lints so that the formatting can continue and ideally we can also capture the line numbers causing the failure.
16+
* `Lint` models a single change. A `FormatterStep` can create a lint by:
17+
* throwing an exception during formatting, ideally `throw Lint.atLine(127, "code", "Well what happened was...")`
18+
* or by implementing the `List<Lint> lint(String content, File file)` method to create multiple of them
19+
### Changes
20+
* **BREAKING** Moved `PaddedCell.DirtyState` to its own top-level class with new methods. ([#2148](https://github.com/diffplug/spotless/pull/2148))
21+
* **BREAKING** Removed `isClean`, `applyTo`, and `applyToAndReturnResultIfDirty` from `Formatter` because users should instead use `DirtyState`.
1322

1423
## [3.0.0.BETA3] - 2024-10-15
1524
### Added

0 commit comments

Comments
 (0)