forked from edestecd/puppet-software
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
61 lines (49 loc) · 1.2 KB
/
.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# 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/AbcSize:
# Ruduce this... Max: 15
Max: 30
Metrics/CyclomaticComplexity:
# Ruduce this... Max: 6
Max: 8
Metrics/LineLength:
# Ruduce this... Max: 80
Max: 111
Metrics/MethodLength:
# Ruduce this... Max: 10
Max: 28
Metrics/BlockLength:
# Ruduce this... Max: 25
Max: 89
##################### Bundler #############################
Bundler/DuplicatedGem:
Enabled: false