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
Relevant parts of the .editorconfig settings: none, although function-literal seems to be crashing even with ktlint_code_style = intellij_idea, whereas the documentation states the rule runs only with kotlin_official code style
Name and version (or code for custom task) of integration used (Gradle plugin, Maven plugin, command line, custom Gradle task): ktlint-gradle-plugin
Version of Gradle used (if applicable): 8.3
Operating System and version:
The text was updated successfully, but these errors were encountered:
The function-literal rule is introduced in version 1.0.0. The documentation is incorrect. The rule is an experimental rule and will only be run when the the experimental rules are enabled.
Both documentation and rule need to be fixed. Tnx for reporting.
Kotlin allows a function literal to be defined with an empty parameter list and a redundant arrow symbol to divide the parameter list from the body.
Closes#2331
…ocumentation (#2365)
Kotlin allows a function literal to be defined with an empty parameter list and a redundant arrow symbol to divide the parameter list from the body.
Fix documentation, `function-literal` rule is experimental and not bound to `ktlint_official` code style.
Closes#2331
Expected Behavior
ktlint should not crash
Observed Behavior
ktlint crashes
Steps to Reproduce
Your Environment
.editorconfig
settings: none, althoughfunction-literal
seems to be crashing even withktlint_code_style = intellij_idea
, whereas the documentation states the rule runs only with kotlin_official code styleThe text was updated successfully, but these errors were encountered: