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

Rubocop updates #79

Merged
merged 9 commits into from
Sep 15, 2021
Merged

Rubocop updates #79

merged 9 commits into from
Sep 15, 2021

Conversation

HarlemSquirrel
Copy link
Member

@HarlemSquirrel HarlemSquirrel commented Sep 12, 2021

  • Bump rubocop to latest version
  • Add rubocop-rspec
  • Enable new cops by default
  • Generate new config file
  • Auto-fix issues that are supported
  • Fix some manual issues

@HarlemSquirrel HarlemSquirrel changed the title Rubocop fixes Rubocop updates Sep 12, 2021
@@ -7,8 +7,8 @@ class << self
# Class accessor to force colorized output (ex. forked subprocess where TERM
# might be dumb).
#---------------------------------------------------------------------------
def force_colors!(value = true)
@force_colors = value
def force_colors!(colors: true)
Copy link
Contributor

Choose a reason for hiding this comment

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

Won't this API change break some code?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah I suppose you're right. Should we put this back?

Copy link
Member Author

Choose a reason for hiding this comment

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

We also can do AmazingPrint.force_colors = false since it's an attribute accessor so we really don't need .force_colors! at all since it's really redundant.

@HarlemSquirrel HarlemSquirrel merged commit 5a1a940 into master Sep 15, 2021
@HarlemSquirrel HarlemSquirrel deleted the rubocop-20210912 branch September 15, 2021 08:07
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.

2 participants