diff --git a/.rubocop.yml b/.rubocop.yml index 26869a8..2d45860 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -12,7 +12,7 @@ Layout/CommentIndentation: Style/NestedModifier: Enabled: true -Layout/IndentArray: +Layout/IndentFirstArrayElement: Enabled: true Layout/AlignArray: @@ -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 @@ -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 @@ -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 diff --git a/Gemfile b/Gemfile index 1f2fc5f..a7d55af 100644 --- a/Gemfile +++ b/Gemfile @@ -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 diff --git a/spec/kong/upstream_spec.rb b/spec/kong/upstream_spec.rb index ce6c00b..b4208ff 100644 --- a/spec/kong/upstream_spec.rb +++ b/spec/kong/upstream_spec.rb @@ -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 })