This repository has been archived by the owner on Jan 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.rubocop.yml
117 lines (83 loc) · 1.78 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
105
106
107
108
109
110
111
112
113
114
115
116
117
# This is the configuration used to check the rubocop source code.
require: rubocop-performance
AllCops:
TargetRubyVersion: 2.6.5
Exclude:
- 'node_modules/**/*'
- 'bin/**/*'
UseCache: true
CacheRootDirectory: ~
Style/FrozenStringLiteralComment:
Enabled: false
Metrics/AbcSize:
Max: 159
Metrics/BlockNesting:
Max: 2
Metrics/BlockLength:
Max: 1529
Layout/LineLength:
Include:
- 'app/**/*'
Max: 120
AllowURI: true
Lint/AssignmentInCondition:
AllowSafeAssignment: true
Style/AndOr:
EnforcedStyle: 'conditionals'
Style/CollectionMethods:
PreferredMethods:
collect: 'map'
collect!: 'map!'
inject: 'reduce'
detect: 'detect'
find_all: 'select'
Style/Documentation:
Enabled: false
Layout/DotPosition:
EnforcedStyle: 'trailing'
Style/WordArray:
MinSize: 3
Style/TrailingCommaInArrayLiteral:
EnforcedStyleForMultiline: 'comma'
Style/TrailingCommaInHashLiteral:
EnforcedStyleForMultiline: 'comma'
Style/TrailingCommaInArguments:
EnforcedStyleForMultiline: 'comma'
Style/HashSyntax:
EnforcedStyle: 'ruby19'
Performance/Casecmp:
Enabled: false
Style/IfUnlessModifier:
Enabled: false
Style/Lambda:
Enabled: false
Style/Alias:
Enabled: false
Style/RedundantInterpolation:
Enabled: false
Style/Next:
Enabled: false
Layout/ArgumentAlignment:
Enabled: false
Layout/ParameterAlignment:
Enabled: false
Layout/HashAlignment:
Enabled: false
Layout/MultilineMethodCallIndentation:
Enabled: false
Style/SignalException:
Enabled: false
Style/ZeroLengthPredicate:
Enabled: false
Metrics/ClassLength:
Enabled: false
Metrics/MethodLength:
Enabled: false
Metrics/ModuleLength:
Enabled: false
Style/CommentAnnotation:
Enabled: false
Style/SingleLineBlockParams:
Enabled: false
Lint/ToJSON:
Enabled: false