Skip to content

Fix Rubocop violations #494

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

Merged
merged 19 commits into from
Jun 15, 2023
Merged

Fix Rubocop violations #494

merged 19 commits into from
Jun 15, 2023

Conversation

spencertransier
Copy link
Contributor

What does it do?

  • This PR fixes some of rubocop violations from .rubocop_todo.yml. I went through and removed a section from the todo file, ran Rubocop, then fixed any of the issues it found.
  • It may be helpful to review this PR commit by commit to see which rubocop rule affected which changes.
  • I also regenerated .rubocop_todo.yml to get the latest status by running bundle exec rubocop --regenerate-todo
  • For the Naming/VariableName changes, I verified that those variables are only used internally by those actions and are not breaking changes for clients.

Checklist before requesting a review

  • Run bundle exec rubocop to test for code style violations and recommendations
  • Add Unit Tests (aka specs/*_spec.rb) if applicable
  • Run bundle exec rspec to run the whole test suite and ensure all your tests pass
  • Make sure you added an entry in the CHANGELOG.md file to describe your changes under the appropriate existing ### subsection of the existing ## Trunk section.
  • If applicable, add an entry in the MIGRATION.md file to describe how the changes will affect the migration from the previous major version and what the clients will need to change and consider.

@spencertransier spencertransier requested a review from a team June 14, 2023 18:08
Copy link
Contributor

@crazytonyli crazytonyli left a comment

Choose a reason for hiding this comment

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

I trust Rubocop made the right auto-correct changes. And the name changes looks good to me too.

Copy link
Contributor

@iangmaia iangmaia left a comment

Choose a reason for hiding this comment

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

Nice one, @spencertransier 👍

LGTM. I'll wait for this one to land before I finally merge #489 to avoid conflicts on your side, so that I can also update the code according to the updated rules over there.

@spencertransier spencertransier merged commit 0f6c702 into trunk Jun 15, 2023
@spencertransier spencertransier deleted the fix/rubocop-violations branch June 15, 2023 13:08
@spencertransier
Copy link
Contributor Author

Thanks @iangmaia. Sounds good, I'm excited to have your PR merged!

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.

3 participants