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

Autocorrect option changes comment #2244

Closed
nwshane opened this issue Sep 13, 2015 · 1 comment
Closed

Autocorrect option changes comment #2244

nwshane opened this issue Sep 13, 2015 · 1 comment
Labels

Comments

@nwshane
Copy link

nwshane commented Sep 13, 2015

I have this comment in my code:

  # Example: There are three reviews, with ranks 1, 2, and 3. A new
  # review is saved with rank 2. The two reviews that originally had
  # ranks 2 and 3 will have their ranks increased to 3 and 4.

When I run rubocop -a, the autocorrector changes the beginning of the second line of the comment:

  # Example: There are three reviews, with ranks 1, 2, and 3. A new
  # REVIEW: is saved with rank 2. The two reviews that originally had
  # ranks 2 and 3 will have their ranks increased to 3 and 4.

Rubocop version: 0.31.0
Mac OS X: 10.9.5
Ruby: 2.1.2

@jonas054 jonas054 added the bug label Sep 13, 2015
@jonas054
Copy link
Collaborator

Confirmed as a bug.

bbatsov added a commit that referenced this issue Sep 17, 2015
[Fix #2244] Annotations can only begin a comment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants