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 ad49266 commit 4e35316
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 43 deletions.
46 changes: 6 additions & 40 deletions .hound.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,7 @@
LineLength:
Description: 'Limit lines to 120 characters.'
Max: 120
ruby:
enabled: true
config_file: .rubocop.yml

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
java_script:
enabled: true
config_file: .jshintrc
18 changes: 18 additions & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"bitwise": true,
"curly": true,
"eqeqeq": true,
"forin": true,
"immed": true,
"latedef": true,
"newcap": true,
"noarg": true,
"noempty": true,
"nonew": true,
"plusplus": true,
"regexp": true,
"undef": false,
"strict": false,
"trailing": true,
"browser": true
}
42 changes: 39 additions & 3 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,46 @@
inherit_from: ./.hound.yml

AllCops:
Exclude:
- config/**/*
- db/**/*

Documentation:
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 4e35316

Please sign in to comment.