-
Notifications
You must be signed in to change notification settings - Fork 466
Update IndentStep
to allow leading space on multi-line comments
#1072
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great start, almost there :)
lib/src/main/java/com/diffplug/spotless/generic/IndentStep.java
Outdated
Show resolved
Hide resolved
lib/src/main/java/com/diffplug/spotless/generic/IndentStep.java
Outdated
Show resolved
Hide resolved
testlib/src/test/java/com/diffplug/spotless/generic/IndentStepTest.java
Outdated
Show resolved
Hide resolved
At present, `indentWithTabs` doesn't handle leading space on multi-line comments and reports errors on properly formatted code. This commit updates `IndentStep` to add support for detecting multi-line comments and allowing a single leading space for such lines. Closes diffplug#1070
Head branch was pushed to by a user without write access
I pushed an additional commit that fixes the code style issue that caused the CI build to fail. @nedtwigg note that I did run |
At present,
indentWithTabs
doesn't handle leading space on multi-line comments and reports errors on properly formatted code.This commit updates
IndentStep
to add support for detecting multi-line comments and allowing a single leading space for such lines.Closes #1070