-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.rubocop.yml
69 lines (51 loc) · 1.3 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
62
63
64
65
66
67
68
69
inherit_from: .rubocop_todo.yml
AllCops:
Exclude:
- 'chef-provisioning-opennebula.gemspec'
AlignParameters:
Enabled: false
Encoding:
Enabled: false
LineLength:
Max: 200
MethodLength:
Max: 50
CyclomaticComplexity:
Max: 24
PerceivedComplexity:
Max: 20
ClassLength:
CountComments: false
Max: 1000
AbcSize:
Max: 62
ParameterLists:
Max: 15
CountKeywordArgs: true
StringLiterals:
Enabled: false
Style/SpecialGlobalVars:
Enabled: false
Style/SignalException:
Enabled: false
Style/FileName:
Enabled: false
Style/RescueModifier:
Description: 'Avoid using rescue in its modifier form.'
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-rescue-modifiers'
Enabled: false
Style/HashSyntax:
Description: >-
Prefer Ruby 1.9 hash syntax { a: 1, b: 2 } over 1.8 syntax
{ :a => 1, :b => 2 }.
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#hash-literals'
Enabled: false
Style/IndentHash:
Description: 'Checks the indentation of the first key in a hash literal.'
Enabled: false
Style/NumericLiterals:
Description: >-
Add underscores to large numeric literals to improve their
readability.
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#underscores-in-numerics'
Enabled: false