镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Add ktlint rule ID in formatter callback exception - #1279

Merged
nedtwigg merged 6 commits into
diffplug:mainfrom
smpanaro:ktlint-rule-id
Aug 22, 2022
Merged

nedtwigg merged 6 commits into
diffplug:mainfrom
smpanaro:ktlint-rule-id

Conversation

@smpanaro

@smpanaro smpanaro commented Aug 19, 2022 •

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Member

Happy to merge if you fix broken tests :)

@smpanaro

Copy link
Copy Markdown
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
Copy Markdown
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