-
Notifications
You must be signed in to change notification settings - Fork 506
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Wrong parameter list wrapping #1119
Labels
Milestone
Comments
Maybe the same bug:
tasks.test {
systemProperties = mutableMapOf(
"junit.jupiter.displayname.generator.default" to
"org.junit.jupiter.api.DisplayNameGenerator\$ReplaceUnderscores",
"junit.jupiter.execution.parallel.enabled" to
doParallelTesting.toString() as Any,
"junit.jupiter.execution.parallel.mode.default" to
"concurrent",
"junit.jupiter.execution.parallel.mode.classes.default" to
"concurrent"
)
}
Works fine for 0.40.0, bug was introduced in 0.41.0 |
Another example (likely the same issue):
This gives However, a similar example:
has no errors. |
paul-dingemans
pushed a commit
to paul-dingemans/ktlint
that referenced
this issue
Nov 10, 2021
Only the indentation rule should emit warnings about incorrect indentation to avoid conflicting warnings from different rules about the indentation of the exact same line. However, those other rules should still fix the indentation as good as they can for the case that the indent rule is not run at all. Closes pinterest#1267, pinterest#1119, pinterest#1045
2 tasks
paul-dingemans
pushed a commit
to paul-dingemans/ktlint
that referenced
this issue
Jan 28, 2022
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Expected Behavior
IntelliJ formats a top-level function like that:
Observed Behavior
KtLint complains about:
Changing the function to:
will trigger these errors:
Steps to Reproduce
See sample above.
Your Environment
indent_size = 2
The text was updated successfully, but these errors were encountered: