Skip to content

Commit

Permalink
Update hound/rubocop configuration
Browse files Browse the repository at this point in the history
[#83353366]
  • Loading branch information
bdehamer committed Nov 25, 2014
1 parent 787b784 commit d9abe5b
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 41 deletions.
44 changes: 3 additions & 41 deletions .hound.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,3 @@
LineLength:
Description: 'Limit lines to 120 characters.'
Max: 120

StringLiterals:
EnforcedStyle: single_quotes

RedundantSelf:
Enabled: false

SpaceAroundEqualsInParameterDefault:
EnforcedStyle: no_space

AlignParameters:
Enabled: false

DotPosition:
EnforcedStyle: leading

EmptyLinesAroundBody:
Enabled: false

NumericLiterals:
Enabled: false

CollectionMethods:
PreferredMethods:
collect: 'map'
collect!: 'map!'
inject: 'reduce'
detect: 'find'
find_all: 'select'

CyclomaticComplexity:
Enabled: false

MethodLength:
Enabled: false

ClassLength:
Enabled: false
ruby:
enabled: true
config_file: .rubocop.yml
46 changes: 46 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
AllCops:
Exclude:
- config/**/*
- db/**/*

Metrics/LineLength:
Description: 'Limit lines to 120 characters.'
Max: 120

Metrics/CyclomaticComplexity:
Enabled: false

Metrics/MethodLength:
Enabled: false

Metrics/ClassLength:
Enabled: false

Style/StringLiterals:
EnforcedStyle: single_quotes

Style/SpaceAroundEqualsInParameterDefault:
EnforcedStyle: no_space

Style/AlignParameters:
Enabled: with_fixed_indentation

Style/DotPosition:
EnforcedStyle: leading

Style/NumericLiterals:
Enabled: false

Style/CollectionMethods:
PreferredMethods:
collect: 'map'
collect!: 'map!'
inject: 'reduce'
detect: 'find'
find_all: 'select'

Style/RedundantSelf:
Enabled: false

Style/Documentation:
Enabled: false

0 comments on commit d9abe5b

Please sign in to comment.