-
Notifications
You must be signed in to change notification settings - Fork 510
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
Unclear Error Message When Inheriting Generic Class #2299
Comments
This typically happens when multiple rules are 'fighting' each other and are negating the changes of each other. So when you try to do the changes manually, it gets very confusing as it does not resolve the problem. In this case it seems that the
while the
As the The violations reported by the |
…e parameter lists in ktlint_official code style This makes indentation of parenthesis, brackets and angle brackets consistent. E.g. in multiline format the elements of the list (excluding the closing token) are indented one indent level deep. The closing token is kept at the same indent level as the opening token. Closes #2299
…parameter-list-spacing` Closes #2299
…e parameter lists in ktlint_official code style (#2302) This makes indentation of parenthesis, brackets and angle brackets consistent. E.g. in multiline format the elements of the list (excluding the closing token) are indented one indent level deep. The closing token is kept at the same indent level as the opening token. Closes #2299
Expected Behavior
When inheriting a generic class, I would expect clearer error messages regarding the formatting as it's not clear to me what to change to get it accepted by the linter. I would also expect that the auto formatter would be able to correct the problem.
Observed Behavior
here is the output of
ktlint -l debug
:lint
Running
ktlint -F
produces similar output but also says:Steps to Reproduce
and then just run
ktlint
on that fileYour Environment
.editorconfig
settingsktlint
is enoughThe text was updated successfully, but these errors were encountered: