Skip to content

Commit

Permalink
update rubocop to 0.76 (#41)
Browse files Browse the repository at this point in the history
* update rubocop to 76.0

* Travis-CI: Ruby 2.3 is EOL (not maintained), add Ruby 2.4,2.5,2.6
  • Loading branch information
mtmail authored and nevalla committed Dec 17, 2019
1 parent d2ca82d commit 2010b83
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
14 changes: 9 additions & 5 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Layout/CommentIndentation:
Style/NestedModifier:
Enabled: true

Layout/IndentArray:
Layout/IndentFirstArrayElement:
Enabled: true

Layout/AlignArray:
Expand Down Expand Up @@ -219,7 +219,11 @@ Layout/SpaceInsideParens:
StyleGuide: https://github.com/backupify/backupify_styleguides/blob/master/RubyStyleguide.md#no-spaces-around-delimiters
Enabled: true

Layout/SpaceInsideBrackets:
Layout/SpaceInsideArrayLiteralBrackets:
StyleGuide: https://github.com/backupify/backupify_styleguides/blob/master/RubyStyleguide.md#no-spaces-around-delimiters
Enabled: true

Layout/SpaceInsideReferenceBrackets:
StyleGuide: https://github.com/backupify/backupify_styleguides/blob/master/RubyStyleguide.md#no-spaces-around-delimiters
Enabled: true

Expand All @@ -235,7 +239,7 @@ Layout/RescueEnsureAlignment:
StyleGuide: https://github.com/backupify/backupify_styleguides/blob/master/RubyStyleguide.md#case-indentation
Enabled: true

Lint/EndAlignment:
Layout/EndAlignment:
StyleGuide: https://github.com/backupify/backupify_styleguides/blob/master/RubyStyleguide.md#case-indentation
Enabled: true
AutoCorrect: true
Expand Down Expand Up @@ -307,11 +311,11 @@ Layout/SpaceAfterMethodName:
StyleGuide: https://github.com/backupify/backupify_styleguides/blob/master/RubyStyleguide.md#no-space-after-method-name
Enabled: true

Style/VariableName:
Naming/VariableName:
StyleGuide: https://github.com/backupify/backupify_styleguides/blob/master/RubyStyleguide.md#variable-names
Enabled: true

Style/ConstantName:
Naming/ConstantName:
StyleGuide: https://github.com/backupify/backupify_styleguides/blob/master/RubyStyleguide.md#constant-names
Enabled: true

Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ source 'https://rubygems.org'
gemspec
group :development, :test do
gem "rspec"
gem "rubocop", "~> 0.49.0"
gem "rubocop", "~> 0.76.0"
end
2 changes: 1 addition & 1 deletion spec/kong/upstream_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
expect(Kong::Client.instance)
.to receive(:get).with("/upstreams/12345/targets")
.and_return({
'data' => [{ 'upstream_id' => 12345, 'target' => 'google.com:80', 'weight' => 100 }],
'data' => [{ 'upstream_id' => 12345, 'target' => 'google.com:80', 'weight' => 100 }],
'total' => 1
})

Expand Down

0 comments on commit 2010b83

Please sign in to comment.