We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If a code snippet contains a multi-line type parameter list, ktlint may produce contradictory errors with the experimental indentation rule.
E.g. for this code snippet
object TestCase { inline fun < T1, T2, T3> create( t1: T1, t2: T2, t3: T3 ) { // do things } }
... ktlint produces this errors for each function parameter line (t1, t2, t3):
Unexpected indentation (6) (should be 4)
If the indentation on the function parameter lines is "corrected" like so
... ktlint is still not satisfied, now producing this error on each of those lines:
Unexpected indentation (expected 6, actual 4)
The text was updated successfully, but these errors were encountered:
Probably could be covered by #587
Sorry, something went wrong.
@Tapchicoma Added PR: #804 to enforce this behavior. However, it is unclear if we want to make this an enforced rule:
to
since the default spacing seems to leave the indentation flat.
If we want to leave it as is, then I think we can close out this issue.
Successfully merging a pull request may close this issue.
If a code snippet contains a multi-line type parameter list, ktlint may produce contradictory errors with the experimental indentation rule.
E.g. for this code snippet
... ktlint produces this errors for each function parameter line (t1, t2, t3):
If the indentation on the function parameter lines is "corrected" like so
... ktlint is still not satisfied, now producing this error on each of those lines:
The text was updated successfully, but these errors were encountered: