Skip to content

Conversation

@smpanaro
Copy link
Contributor

@smpanaro smpanaro commented Aug 19, 2022

When ktlint fails to autocorrect an issue, you get an error:

Step 'ktlint' found problem in 'src/main/java/Main.kt':
Error on line: 337, column: 41
Unexpected whitespace
// stacktrace

This adds the rule to the error:

Step 'ktlint' found problem in 'src/main/java/Main.kt':
Error on line: 337, column: 41
rule: experimental:parameter-list-spacing
Unexpected whitespace
// stacktrace

@nedtwigg
Copy link
Member

Happy to merge if you fix broken tests :)

@smpanaro
Copy link
Contributor Author

Of course! I also made a small change to put the word rule: in front of the rule.

@nedtwigg nedtwigg merged commit 99950e7 into diffplug:main Aug 22, 2022
@nedtwigg
Copy link
Member

Published in plugin-gradle 6.10.0 and plugin-maven 2.25.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants