Skip to content

Commit

Permalink
Merge branch 'main' into fix_branch_name_in_readme
Browse files Browse the repository at this point in the history
  • Loading branch information
bess authored Mar 15, 2022
2 parents 05b2a27 + 107e73f commit 6e3bc37
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 18 deletions.
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

0 comments on commit 6e3bc37

Please sign in to comment.