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
properly fix group of annotation keywords (for example "TODO HACK lorem ipsum") [will be wontfixed by bot] #6630
Comments
bug reported as rubocop/rubocop#6630
@matkoniecz For this to work in current rubocop version, you will have to add your keyword |
I tried
in my config file. I still got
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution and understanding! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution and understanding! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution and understanding! |
Sorry for the long delay in fixing this, I've opened #10039. |
…ndle multiword keyword phrases.
In comments like
TODO HACK lorem ipsum
Style/CommentAnnotation should not add colon after the first keyword if multiple are present - but rather after entire keyword group.Expected behavior
# TODO HACK lorem ipsum
is changed into# TODO HACK: lorem ipsum
Actual behavior
# TODO HACK lorem ipsum
is changed into# TODO: HACK lorem ipsum
Steps to reproduce the problem
run
rubocop --auto-correct
onSee https://github.com/matkoniecz/reproducible_rubocop_bug for test case with https://github.com/matkoniecz/reproducible_rubocop_bug/commit/0a21f4f7b40ff9f97e1b9ae106017b76ec189a21 as bugged Rubocop edit
RuboCop version
The text was updated successfully, but these errors were encountered: