Skip to content

Commit

Permalink
Update .rubocop.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kinnell committed Apr 1, 2022
1 parent 11d2ef2 commit 0e78fef
Showing 1 changed file with 31 additions and 3 deletions.
34 changes: 31 additions & 3 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,33 @@
AllCops:
TargetRubyVersion: 2.7
NewCops: enable
TargetRubyVersion: 3.1
DisplayCopNames: true
NewCops: enable
SuggestExtensions: false

Gemspec/RequiredRubyVersion:
Enabled: false

Layout/ArgumentAlignment:
Enabled: false

Layout/CaseIndentation:
Enabled: false

Layout/EmptyLineBetweenDefs:
Enabled: false

Layout/EmptyLinesAroundExceptionHandlingKeywords:
Enabled: false

Layout/EndAlignment:
Enabled: false

Layout/ExtraSpacing:
Enabled: false

Layout/FirstArrayElementIndentation:
Enabled: false

Layout/FirstHashElementIndentation:
EnforcedStyle: consistent

Expand All @@ -28,9 +37,15 @@ Layout/HashAlignment:
Layout/LineLength:
Enabled: false

Layout/MultilineMethodCallIndentation:
Enabled: false

Lint/DuplicateBranch:
Enabled: false

Lint/MissingCopEnableDirective:
Enabled: false

Lint/MissingSuper:
Enabled: false

Expand All @@ -45,6 +60,9 @@ Lint/SymbolConversion:
Exclude:
- /**/*.rake

Lint/UnusedMethodArgument:
Enabled: false

Metrics/AbcSize:
Enabled: false

Expand Down Expand Up @@ -105,6 +123,7 @@ Style/HashEachMethods:
Enabled: false

Style/HashSyntax:
EnforcedShorthandSyntax: never
Exclude:
- /**/*.rake

Expand All @@ -118,14 +137,17 @@ Style/IfUnlessModifier:
Enabled: false

Style/Lambda:
Enabled: false
EnforcedStyle: literal

Style/ModuleFunction:
Enabled: false

Style/NumericLiterals:
Enabled: false

Style/NumericPredicate:
Enabled: false

Style/PreferredHashMethods:
Enabled: false

Expand All @@ -135,6 +157,9 @@ Style/RedundantFreeze:
Style/RegexpLiteral:
Enabled: false

Style/RescueModifier:
Enabled: false

Style/SingleArgumentDig:
Enabled: false

Expand All @@ -153,5 +178,8 @@ Style/TrailingCommaInArrayLiteral:
Style/TrailingCommaInHashLiteral:
EnforcedStyleForMultiline: consistent_comma

Style/TrivialAccessors:
Enabled: false

Style/WordArray:
Enabled: false

0 comments on commit 0e78fef

Please sign in to comment.