-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy path.rubocop.yml
104 lines (75 loc) · 2.26 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# See default at https://github.com/bbatsov/rubocop/blob/master/config/default.yml
AllCops:
Exclude:
- 'examples/_client.rb'
- 'examples/_client_i3s.rb'
Metrics/ClassLength:
Max: 200
Exclude:
- 'lib/oneview-sdk/cli.rb'
- 'lib/oneview-sdk/resource.rb'
Metrics/LineLength:
Max: 150
Metrics/ModuleLength:
Max: 200
Exclude:
- 'lib/oneview-sdk/rest.rb'
Metrics/BlockLength:
Max: 200
Exclude:
- 'lib/oneview-sdk/rest.rb'
- 'spec/**/*'
Metrics/AbcSize:
Enabled: false
Metrics/CyclomaticComplexity:
Enabled: false
Metrics/MethodLength:
Enabled: false
Metrics/PerceivedComplexity:
Enabled: false
Style/GlobalVars:
AllowedVariables: [$config, $secrets, $client, $client_120, $client_300, $client_300_synergy, $config_synergy, $secrets_synergy, $config_i3s, $client_i3s_300, $client_500, $client_500_synergy, $client_i3s_500, $client_600, $client_600_synergy, $client_i3s_600, $client_800, $client_800_synergy, $client_1000, $client_1000_synergy, $client_1200, $client_1200_synergy, $client_1600, $client_1600_synergy, $client_1800, $client_1800_synergy, $client_2000, $client_2000_synergy, $client_2200, $client_2200_synergy, $client_2400, $client_2400_synergy, $client_2600, $client_2600_synergy, $client_2800, $client_2800_synergy, $client_3000, $client_3000_synergy]
Style/FrozenStringLiteralComment:
Enabled: false
Style/RescueModifier:
Enabled: false
Style/NestedParenthesizedCalls:
Enabled: false
Naming/VariableName:
EnforcedStyle: snake_case
Exclude:
- 'lib/oneview-sdk/resource/**/*'
Naming/VariableNumber:
Enabled: false
Naming/MethodName:
Exclude:
- 'lib/oneview-sdk/resource/**/*'
Naming/FileName:
Exclude:
- 'lib/oneview-sdk.rb'
- 'bin/oneview-sdk'
Naming/AccessorMethodName:
Enabled: false
Layout/AlignParameters:
Exclude:
- 'lib/oneview-sdk/cli.rb'
Layout/IndentationWidth:
Width: 2
Layout/EmptyLines:
Enabled: false
Layout/EndOfLine:
EnforcedStyle: lf
Layout/IndentArray:
Enabled: false
Layout/MultilineOperationIndentation:
Enabled: false
Layout/EmptyLinesAroundBlockBody:
Enabled: false
Layout/EmptyLinesAroundClassBody:
Enabled: false
Performance/Casecmp:
Enabled: false
Lint/RescueWithoutErrorClass:
Enabled: false
Lint/AmbiguousBlockAssociation:
Enabled: false