Skip to content

Commit

Permalink
fix rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieujobin committed Oct 30, 2023
1 parent e392c28 commit 8f11b73
Show file tree
Hide file tree
Showing 3 changed files with 247 additions and 280 deletions.
261 changes: 0 additions & 261 deletions .rubocop.hound.yml

This file was deleted.

27 changes: 8 additions & 19 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
inherit_from:
- .rubocop.hound.yml
inherit_from: .rubocop_todo.yml

AllCops:
TargetRubyVersion: 2.1
Exclude:
- '*.gemspec'
- 'Gemfile'
NewCops: enable
TargetRubyVersion: 2.7

Style/EmptyLinesAroundClassBody:
Layout/EmptyLinesAroundClassBody:
Enabled: false

Style/EmptyLinesAroundModuleBody:
Layout/EmptyLinesAroundModuleBody:
Enabled: false

Style/EmptyLinesAroundMethodBody:
Layout/EmptyLinesAroundMethodBody:
Enabled: false

Style/ClassCheck:
Expand All @@ -23,7 +20,7 @@ Style/ClassCheck:
Style/StringLiterals:
Enabled: false

Style/FileName:
Naming/FileName:
Enabled: false

Style/RedundantException:
Expand All @@ -35,19 +32,11 @@ Style/SignalException:
Style/BlockDelimiters:
Enabled: false

Style/CollectionMethods:
PreferredMethods:
detect: find

# Github's PR width is 120 characters
Metrics/LineLength:
Layout/LineLength:
Max: 120
AllowURI: true

# Align with the style guide, we don't prefer anything
Style/CollectionMethods:
Enabled: false

Metrics/AbcSize:
Description: A calculated magnitude based on number of assignments, branches, and
conditions.
Expand Down
Loading

0 comments on commit 8f11b73

Please sign in to comment.