forked from criteo-forks/chef-kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
53 lines (43 loc) · 950 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
45
46
47
48
49
50
51
52
53
# This configuration was generated by `rubocop --auto-gen-config`.
# The point is for the user to remove these configuration records
# one by one as the offences are removed from the code base.
AllCops:
Include:
- Rakefile
- test/**/*.rb
BlockComments:
Enabled: false
Style/RescueModifier:
Exclude:
- 'Rakefile'
- 'libraries/helpers.rb'
LeadingCommentSpace:
Enabled: false
LineLength:
Enabled: false
# Longer classes are okay.
Metrics/BlockLength:
Max: 41
Metrics/LineLength:
Max: 172
Metrics/MethodLength:
Max: 30
Metrics/ModuleLength:
Max: 150
# We're not against complexity.
Metrics/AbcSize:
Max: 55
Metrics/CyclomaticComplexity:
Max: 20
Metrics/PerceivedComplexity:
Max: 20
# Mixlib::ShellOut is nice to have as an older hash syntax
Style/HashSyntax:
Enabled: false
Style/ClassAndModuleChildren:
Enabled: false
Style/FileName:
Exclude:
- 'Berksfile'
- 'Gemfile'
- 'Vagrantfile'