-
Notifications
You must be signed in to change notification settings - Fork 2
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
Upgrade to rubocop 1.x #57
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
inherit_from: bixby_default.yml | ||
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -15,11 +15,10 @@ Gem::Specification.new do |spec| | |||||
spec.version = '3.0.2' | ||||||
spec.license = 'Apache-2.0' | ||||||
|
||||||
spec.add_dependency 'rubocop', '0.85.1' | ||||||
# Added to prevent downstream breakage; When we update the above | ||||||
# Rubocop version, we will want to revisit this dependency. Either | ||||||
# changing the version range OR removing it. | ||||||
spec.add_dependency 'rubocop-ast', '~> 0.3.0' | ||||||
spec.required_ruby_version = '>= 2.6' | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Rubocop required setting this to match the |
||||||
|
||||||
spec.add_dependency 'rubocop', '>= 1', '< 2' | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should this use
Suggested change
|
||||||
spec.add_dependency 'rubocop-ast' | ||||||
spec.add_dependency 'rubocop-performance' | ||||||
spec.add_dependency 'rubocop-rails' | ||||||
spec.add_dependency 'rubocop-rspec' | ||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -162,7 +162,7 @@ Style/MethodCallWithoutArgsParentheses: | |
Style/MethodDefParentheses: | ||
Enabled: true | ||
|
||
Style/MethodMissingSuper: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This cop changed to |
||
Style/MissingSuper: | ||
cjcolvar marked this conversation as resolved.
Show resolved
Hide resolved
|
||
Enabled: true | ||
|
||
Style/MissingRespondToMissing: | ||
|
@@ -795,7 +795,7 @@ Lint/UselessAccessModifier: | |
Lint/UselessAssignment: | ||
Enabled: true | ||
|
||
Lint/UselessComparison: | ||
Lint/BinaryOperatorWithIdenticalOperands: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This cop's name changed. |
||
Enabled: true | ||
|
||
Lint/UselessElseWithoutRescue: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
--- | ||
require: rubocop-rspec | ||
|
||
AllCops: | ||
RSpec: | ||
Patterns: | ||
RSpec: | ||
Include: | ||
Comment on lines
+4
to
+5
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. rubocop-rspec moved and renamed this property. |
||
- _spec.rb | ||
- "(?:^|/)spec/" | ||
|
||
|
@@ -25,7 +24,6 @@ RSpec/DescribeMethod: | |
|
||
RSpec/EmptyExampleGroup: | ||
Enabled: true | ||
CustomIncludeMethods: [] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This property is no longer supported by this cop. |
||
|
||
RSpec/ExampleLength: | ||
Enabled: 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.
Eat our own dog food. 🐶