Skip to content

Commit

Permalink
Add rubocop and hound config
Browse files Browse the repository at this point in the history
* Set up code styling for codebse
  • Loading branch information
mtchavez committed Feb 16, 2016
1 parent 209fd1a commit 51838c7
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .hound.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ruby:
config_file: .rubocop.yml
40 changes: 40 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
AllCops:
Exclude:
- 'Gemfile'
- '**/Gemfile'
- 'Capfile'
- '**/Capfile'
- 'vendor/**/*'
- 'env/vendor/**/*'
- 'cookbooks/**/**'

Documentation:
Enabled: false

Metrics/MethodLength:
Max: 30

Metrics/LineLength:
Max: 200

Style/NumericLiterals:
MinDigits: 7

Metrics/ModuleLength:
CountComments: false
Max: 300

Style/SpaceBeforeFirstArg:
AllowForAlignment: true

Style/PercentLiteralDelimiters:
PreferredDelimiters:
'%': '[]'
'%Q': '[]'
'%W': '[]'
'%i': '[]'
'%q': '[]'
'%r': '{}'
'%s': '[]'
'%w': '[]'
'%x': '[]'

0 comments on commit 51838c7

Please sign in to comment.