forked from fastlane-old/gym
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop_general.yml
113 lines (84 loc) · 1.92 KB
/
.rubocop_general.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
105
106
107
108
109
110
111
112
113
Style/ClassCheck:
EnforcedStyle: kind_of?
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
Style/BracesAroundHashParameters:
Enabled: false
Lint/UselessAssignment:
Exclude:
- 'spec/**/*'
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
Style/IndentHash:
Enabled: false
Style/RaiseArgs:
EnforcedStyle: exploded
Style/DoubleNegation:
Enabled: false
Lint/HandleExceptions:
Enabled: false
# Cop supports --auto-correct.
Lint/UnusedBlockArgument:
Enabled: false
# Needed for $verbose
Style/GlobalVars:
Enabled: false
Style/FileName:
Enabled: false
# $? Exit
Style/SpecialGlobalVars:
Enabled: false
# the let(:key) { ... } should be allowed in tests
Lint/ParenthesesAsGroupedExpression:
Exclude:
- 'spec/**/*'
# options.rb might be large, we know that
Metrics/MethodLength:
Max: 60
Exclude:
- 'lib/*/options.rb'
Metrics/AbcSize:
Max: 60
Exclude:
- 'lib/*/options.rb'
# Both string notations are okay
Style/StringLiterals:
Enabled: false
# The %w might be confusing for new users
Style/WordArray:
MinSize: 19
# Not a good thing
Style/RedundantSelf:
Enabled: false
# raise and fail are both okay
Style/SignalException:
Enabled: false
# Better too much 'return' than one missing
Style/RedundantReturn:
Enabled: false
# Having if in the same line might not always be good
Style/IfUnlessModifier:
Enabled: false
# That looks wrong
Style/AlignHash:
Enabled: false
# and and or is okay
Style/AndOr:
Enabled: false
# Configuration parameters: CountComments.
Metrics/ClassLength:
Max: 320
Metrics/CyclomaticComplexity:
Max: 17
# Configuration parameters: AllowURI, URISchemes.
Metrics/LineLength:
Max: 370
# Configuration parameters: CountKeywordArgs.
Metrics/ParameterLists:
Max: 17
Metrics/PerceivedComplexity:
Max: 18
Style/DotPosition:
Enabled: false
Style/GuardClause:
Enabled: false