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

Upgrade to Rubocop 1.x #65

Merged
merged 2 commits into from
Mar 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions bixby.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,10 @@ Gem::Specification.new do |spec|
spec.version = '3.0.2'
spec.license = 'Apache-2.0'

spec.required_ruby_version = '>= 2.4'
spec.required_ruby_version = '>= 2.5'

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.add_dependency 'rubocop', '>= 1', '< 2'
spec.add_dependency 'rubocop-ast'
spec.add_dependency 'rubocop-performance'
spec.add_dependency 'rubocop-rails'
spec.add_dependency 'rubocop-rspec'
Expand Down
15 changes: 9 additions & 6 deletions bixby_default.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require: rubocop-performance

AllCops:
TargetRubyVersion: 2.4
TargetRubyVersion: 2.5
DisabledByDefault: true
DisplayCopNames: true
Exclude:
Expand Down Expand Up @@ -162,9 +162,6 @@ Style/MethodCallWithoutArgsParentheses:
Style/MethodDefParentheses:
Enabled: true

Style/MethodMissingSuper:
Enabled: true

Style/MissingRespondToMissing:
Enabled: true

Expand Down Expand Up @@ -606,12 +603,13 @@ Naming/VariableName:

Naming/VariableNumber:
Enabled: true
CheckSymbols: false

#################### Metrics ###############################

Metrics/AbcSize:
Enabled: true
Max: 28
Max: 32

Metrics/BlockNesting:
Enabled: true
Expand All @@ -626,6 +624,7 @@ Metrics/ModuleLength:

Metrics/CyclomaticComplexity:
Enabled: true
Max: 10

Metrics/MethodLength:
Enabled: true
Expand All @@ -643,6 +642,7 @@ Metrics/ParameterLists:

Metrics/PerceivedComplexity:
Enabled: true
Max: 11

#################### Lint ##################################
### Warnings
Expand Down Expand Up @@ -726,6 +726,9 @@ Lint/LiteralInInterpolation:
Lint/Loop:
Enabled: true

Lint/MissingSuper:
Enabled: true

Lint/MultipleComparison:
Enabled: true

Expand Down Expand Up @@ -795,7 +798,7 @@ Lint/UselessAccessModifier:
Lint/UselessAssignment:
Enabled: true

Lint/UselessComparison:
Lint/BinaryOperatorWithIdenticalOperands:
Enabled: true

Lint/UselessElseWithoutRescue:
Expand Down
10 changes: 4 additions & 6 deletions bixby_rspec_enabled.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
---
require: rubocop-rspec

AllCops:
RSpec:
Patterns:
- _spec.rb
- "(?:^|/)spec/"
RSpec:
Include:
- _spec.rb
- "(?:^|/)spec/"

RSpec/AnyInstance:
Enabled: true
Expand All @@ -25,7 +24,6 @@ RSpec/DescribeMethod:

RSpec/EmptyExampleGroup:
Enabled: true
CustomIncludeMethods: []

RSpec/ExampleLength:
Enabled: true
Expand Down