Skip to content

Commit

Permalink
AO3-5758 Add Hound rules for bundler, layout, and style (otwcode#3641)
Browse files Browse the repository at this point in the history
* AO3-5758 Add Hound rules for bundler, layout, and style

* Add Layout/IndentArray rule

* Use aligned + trailing for multiline method calls

* Use indented + leading for multiline method calls
  • Loading branch information
redsummernight authored and sarken committed Oct 24, 2019
1 parent be1f2c2 commit b28a646
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions config/.rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,18 @@
AllCops:
TargetRubyVersion: 2.6

Bundler/OrderedGems:
Enabled: false

Layout/DotPosition:
EnforcedStyle: leading

Layout/IndentArray:
EnforcedStyle: consistent

Layout/MultilineMethodCallIndentation:
EnforcedStyle: indented

Layout/TrailingWhitespace:
Enabled: false

Expand All @@ -28,10 +40,21 @@ Metrics/ModuleLength:
Style/FormatStringToken:
EnforcedStyle: template

Style/FrozenStringLiteralComment:
Enabled: false

Style/GlobalVars:
AllowedVariables:
- $elasticsearch
- $rollout

# stop checking if uses of "self" are redundant
Style/RedundantSelf:
Enabled: false

# stop checking quotation marks
Style/StringLiterals:
Enabled: false

Style/SymbolArray:
Enabled: false

0 comments on commit b28a646

Please sign in to comment.