-
Notifications
You must be signed in to change notification settings - Fork 5
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
Chore/upgrade rubocop #36
Conversation
42b4a9f
to
f770b81
Compare
@hiroara Is there some place on GH where we could disable the Ruby-23 check? I can't see the setting. Could it be access restricted? |
@NEWROPE/dev I disabled the Ruby 2.3 check. This PR is ready for review. Please take a look :) |
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.
Thank you for upgrading deps :)
But, could you also update code or rules to avoid committing .rubocop_todo.yml
?
- and | ||
|
||
RSpec/MultipleMemoizedHelpers: | ||
Max: 7 |
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.
Since we use a lot of let
in this project, I chose 7 to avoid most of our use cases (default is 5) and applied code changes to the rest.
For more details about this change by Rubocop-Rspec:
- rubocop/rubocop-rspec#863
- rubocop/rubocop-rspec#862
- https://thoughtbot.com/blog/lets-not
@NEWROPE/dev I pushed changes. Please take a look again :) (Though dependabot seems to be stuck at WIP? lol) |
@@ -24,4 +23,6 @@ Gem::Specification.new do |spec| | |||
spec.require_paths = ['lib'] | |||
|
|||
spec.add_development_dependency 'bundler', '~> 2.1' | |||
|
|||
spec.required_ruby_version = '>= 2.4' |
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.
Thank you for adding this constraint :)
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.
LGTM! Since we dropped support for an old version of ruby, let's bump the major version 👍
@hiroara @NEWROPE/dev
To deal with:
Also Rubocop started to support its own JUNIT formatter, and the old one was deprecated:
JUnitFormatter
rubocop/rubocop#7701So I replaced that too.
And support for Ruby 2.3 was dropped too:
Please review.