Skip to content

Commit 989cc25

Browse files
committed
Upgrade RuboCop to the latest
1 parent e9c6629 commit 989cc25

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

.rubocop.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,19 @@ AllCops:
1212
Layout/CaseIndentation:
1313
EnforcedStyle: end
1414

15-
Layout/IndentHash:
15+
Layout/FirstHashElementIndentation:
1616
EnforcedStyle: consistent
1717

18-
Lint/EndAlignment:
18+
Layout/EndAlignment:
1919
EnforcedStyleAlignWith: variable
2020

2121
Style/TrailingCommaInArguments:
2222
EnforcedStyleForMultiline: consistent_comma
2323

24-
Style/TrailingCommaInLiteral:
24+
Style/TrailingCommaInArrayLiteral:
25+
EnforcedStyleForMultiline: consistent_comma
26+
27+
Style/TrailingCommaInHashLiteral:
2528
EnforcedStyleForMultiline: consistent_comma
2629

2730
Style/TrivialAccessors:

.rubocop_todo.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# Cop supports --auto-correct.
1111
# Configuration parameters: EnforcedStyle, SupportedStyles.
1212
# SupportedStyles: auto_detection, squiggly, active_support, powerpack, unindent
13-
Layout/IndentHeredoc:
13+
Layout/HeredocIndentation:
1414
Exclude:
1515
- 'support/ruby_enc_to_mysql.rb'
1616
- 'tasks/compile.rake'
@@ -41,7 +41,7 @@ Metrics/CyclomaticComplexity:
4141
# Offense count: 313
4242
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
4343
# URISchemes: http, https
44-
Metrics/LineLength:
44+
Layout/LineLength:
4545
Max: 232
4646

4747
# Offense count: 6

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ group :test do
1919
# Downgrade psych because old RuboCop can't use new Psych
2020
gem 'psych', '< 4.0.0'
2121
# https://github.com/bbatsov/rubocop/pull/4789
22-
gem 'rubocop', '~> 0.50.0'
22+
gem 'rubocop', '~> 1.30'
2323
end
2424

2525
group :benchmarks, optional: true do

0 commit comments

Comments
 (0)