Skip to content

Commit

Permalink
Rubocop changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
ahwatts committed Feb 2, 2021
1 parent 0de48ab commit 02d5faa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
11 changes: 7 additions & 4 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
inherit_from: .rubocop_todo.yml

AllCops:
TargetRubyVersion: 2.0
TargetRubyVersion: 2.7

DisplayCopNames: true
Exclude:
Expand All @@ -12,16 +12,19 @@ AllCops:
Layout/CaseIndentation:
EnforcedStyle: end

Layout/IndentHash:
Layout/FirstHashElementIndentation:
EnforcedStyle: consistent

Lint/EndAlignment:
Layout/EndAlignment:
EnforcedStyleAlignWith: variable

Style/TrailingCommaInArguments:
EnforcedStyleForMultiline: consistent_comma

Style/TrailingCommaInLiteral:
Style/TrailingCommaInArrayLiteral:
EnforcedStyleForMultiline: consistent_comma

Style/TrailingCommaInHashLiteral:
EnforcedStyleForMultiline: consistent_comma

Style/TrivialAccessors:
Expand Down
4 changes: 2 additions & 2 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: auto_detection, squiggly, active_support, powerpack, unindent
Layout/IndentHeredoc:
Layout/HeredocIndentation:
Exclude:
- 'support/ruby_enc_to_mysql.rb'
- 'tasks/compile.rake'
Expand Down Expand Up @@ -41,7 +41,7 @@ Metrics/CyclomaticComplexity:
# Offense count: 313
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
# URISchemes: http, https
Metrics/LineLength:
Layout/LineLength:
Max: 232

# Offense count: 6
Expand Down

0 comments on commit 02d5faa

Please sign in to comment.