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

[Fix #10693] Add ignore case for Style/EmptyLinesAroundAttributeAccessor when there is a comment line on the next line. #10694

Conversation

ydah
Copy link
Member

@ydah ydah commented Jun 5, 2022

Resolve: #10693


Before submitting the PR make sure the following are checked:

  • The PR relates to only one subject with a clear title and description in grammatically correct, complete sentences.
  • Wrote good commit messages.
  • Commit message starts with [Fix #issue-number] (if the related issue exists).
  • Feature branch is up-to-date with master (if not - rebase it).
  • Squashed related commits together.
  • Added tests.
  • Ran bundle exec rake default. It executes all tests and runs RuboCop on its own code.
  • Added an entry (file) to the changelog folder named {change_type}_{change_description}.md if the new code introduces user-observable changes. See changelog entry format for details.

@ydah ydah marked this pull request as ready for review June 5, 2022 21:37
@ydah ydah force-pushed the add_ignore_case_for_empty_lines_around_attribute_accessor branch 2 times, most recently from 73c20e5 to 8138885 Compare June 7, 2022 06:30
@ydah ydah force-pushed the add_ignore_case_for_empty_lines_around_attribute_accessor branch from 8138885 to 9a22ca6 Compare June 7, 2022 11:29
@ydah ydah requested a review from koic June 7, 2022 11:32
@@ -33,6 +33,129 @@ def do_something
RUBY
end

it 'registers an offense and corrects for a attribute accessor and comment line' do
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
it 'registers an offense and corrects for a attribute accessor and comment line' do
it 'registers an offense and corrects for an attribute accessor and comment line' do

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, fixed that.

…uteAccessor` when there is a comment line on the next line.
@ydah ydah force-pushed the add_ignore_case_for_empty_lines_around_attribute_accessor branch from 9a22ca6 to 71076f5 Compare June 7, 2022 20:56
@koic koic merged commit 40e83ef into rubocop:master Jun 8, 2022
@koic
Copy link
Member

koic commented Jun 8, 2022

Thanks!

@ydah ydah deleted the add_ignore_case_for_empty_lines_around_attribute_accessor branch June 8, 2022 03:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

EmptyLinesAroundAttributeAccessor should ignore # rubocop comments
2 participants