# ktlint 1.3.0 - Product: ktlint (https://whatsnew.fyi/product/ktlint) - Vendor: Pinterest - Date: 2024-06-04 - Version: 1.3.0 - Original notes: https://github.com/ktlint/ktlint/releases/tag/1.3.0 - Permalink: https://whatsnew.fyi/product/ktlint/releases/1.3.0 What's New is an index, not a publisher: every entry below links to the vendor's own release notes, which are the authoritative source. Entries are labelled where they are hand-curated sample data, pre-releases, or drawn from a secondary source such as a developer blog. Reuse: release facts (products, versions, dates, links, CVE ids and flags) are open data under CC BY 4.0, from the API at https://whatsnew.fyi/api/v1 or the nightly dataset at https://github.com/whatsnew-fyi/dataset. The summaries, labels and curation are © What's New: quote freely with attribution and a link back; wholesale republication of them is not permitted — terms: https://whatsnew.fyi/terms. The vendors' own release notes remain their publishers'. --- - **added** — Support partial formatting - **added** — Suppress property-name rule for ObjectPropertyName or PrivatePropertyName - **added** — Let API Consumer decide whether a LintError has to be autocorrected or not - **changed** — Promote experimental rules to non-experimental: backing-property-naming, binary-expression-wrapping, chain-method-continuation, class-signature, condition-wrapping, function-expression-body, function-literal, function-type-modifier-spacing, multiline-loop - **fixed** — Do not wrap operation reference after multiline string template - **fixed** — Ignore max line length in case the line contains only a string template followed by a comma - **fixed** — Ignore nested reference expressions in chain-method-continuation - **fixed** — Prevent exception in binary-expression-wrapping rule - **fixed** — Do not merge opening quotes of multiline string template with single line function signature - **fixed** — Fix replacement of redundant curly braces - **fixed** — Set and reset Locale to pass test for non-english contributor - **fixed** — Fix unwanted whitespace between super class constructor and its argument list - **fixed** — Handle trailing space on preceding line in call to lineLengthWithoutNewlinePrefix - **fixed** — Fix not checking for spacing around binary operators inside unary expression - **fixed** — Fixed [{ }] notation for issue #2675 - **fixed** — Simplify default properties loading ###### 🆕 Features * Support partial formatting - [#2631](https://github.com/pinterest/ktlint/pull/2631), by @paul-dingemans * Suppress `property-name` rule for `ObjectPropertyName` or `PrivatePropertyName` - [#2643](https://github.com/pinterest/ktlint/pull/2643), by @paul-dingemans * Let API Consumer decide whether a LintError has to be autocorrected, or not - [#2671](https://github.com/pinterest/ktlint/pull/2671), by @paul-dingemans * Promote experimental rules to non-experimental - [#2674](https://github.com/pinterest/ktlint/pull/2674), by @paul-dingemans - [backing-property-naming](https://pinterest.github.io/ktlint/latest/rules/standard/#backing-property-naming) - [binary-expression-wrapping](https://pinterest.github.io/ktlint/latest/rules/standard/#binary-expression-wrapping) - [chain-method-continuation](https://pinterest.github.io/ktlint/latest/rules/standard/#chain-method-continuation) - [class-signature](https://pinterest.github.io/ktlint/latest/rules/standard/#class-signature) - [condition-wrapping](https://pinterest.github.io/ktlint/latest/rules/standard/#condition-wrapping) - [function-expression-body](https://pinterest.github.io/ktlint/latest/rules/standard/#function-expression-body) - [function-literal](https://pinterest.github.io/ktlint/latest/rules/standard/#function-literal) - [function-type-modifier-spacing](https://pinterest.github.io/ktlint/latest/rules/standard/#function-type-modifier-spacing) - [multiline-loop](https://pinterest.github.io/ktlint/latest/rules/standard/#multiline-loop) ###### 🔧 Fixes * Do not wrap operation reference after multiline string template - [#2591](https://github.com/pinterest/ktlint/pull/2591), by @paul-dingemans * Ignore max line length in case the line contains only a string template followed by a comma - [#2598](https://github.com/pinterest/ktlint/pull/2598), by @paul-dingemans * Ignore nested reference expressions in `chain-method-continuation` - [#2606](https://github.com/pinterest/ktlint/pull/2606), by @paul-dingemans * Prevent exception in `binary-expression-wrapping` rule - [#2607](https://github.com/pinterest/ktlint/pull/2607), by @paul-dingemans * Do not merge opening quotes of multiline string template with (single line) function signature - [#2609](https://github.com/pinterest/ktlint/pull/2609), by @paul-dingemans * Fix replacement of redundant curly braces - [#2617](https://github.com/pinterest/ktlint/pull/2617), by @paul-dingemans * Set and reset Locale to pass test for non-english contributor. - [#2622](https://github.com/pinterest/ktlint/pull/2622), by @Jaehwa-Noh * Fix unwanted whitespace between super class constructor and its argument list - [#2630](https://github.com/pinterest/ktlint/pull/2630), by @tKe * Fix typo's - [#2641](https://github.com/pinterest/ktlint/pull/2641), by @paul-dingemans * Handle trailing space on preceding line in call to `lineLengthWithoutNewlinePrefix` - [#2644](https://github.com/pinterest/ktlint/pull/2644), by @paul-dingemans * Fix KDoc for RuleSetProviderV3 - [#2645](https://github.com/pinterest/ktlint/pull/2645), by @gumimin * Fix not checking for spacing around binary operators inside unary expression - [#2653](https://github.com/pinterest/ktlint/pull/2653), by @cflee * Fix `blank line before declarations` rule code example - [#2657](https://github.com/pinterest/ktlint/pull/2657), by @k-taro56 * Fixed [{ }] notation for issue #2675 - [#2677](https://github.com/pinterest/ktlint/pull/2677), by @Jolanrensen * Simplify default properties loading - [#2679](https://github.com/pinterest/ktlint/pull/2679), by @Goooler ###### 📦 Dependencies * Update dependency org.jetbrains.dokka:dokka-gradle-plugin to v1.9.20 - [#2590](https://github.com/pinterest/ktlint/pull/2590), by @renovate[bot] * Update softprops/action-gh-release action to v2 - [#2600](https://github.com/pinterest/ktlint/pull/2600), by @renovate[bot] * Update dependency io.github. _[Truncated at 4000 characters — full notes: https://github.com/ktlint/ktlint/releases/tag/1.3.0]_