-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
statement_indentation
is too aggressive since 7384 PR
#7497
Comments
statement_indentation
is too agresivestatement_indentation
is too agresive since 7384 PR
The fix is ok for a "really bad indentation", but as long as the comment is "indented in the body correctly", it must not be fixed. Given I am not alone who complaints, I belive it should be fixed. It was reported also in #7454 (comment), #6947 and #6891, so even more people complain :) |
statement_indentation
is too agresive since 7384 PRstatement_indentation
is too aggressive since 7384 PR
Closing as duplicate of #7454 (comment) If one wants to go left, and one wants to go right, of course - some ppl will complain regardless which solution you provide. I'm OK to have the rule configurable, feel free to bring that feature. |
There are at least 4 unique people who want this to be fixed. Currently, the fix can change meaning, so we had to disable this rule... Please keep this/one issue open. Either me or someone else can propose the fix. |
As a side note: I really believe that changes like #7384 should not be merged without review. |
@mvorisek I'm OK to have it open as feature request to have configurable option for the rule. @Wirone , sometimes we have not enough code reviews, also not enough contributors. I dare to let myself permission to merge even if there is no review. |
Feature request
#7384 introduced support for
comment for continuous control statement
. As not everyone up for it, we can introduce rule configuration to opt in/outOriginal content:
Bug report
introduced in #7384
the PR removed/updated several important tests like:
In short, it cannot be assumed:
comment only in
if
body is fine butwith comment at the end it is not. Comments below code can be still contextually valid and relevant to the previous code.
The text was updated successfully, but these errors were encountered: