-
Notifications
You must be signed in to change notification settings - Fork 16
/
.rubocop.yml
44 lines (37 loc) · 945 Bytes
/
.rubocop.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# RuboCop config file
# Configure cops
# https://github.com/bbatsov/rubocop
# https://github.com/bbatsov/rubocop/blob/master/config/default.yml
# https://github.com/bbatsov/ruby-style-guide
#
AllCops:
Include:
- '**/*.gemspec'
- '**/*.rake'
- '**/Gemfile'
- '**/Puppetfile'
- '**/Rakefile'
- '**/Guardfile'
Exclude:
- 'modules/**/*'
- 'pkg/**/*'
- 'spec/fixtures/**/*'
- 'vendor/**/*'
DisplayCopNames: true
#################### Style ##################################
# Cop supports --auto-correct.
# Configuration parameters: SupportedStyles.
# Support ruby 1.8.7
Style/HashSyntax:
EnforcedStyle: hash_rockets
# The shebang stuff at the top triggers this
Style/LeadingCommentSpace:
Exclude:
- Puppetfile
#################### Metrics ################################
Metrics/LineLength:
# Ruduce this... Max: 80
Max: 112
Metrics/BlockLength:
# Ruduce this... Max: 25
Max: 27