Skip to content
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

False positive for experimental:indent with new line before return type #649

Closed
lwasyl opened this issue Nov 19, 2019 · 0 comments · Fixed by #663
Closed

False positive for experimental:indent with new line before return type #649

lwasyl opened this issue Nov 19, 2019 · 0 comments · Fixed by #663

Comments

@lwasyl
Copy link

lwasyl commented Nov 19, 2019

For the given function:

abstract fun doPerformSomeOperation(param: ALongParameter):
    SomeLongInterface<ALongParameter.InnerClass, SomeOtherClass>

and with both indent and continuation indent set to 4, KtLint reports at the second line that Unexpected indentation (8) (should be 4)

This seems to be a false positive, since some indent (normal or continuation one) should be applied for that line, otherwise we'd end up with

abstract fun doPerformSomeOperation(param: ALongParameter):
SomeLongInterface<ALongParameter.InnerClass, SomeOtherClass>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants