You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…gument should not throw error
Making this possible required a considerable refactoring of the code.
The exceptions regarding formatting of blocks in conjunction with
the exceptions for the BY-keyword continually conflicted with each
other. Especially the exceptions for the BY-keyword were sometimes
incorrectly implemented.
The blockOpeningLineStack in the IndentContext has now been replaced
with a blockStack which contains more context information about the
block. Also trace logging now provides more details about opening
and closing blocks. The main idea behind this stack is however not
changed. But some functionality has been moved from the closing
element to the opening element.
Closespinterest#1330
…gument should not throw error (#1358)
A single line function with a parameter having a lambda as default argument should not throw error
Making this possible required a considerable refactoring of the code.
The exceptions regarding formatting of blocks in conjunction with
the exceptions for the BY-keyword continually conflicted with each
other. Especially the exceptions for the BY-keyword were sometimes
incorrectly implemented.
The blockOpeningLineStack in the IndentContext has now been replaced
with a blockStack which contains more context information about the
block. Also trace logging now provides more details about opening
and closing blocks. The main idea behind this stack is however not
changed. But some functionality has been moved from the closing
element to the opening element.
Closes#1330
Co-authored-by: Paul Dingemans <pdingemans@bol.com>
Co-authored-by: Sha Sha Chu <shasha@pinterest.com>
Expected Behavior
I've tried to upgrade from v0.40.0 to v0.43.2 and encountered a situation where the indent rule reports some strange violations.
Below is a minimal reproducible example of the issue via CLI:
I'm expecting this code to be valid.
Observed Behavior
ktlint reports the following errors with the code above:
Steps to Reproduce
See code above
Your Environment
The text was updated successfully, but these errors were encountered: