-
Notifications
You must be signed in to change notification settings - Fork 33
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
Rubocop updates #79
Conversation
HarlemSquirrel
commented
Sep 12, 2021
•
edited
Loading
edited
- 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
42e4340
to
1565ab1
Compare
cd42be8
to
be431a3
Compare
@@ -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) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.