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

Updated 5 cops to inherit from Base instead of Cop #9192

Merged
merged 2 commits into from
Dec 8, 2020

Conversation

dvandersluis
Copy link
Member

Extracted from #9176, follows #7868.

  • Layout/LineLength
  • Style/CharacterLiteral
  • Style/IpAddresses
  • Style/StringLiterals
  • Style/StringLiteralsInInterpolation

Also Updated StringHelp and StringLiteralCorrector for use with Base instead of Cop.

Replace this text with a summary of the changes in your PR.
The more detailed you are, the better.


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.

@dvandersluis
Copy link
Member Author

Test failures should go away once #9190 is merged, I'll rebase then.

@bbatsov
Copy link
Collaborator

bbatsov commented Dec 8, 2020

Okay, I'll merge the other PR to fix the build.

…sses`, `Style/StringLiterals`, `Style/StringLiteralsInInterpolation` to use `Base`.

Updated `StringHelp` and `StringLiteralCorrector` for use with `Base` instead of `Cop`.
@dvandersluis
Copy link
Member Author

@bbatsov build should be green now!

Copy link
Contributor

@marcandre marcandre left a comment

Choose a reason for hiding this comment

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

LGTM

@mergify mergify bot merged commit 1386f77 into rubocop:master Dec 8, 2020
@dvandersluis dvandersluis deleted the refactor/cop-base branch January 18, 2021 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants