quero-rubocop-config 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/default.yml +20 -0
- data/lib/quero-rubocop-config/config/.rubocop/layout.yml +298 -0
- data/lib/quero-rubocop-config/config/.rubocop/lint.yml +277 -0
- data/lib/quero-rubocop-config/config/.rubocop/metrics.yml +29 -0
- data/lib/quero-rubocop-config/config/.rubocop/naming.yml +61 -0
- data/lib/quero-rubocop-config/config/.rubocop/performance.yml +38 -0
- data/lib/quero-rubocop-config/config/.rubocop/rails.yml +65 -0
- data/lib/quero-rubocop-config/config/.rubocop/style.yml +85 -0
- data/lib/quero-rubocop-config/version.rb +5 -0
- data/lib/quero-rubocop-config.rb +23 -0
- metadata +97 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 1ad0902833a7e667aade375d5313fc7b93a8e97549d80cd6f33cd4ab822e275a
|
4
|
+
data.tar.gz: 0170a9115537e267412d2294a07422f782a47fd942cea1a8ef3f8c6612d95281
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 10fd359708bc5f8e70d8e3afb631c8ba4db9bf486003d77c90515003961c9a61320a90f3a45089b6b7e40494a29d2f624217db01539691008c24e2cd61c26c66
|
7
|
+
data.tar.gz: '0964592f37c049d355d5efd09c5291e5ee4b4eddf21eb9498571b081f3d9e5d204ae5fcfbed2f13595212bd101b4ea9663c36d148544d4c932ae0f0b2362e8be'
|
data/default.yml
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
inherit_from:
|
2
|
+
- <%= File.expand_path(File.join(__dir__, 'lib', 'quero-rubocop-config', 'config', '.rubocop', 'layout.yml')) %>
|
3
|
+
- <%= File.expand_path(File.join(__dir__, 'lib', 'quero-rubocop-config', 'config', '.rubocop', 'lint.yml')) %>
|
4
|
+
- <%= File.expand_path(File.join(__dir__, 'lib', 'quero-rubocop-config', 'config', '.rubocop', 'metrics.yml')) %>
|
5
|
+
- <%= File.expand_path(File.join(__dir__, 'lib', 'quero-rubocop-config', 'config', '.rubocop', 'naming.yml')) %>
|
6
|
+
- <%= File.expand_path(File.join(__dir__, 'lib', 'quero-rubocop-config', 'config', '.rubocop', 'performance.yml')) %>
|
7
|
+
- <%= File.expand_path(File.join(__dir__, 'lib', 'quero-rubocop-config', 'config', '.rubocop', 'style.yml')) %>
|
8
|
+
- <%= File.expand_path(File.join(__dir__, 'lib', 'quero-rubocop-config', 'config', '.rubocop', 'rails.yml')) %>
|
9
|
+
|
10
|
+
plugins:
|
11
|
+
- rubocop-performance
|
12
|
+
- rubocop-rails
|
13
|
+
|
14
|
+
AllCops:
|
15
|
+
NewCops: enable
|
16
|
+
DisabledByDefault: true
|
17
|
+
SuggestExtensions: false
|
18
|
+
|
19
|
+
Security/Eval:
|
20
|
+
Enabled: true
|
@@ -0,0 +1,298 @@
|
|
1
|
+
Layout/AccessModifierIndentation:
|
2
|
+
Enabled: true
|
3
|
+
EnforcedStyle: indent
|
4
|
+
|
5
|
+
Layout/ArrayAlignment:
|
6
|
+
Enabled: true
|
7
|
+
|
8
|
+
Layout/HashAlignment:
|
9
|
+
Enabled: true
|
10
|
+
EnforcedHashRocketStyle: key
|
11
|
+
EnforcedColonStyle: key
|
12
|
+
EnforcedLastArgumentHashStyle: always_inspect
|
13
|
+
|
14
|
+
Layout/ParameterAlignment:
|
15
|
+
Enabled: true
|
16
|
+
EnforcedStyle: with_first_parameter
|
17
|
+
|
18
|
+
Layout/BlockAlignment:
|
19
|
+
Enabled: true
|
20
|
+
EnforcedStyleAlignWith: either
|
21
|
+
|
22
|
+
Layout/BlockEndNewline:
|
23
|
+
Enabled: true
|
24
|
+
|
25
|
+
Layout/CaseIndentation:
|
26
|
+
Enabled: true
|
27
|
+
EnforcedStyle: case
|
28
|
+
|
29
|
+
# TODO: definir estrutura de classes comuns e modelos ActiveRecord
|
30
|
+
Layout/ClassStructure:
|
31
|
+
Enabled: false
|
32
|
+
|
33
|
+
Layout/ClosingParenthesisIndentation:
|
34
|
+
Enabled: true
|
35
|
+
|
36
|
+
Layout/CommentIndentation:
|
37
|
+
Enabled: true
|
38
|
+
|
39
|
+
Layout/ConditionPosition:
|
40
|
+
Enabled: true
|
41
|
+
|
42
|
+
Layout/DefEndAlignment:
|
43
|
+
Enabled: true
|
44
|
+
|
45
|
+
Layout/DotPosition:
|
46
|
+
Enabled: false
|
47
|
+
EnforcedStyle: leading
|
48
|
+
|
49
|
+
Layout/ElseAlignment:
|
50
|
+
Enabled: true
|
51
|
+
|
52
|
+
Layout/EmptyComment:
|
53
|
+
Enabled: true
|
54
|
+
AllowBorderComment: true
|
55
|
+
AllowMarginComment: true
|
56
|
+
|
57
|
+
Layout/EmptyLineAfterGuardClause:
|
58
|
+
Enabled: false
|
59
|
+
|
60
|
+
Layout/EmptyLineAfterMagicComment:
|
61
|
+
Enabled: true
|
62
|
+
|
63
|
+
Layout/EmptyLineBetweenDefs:
|
64
|
+
Enabled: true
|
65
|
+
AllowAdjacentOneLineDefs: false
|
66
|
+
NumberOfEmptyLines: 1
|
67
|
+
|
68
|
+
Layout/EmptyLines:
|
69
|
+
Enabled: true
|
70
|
+
|
71
|
+
Layout/EmptyLinesAroundAccessModifier:
|
72
|
+
Enabled: true
|
73
|
+
|
74
|
+
Layout/EmptyLinesAroundArguments:
|
75
|
+
Enabled: true
|
76
|
+
|
77
|
+
Layout/EmptyLinesAroundBeginBody:
|
78
|
+
Enabled: true
|
79
|
+
|
80
|
+
Layout/EmptyLinesAroundBlockBody:
|
81
|
+
Enabled: true
|
82
|
+
EnforcedStyle: no_empty_lines
|
83
|
+
|
84
|
+
Layout/EmptyLinesAroundClassBody:
|
85
|
+
Enabled: true
|
86
|
+
EnforcedStyle: no_empty_lines
|
87
|
+
|
88
|
+
Layout/EmptyLinesAroundExceptionHandlingKeywords:
|
89
|
+
Enabled: true
|
90
|
+
|
91
|
+
Layout/EmptyLinesAroundMethodBody:
|
92
|
+
Enabled: true
|
93
|
+
|
94
|
+
Layout/EmptyLinesAroundModuleBody:
|
95
|
+
Enabled: true
|
96
|
+
EnforcedStyle: no_empty_lines
|
97
|
+
|
98
|
+
Layout/EndAlignment:
|
99
|
+
Enabled: true
|
100
|
+
EnforcedStyleAlignWith: keyword
|
101
|
+
|
102
|
+
Layout/EndOfLine:
|
103
|
+
Enabled: true
|
104
|
+
EnforcedStyle: native
|
105
|
+
|
106
|
+
Layout/ExtraSpacing:
|
107
|
+
Enabled: true
|
108
|
+
AllowForAlignment: false
|
109
|
+
ForceEqualSignAlignment: false
|
110
|
+
|
111
|
+
Layout/FirstArrayElementLineBreak:
|
112
|
+
Enabled: false
|
113
|
+
|
114
|
+
Layout/FirstHashElementLineBreak:
|
115
|
+
Enabled: false
|
116
|
+
|
117
|
+
Layout/FirstMethodArgumentLineBreak:
|
118
|
+
Enabled: false
|
119
|
+
|
120
|
+
Layout/FirstMethodParameterLineBreak:
|
121
|
+
Enabled: false
|
122
|
+
|
123
|
+
Layout/FirstArgumentIndentation:
|
124
|
+
Enabled: true
|
125
|
+
# EnforcedStyle: special_for_inner_method_call_in_parentheses comment until sourcelevel fix
|
126
|
+
|
127
|
+
Layout/FirstArrayElementIndentation:
|
128
|
+
Enabled: true
|
129
|
+
EnforcedStyle: consistent
|
130
|
+
|
131
|
+
Layout/AssignmentIndentation:
|
132
|
+
Enabled: true
|
133
|
+
|
134
|
+
Layout/FirstHashElementIndentation:
|
135
|
+
Enabled: true
|
136
|
+
EnforcedStyle: consistent
|
137
|
+
|
138
|
+
Layout/HeredocIndentation:
|
139
|
+
Enabled: true
|
140
|
+
|
141
|
+
Layout/IndentationConsistency:
|
142
|
+
Enabled: true
|
143
|
+
EnforcedStyle: normal
|
144
|
+
|
145
|
+
Layout/IndentationWidth:
|
146
|
+
Enabled: true
|
147
|
+
Width: 2
|
148
|
+
|
149
|
+
Layout/InitialIndentation:
|
150
|
+
Enabled: true
|
151
|
+
|
152
|
+
Layout/LeadingCommentSpace:
|
153
|
+
Enabled: true
|
154
|
+
|
155
|
+
Layout/MultilineArrayBraceLayout:
|
156
|
+
Enabled: true
|
157
|
+
EnforcedStyle: symmetrical
|
158
|
+
|
159
|
+
# TODO: investigate why this cop is not working
|
160
|
+
Layout/MultilineAssignmentLayout:
|
161
|
+
Enabled: false
|
162
|
+
EnforcedStyle: new_line
|
163
|
+
|
164
|
+
Layout/MultilineBlockLayout:
|
165
|
+
Enabled: true
|
166
|
+
|
167
|
+
Layout/MultilineHashBraceLayout:
|
168
|
+
Enabled: true
|
169
|
+
EnforcedStyle: symmetrical
|
170
|
+
|
171
|
+
Layout/MultilineMethodCallBraceLayout:
|
172
|
+
Enabled: true
|
173
|
+
EnforcedStyle: symmetrical
|
174
|
+
|
175
|
+
Layout/MultilineMethodCallIndentation:
|
176
|
+
Enabled: true
|
177
|
+
EnforcedStyle: indented
|
178
|
+
|
179
|
+
Layout/MultilineMethodDefinitionBraceLayout:
|
180
|
+
Enabled: true
|
181
|
+
EnforcedStyle: symmetrical
|
182
|
+
|
183
|
+
Layout/MultilineOperationIndentation:
|
184
|
+
Enabled: true
|
185
|
+
EnforcedStyle: indented
|
186
|
+
|
187
|
+
Layout/RescueEnsureAlignment:
|
188
|
+
Enabled: true
|
189
|
+
|
190
|
+
Layout/SpaceAfterColon:
|
191
|
+
Enabled: true
|
192
|
+
|
193
|
+
Layout/SpaceAfterComma:
|
194
|
+
Enabled: true
|
195
|
+
|
196
|
+
Layout/SpaceAfterMethodName:
|
197
|
+
Enabled: true
|
198
|
+
|
199
|
+
Layout/SpaceAfterNot:
|
200
|
+
Enabled: true
|
201
|
+
|
202
|
+
Layout/SpaceAfterSemicolon:
|
203
|
+
Enabled: true
|
204
|
+
|
205
|
+
Layout/SpaceAroundBlockParameters:
|
206
|
+
Enabled: true
|
207
|
+
EnforcedStyleInsidePipes: no_space
|
208
|
+
|
209
|
+
Layout/SpaceAroundEqualsInParameterDefault:
|
210
|
+
Enabled: true
|
211
|
+
EnforcedStyle: space
|
212
|
+
|
213
|
+
Layout/SpaceAroundKeyword:
|
214
|
+
Enabled: true
|
215
|
+
|
216
|
+
Layout/SpaceAroundOperators:
|
217
|
+
Enabled: true
|
218
|
+
|
219
|
+
Layout/SpaceBeforeBlockBraces:
|
220
|
+
Enabled: true
|
221
|
+
EnforcedStyle: space
|
222
|
+
EnforcedStyleForEmptyBraces: space
|
223
|
+
|
224
|
+
Layout/SpaceBeforeComma:
|
225
|
+
Enabled: true
|
226
|
+
|
227
|
+
Layout/SpaceBeforeComment:
|
228
|
+
Enabled: true
|
229
|
+
|
230
|
+
Layout/SpaceBeforeFirstArg:
|
231
|
+
Enabled: true
|
232
|
+
AllowForAlignment: false
|
233
|
+
|
234
|
+
Layout/SpaceBeforeSemicolon:
|
235
|
+
Enabled: true
|
236
|
+
|
237
|
+
Layout/SpaceInLambdaLiteral:
|
238
|
+
Enabled: true
|
239
|
+
EnforcedStyle: require_no_space
|
240
|
+
|
241
|
+
Layout/SpaceInsideArrayLiteralBrackets:
|
242
|
+
Enabled: true
|
243
|
+
EnforcedStyle: no_space
|
244
|
+
EnforcedStyleForEmptyBrackets: no_space
|
245
|
+
|
246
|
+
Layout/SpaceInsideArrayPercentLiteral:
|
247
|
+
Enabled: true
|
248
|
+
|
249
|
+
Layout/SpaceInsideBlockBraces:
|
250
|
+
Enabled: true
|
251
|
+
EnforcedStyle: space
|
252
|
+
EnforcedStyleForEmptyBraces: no_space
|
253
|
+
SpaceBeforeBlockParameters: true
|
254
|
+
|
255
|
+
Layout/SpaceInsideHashLiteralBraces:
|
256
|
+
Enabled: true
|
257
|
+
EnforcedStyle: space
|
258
|
+
EnforcedStyleForEmptyBraces: no_space
|
259
|
+
|
260
|
+
Layout/SpaceInsideParens:
|
261
|
+
Enabled: true
|
262
|
+
EnforcedStyle: no_space
|
263
|
+
|
264
|
+
Layout/SpaceInsidePercentLiteralDelimiters:
|
265
|
+
Enabled: true
|
266
|
+
|
267
|
+
Layout/SpaceInsideRangeLiteral:
|
268
|
+
Enabled: true
|
269
|
+
|
270
|
+
Layout/SpaceInsideReferenceBrackets:
|
271
|
+
Enabled: true
|
272
|
+
EnforcedStyle: no_space
|
273
|
+
EnforcedStyleForEmptyBrackets: no_space
|
274
|
+
|
275
|
+
Layout/SpaceInsideStringInterpolation:
|
276
|
+
Enabled: true
|
277
|
+
EnforcedStyle: no_space
|
278
|
+
|
279
|
+
Layout/IndentationStyle:
|
280
|
+
Enabled: true
|
281
|
+
|
282
|
+
Layout/TrailingEmptyLines:
|
283
|
+
Enabled: true
|
284
|
+
EnforcedStyle: final_newline
|
285
|
+
|
286
|
+
Layout/TrailingWhitespace:
|
287
|
+
Enabled: true
|
288
|
+
AllowInHeredoc: false
|
289
|
+
|
290
|
+
Layout/LineLength:
|
291
|
+
Enabled: false
|
292
|
+
Max: 900
|
293
|
+
|
294
|
+
Layout/SpaceBeforeBrackets:
|
295
|
+
Enabled: true
|
296
|
+
|
297
|
+
Layout/EmptyLinesAroundAttributeAccessor:
|
298
|
+
Enabled: true
|
@@ -0,0 +1,277 @@
|
|
1
|
+
Lint/AmbiguousBlockAssociation:
|
2
|
+
Enabled: true
|
3
|
+
|
4
|
+
Lint/AmbiguousOperator:
|
5
|
+
Enabled: true
|
6
|
+
|
7
|
+
Lint/AmbiguousRegexpLiteral:
|
8
|
+
Enabled: true
|
9
|
+
|
10
|
+
Lint/AssignmentInCondition:
|
11
|
+
Enabled: true
|
12
|
+
|
13
|
+
Lint/BigDecimalNew:
|
14
|
+
Enabled: true
|
15
|
+
|
16
|
+
Lint/BooleanSymbol:
|
17
|
+
Enabled: true
|
18
|
+
|
19
|
+
Lint/CircularArgumentReference:
|
20
|
+
Enabled: true
|
21
|
+
|
22
|
+
Lint/Debugger:
|
23
|
+
Enabled: true
|
24
|
+
|
25
|
+
Lint/DeprecatedClassMethods:
|
26
|
+
Enabled: true
|
27
|
+
|
28
|
+
Lint/DuplicateCaseCondition:
|
29
|
+
Enabled: true
|
30
|
+
|
31
|
+
Lint/DuplicateMethods:
|
32
|
+
Enabled: true
|
33
|
+
|
34
|
+
Lint/DuplicateHashKey:
|
35
|
+
Enabled: true
|
36
|
+
|
37
|
+
Lint/EachWithObjectArgument:
|
38
|
+
Enabled: true
|
39
|
+
|
40
|
+
Lint/ElseLayout:
|
41
|
+
Enabled: true
|
42
|
+
|
43
|
+
Lint/EmptyEnsure:
|
44
|
+
Enabled: true
|
45
|
+
|
46
|
+
Lint/EmptyExpression:
|
47
|
+
Enabled: true
|
48
|
+
|
49
|
+
Lint/EmptyInterpolation:
|
50
|
+
Enabled: true
|
51
|
+
|
52
|
+
Lint/EmptyWhen:
|
53
|
+
Enabled: true
|
54
|
+
|
55
|
+
Style/EndBlock:
|
56
|
+
Enabled: true
|
57
|
+
|
58
|
+
Lint/EnsureReturn:
|
59
|
+
Enabled: true
|
60
|
+
|
61
|
+
Lint/ErbNewArguments:
|
62
|
+
Enabled: true
|
63
|
+
|
64
|
+
Lint/FloatOutOfRange:
|
65
|
+
Enabled: true
|
66
|
+
|
67
|
+
Lint/FormatParameterMismatch:
|
68
|
+
Enabled: true
|
69
|
+
|
70
|
+
Lint/SuppressedException:
|
71
|
+
Enabled: true
|
72
|
+
|
73
|
+
Lint/ImplicitStringConcatenation:
|
74
|
+
Enabled: true
|
75
|
+
|
76
|
+
Lint/IneffectiveAccessModifier:
|
77
|
+
Enabled: true
|
78
|
+
|
79
|
+
Lint/InheritException:
|
80
|
+
Enabled: true
|
81
|
+
|
82
|
+
Lint/InterpolationCheck:
|
83
|
+
Enabled: true
|
84
|
+
|
85
|
+
Lint/LiteralAsCondition:
|
86
|
+
Enabled: true
|
87
|
+
|
88
|
+
Lint/LiteralInInterpolation:
|
89
|
+
Enabled: true
|
90
|
+
|
91
|
+
Lint/Loop:
|
92
|
+
Enabled: true
|
93
|
+
|
94
|
+
Lint/MissingCopEnableDirective:
|
95
|
+
Enabled: true
|
96
|
+
|
97
|
+
Lint/MultipleComparison:
|
98
|
+
Enabled: true
|
99
|
+
|
100
|
+
Lint/NestedMethodDefinition:
|
101
|
+
Enabled: true
|
102
|
+
|
103
|
+
Lint/NestedPercentLiteral:
|
104
|
+
Enabled: true
|
105
|
+
|
106
|
+
Lint/NextWithoutAccumulator:
|
107
|
+
Enabled: true
|
108
|
+
|
109
|
+
Lint/NonLocalExitFromIterator:
|
110
|
+
Enabled: true
|
111
|
+
|
112
|
+
Lint/NumberConversion:
|
113
|
+
Enabled: false
|
114
|
+
|
115
|
+
Lint/OrderedMagicComments:
|
116
|
+
Enabled: true
|
117
|
+
|
118
|
+
Lint/ParenthesesAsGroupedExpression:
|
119
|
+
Enabled: true
|
120
|
+
|
121
|
+
Lint/PercentStringArray:
|
122
|
+
Enabled: true
|
123
|
+
|
124
|
+
Lint/PercentSymbolArray:
|
125
|
+
Enabled: true
|
126
|
+
|
127
|
+
Lint/RandOne:
|
128
|
+
Enabled: true
|
129
|
+
|
130
|
+
Lint/RedundantWithIndex:
|
131
|
+
Enabled: true
|
132
|
+
|
133
|
+
Lint/RedundantWithObject:
|
134
|
+
Enabled: true
|
135
|
+
|
136
|
+
Lint/RegexpAsCondition:
|
137
|
+
Enabled: true
|
138
|
+
|
139
|
+
Lint/RequireParentheses:
|
140
|
+
Enabled: true
|
141
|
+
|
142
|
+
Lint/RescueException:
|
143
|
+
Enabled: true
|
144
|
+
|
145
|
+
Lint/RescueType:
|
146
|
+
Enabled: true
|
147
|
+
|
148
|
+
Lint/ReturnInVoidContext:
|
149
|
+
Enabled: true
|
150
|
+
|
151
|
+
Lint/SafeNavigationChain:
|
152
|
+
Enabled: true
|
153
|
+
|
154
|
+
Lint/SafeNavigationConsistency:
|
155
|
+
Enabled: true
|
156
|
+
|
157
|
+
Lint/ScriptPermission:
|
158
|
+
Enabled: true
|
159
|
+
|
160
|
+
Lint/ShadowedArgument:
|
161
|
+
Enabled: true
|
162
|
+
|
163
|
+
Lint/ShadowedException:
|
164
|
+
Enabled: true
|
165
|
+
|
166
|
+
Lint/ShadowingOuterLocalVariable:
|
167
|
+
Enabled: true
|
168
|
+
|
169
|
+
Lint/RedundantStringCoercion:
|
170
|
+
Enabled: true
|
171
|
+
|
172
|
+
Lint/Syntax:
|
173
|
+
Enabled: true
|
174
|
+
|
175
|
+
Lint/UnderscorePrefixedVariableName:
|
176
|
+
Enabled: true
|
177
|
+
|
178
|
+
Lint/UnifiedInteger:
|
179
|
+
Enabled: true
|
180
|
+
|
181
|
+
Lint/RedundantCopDisableDirective:
|
182
|
+
Enabled: true
|
183
|
+
|
184
|
+
Lint/RedundantCopEnableDirective:
|
185
|
+
Enabled: true
|
186
|
+
|
187
|
+
Lint/RedundantRequireStatement:
|
188
|
+
Enabled: true
|
189
|
+
|
190
|
+
Lint/RedundantSplatExpansion:
|
191
|
+
Enabled: true
|
192
|
+
|
193
|
+
Lint/UnreachableCode:
|
194
|
+
Enabled: true
|
195
|
+
|
196
|
+
Lint/UnusedBlockArgument:
|
197
|
+
Enabled: true
|
198
|
+
|
199
|
+
Lint/UnusedMethodArgument:
|
200
|
+
Enabled: true
|
201
|
+
|
202
|
+
Lint/UriEscapeUnescape:
|
203
|
+
Enabled: true
|
204
|
+
|
205
|
+
Lint/UriRegexp:
|
206
|
+
Enabled: true
|
207
|
+
|
208
|
+
Lint/UselessAccessModifier:
|
209
|
+
Enabled: true
|
210
|
+
|
211
|
+
Lint/UselessAssignment:
|
212
|
+
Enabled: true
|
213
|
+
|
214
|
+
Lint/BinaryOperatorWithIdenticalOperands:
|
215
|
+
Enabled: true
|
216
|
+
|
217
|
+
Lint/UselessElseWithoutRescue:
|
218
|
+
Enabled: true
|
219
|
+
|
220
|
+
Lint/UselessSetterCall:
|
221
|
+
Enabled: true
|
222
|
+
|
223
|
+
Lint/Void:
|
224
|
+
Enabled: true
|
225
|
+
|
226
|
+
Lint/AmbiguousAssignment:
|
227
|
+
Enabled: true
|
228
|
+
|
229
|
+
# Lint/DeprecatedConstants:
|
230
|
+
# Enabled: true
|
231
|
+
|
232
|
+
Lint/DuplicateRegexpCharacterClassElement:
|
233
|
+
Enabled: true
|
234
|
+
|
235
|
+
Lint/EmptyBlock:
|
236
|
+
Enabled: true
|
237
|
+
|
238
|
+
Lint/EmptyClass:
|
239
|
+
Enabled: true
|
240
|
+
|
241
|
+
# Lint/LambdaWithoutLiteralBlock:
|
242
|
+
# Enabled: true
|
243
|
+
|
244
|
+
Lint/NoReturnInBeginEndBlocks:
|
245
|
+
Enabled: true
|
246
|
+
|
247
|
+
# Lint/NumberedParameterAssignment:
|
248
|
+
# Enabled: true
|
249
|
+
|
250
|
+
# Lint/OrAssignmentToConstant:
|
251
|
+
# Enabled: true
|
252
|
+
|
253
|
+
# Lint/RedundantDirGlobSort:
|
254
|
+
# Enabled: true
|
255
|
+
|
256
|
+
# Lint/SymbolConversion:
|
257
|
+
# Enabled: true
|
258
|
+
|
259
|
+
Lint/ToEnumArguments:
|
260
|
+
Enabled: true
|
261
|
+
|
262
|
+
# Lint/TripleQuotes:
|
263
|
+
# Enabled: true
|
264
|
+
|
265
|
+
Lint/UnexpectedBlockArity:
|
266
|
+
Enabled: true
|
267
|
+
|
268
|
+
Lint/UnmodifiedReduceAccumulator:
|
269
|
+
Enabled: true
|
270
|
+
|
271
|
+
Lint/EmptyFile:
|
272
|
+
Enabled: true
|
273
|
+
|
274
|
+
Lint/DuplicateBranch:
|
275
|
+
Enabled: true
|
276
|
+
IgnoreLiteralBranches: true
|
277
|
+
IgnoreConstantBranches: true
|
@@ -0,0 +1,29 @@
|
|
1
|
+
Metrics/AbcSize:
|
2
|
+
Enabled: false
|
3
|
+
|
4
|
+
Metrics/BlockNesting:
|
5
|
+
Enabled: true
|
6
|
+
Max: 4
|
7
|
+
|
8
|
+
Metrics/ClassLength:
|
9
|
+
Enabled: true
|
10
|
+
Max: 250
|
11
|
+
|
12
|
+
Metrics/CyclomaticComplexity:
|
13
|
+
Enabled: true
|
14
|
+
Max: 8
|
15
|
+
|
16
|
+
Metrics/MethodLength:
|
17
|
+
Enabled: false
|
18
|
+
|
19
|
+
Metrics/ModuleLength:
|
20
|
+
Enabled: false
|
21
|
+
|
22
|
+
Metrics/ParameterLists:
|
23
|
+
Enabled: true
|
24
|
+
|
25
|
+
Metrics/PerceivedComplexity:
|
26
|
+
Enabled: false
|
27
|
+
|
28
|
+
Metrics/BlockLength:
|
29
|
+
Enabled: false
|
@@ -0,0 +1,61 @@
|
|
1
|
+
Naming/AccessorMethodName:
|
2
|
+
Enabled: true
|
3
|
+
|
4
|
+
Naming/AsciiIdentifiers:
|
5
|
+
Enabled: true
|
6
|
+
|
7
|
+
Naming/BinaryOperatorParameterName:
|
8
|
+
Enabled: true
|
9
|
+
|
10
|
+
Naming/ClassAndModuleCamelCase:
|
11
|
+
Enabled: true
|
12
|
+
|
13
|
+
Naming/ConstantName:
|
14
|
+
Enabled: true
|
15
|
+
|
16
|
+
Naming/FileName:
|
17
|
+
Enabled: true
|
18
|
+
|
19
|
+
Naming/HeredocDelimiterCase:
|
20
|
+
Enabled: true
|
21
|
+
EnforcedStyle: uppercase
|
22
|
+
|
23
|
+
Naming/HeredocDelimiterNaming:
|
24
|
+
Enabled: false
|
25
|
+
|
26
|
+
Naming/MemoizedInstanceVariableName:
|
27
|
+
Enabled: true
|
28
|
+
EnforcedStyleForLeadingUnderscores: disallowed
|
29
|
+
|
30
|
+
Naming/MethodName:
|
31
|
+
Enabled: true
|
32
|
+
EnforcedStyle: snake_case
|
33
|
+
|
34
|
+
Naming/PredicateName:
|
35
|
+
Enabled: false
|
36
|
+
|
37
|
+
Naming/BlockParameterName:
|
38
|
+
Enabled: false
|
39
|
+
|
40
|
+
Naming/MethodParameterName:
|
41
|
+
Enabled: true
|
42
|
+
AllowedNames:
|
43
|
+
- e
|
44
|
+
- at
|
45
|
+
- by
|
46
|
+
- db
|
47
|
+
- id
|
48
|
+
- in
|
49
|
+
- io
|
50
|
+
- ip
|
51
|
+
- of
|
52
|
+
- on
|
53
|
+
- os
|
54
|
+
- pp
|
55
|
+
- to
|
56
|
+
Naming/VariableName:
|
57
|
+
Enabled: true
|
58
|
+
EnforcedStyle: snake_case
|
59
|
+
|
60
|
+
Naming/VariableNumber:
|
61
|
+
Enabled: false
|
@@ -0,0 +1,38 @@
|
|
1
|
+
Performance/AncestorsInclude:
|
2
|
+
Enabled: true
|
3
|
+
|
4
|
+
Performance/BigDecimalWithNumericArgument:
|
5
|
+
Enabled: true
|
6
|
+
|
7
|
+
# Performance/BlockGivenWithExplicitBlock:
|
8
|
+
# Enabled: true
|
9
|
+
|
10
|
+
# Performance/CollectionLiteralInLoop:
|
11
|
+
# Enabled: true
|
12
|
+
|
13
|
+
# Performance/ConstantRegexp:
|
14
|
+
# Enabled: true
|
15
|
+
|
16
|
+
# Performance/MethodObjectAsBlock:
|
17
|
+
# Enabled: true
|
18
|
+
|
19
|
+
Performance/RedundantSortBlock:
|
20
|
+
Enabled: true
|
21
|
+
|
22
|
+
Performance/RedundantStringChars:
|
23
|
+
Enabled: true
|
24
|
+
|
25
|
+
Performance/ReverseFirst:
|
26
|
+
Enabled: true
|
27
|
+
|
28
|
+
Performance/SortReverse:
|
29
|
+
Enabled: true
|
30
|
+
|
31
|
+
Performance/Squeeze:
|
32
|
+
Enabled: true
|
33
|
+
|
34
|
+
Performance/StringInclude:
|
35
|
+
Enabled: true
|
36
|
+
|
37
|
+
# Performance/Sum:
|
38
|
+
# Enabled: true
|
@@ -0,0 +1,65 @@
|
|
1
|
+
Rails/ActiveRecordCallbacksOrder:
|
2
|
+
Enabled: true
|
3
|
+
|
4
|
+
# Rails/AfterCommitOverride:
|
5
|
+
# Enabled: true
|
6
|
+
|
7
|
+
# Rails/AttributeDefaultBlockValue:
|
8
|
+
# Enabled: true
|
9
|
+
|
10
|
+
Rails/FindById:
|
11
|
+
Enabled: true
|
12
|
+
|
13
|
+
Rails/Inquiry:
|
14
|
+
Enabled: true
|
15
|
+
|
16
|
+
Rails/MailerName:
|
17
|
+
Enabled: true
|
18
|
+
|
19
|
+
Rails/MatchRoute:
|
20
|
+
Enabled: true
|
21
|
+
|
22
|
+
Rails/NegateInclude:
|
23
|
+
Enabled: true
|
24
|
+
|
25
|
+
Rails/Pluck:
|
26
|
+
Enabled: true
|
27
|
+
|
28
|
+
Rails/PluckInWhere:
|
29
|
+
Enabled: true
|
30
|
+
|
31
|
+
Rails/RenderInline:
|
32
|
+
Enabled: true
|
33
|
+
|
34
|
+
Rails/RenderPlainText:
|
35
|
+
Enabled: true
|
36
|
+
|
37
|
+
Rails/ShortI18n:
|
38
|
+
Enabled: true
|
39
|
+
|
40
|
+
# Rails/SquishedSQLHeredocs:
|
41
|
+
# Enabled: false
|
42
|
+
|
43
|
+
# Rails/WhereEquals:
|
44
|
+
# Enabled: true
|
45
|
+
|
46
|
+
Rails/WhereExists:
|
47
|
+
Enabled: true
|
48
|
+
|
49
|
+
# Rails/WhereNot:
|
50
|
+
# Enabled: true
|
51
|
+
|
52
|
+
Rails/HasManyOrHasOneDependent:
|
53
|
+
Enabled: false
|
54
|
+
|
55
|
+
Rails/SkipsModelValidations:
|
56
|
+
Enabled: false
|
57
|
+
|
58
|
+
# TODO: verifica se vai ser padrao para todos os projetos
|
59
|
+
# Rails/UnknownEnv:
|
60
|
+
# Enabled: true
|
61
|
+
# Environments:
|
62
|
+
# - development
|
63
|
+
# - test
|
64
|
+
# - staging
|
65
|
+
# - production
|
@@ -0,0 +1,85 @@
|
|
1
|
+
Style/ArgumentsForwarding:
|
2
|
+
Enabled: true
|
3
|
+
|
4
|
+
Style/CollectionCompact:
|
5
|
+
Enabled: true
|
6
|
+
|
7
|
+
Style/DocumentDynamicEvalDefinition:
|
8
|
+
Enabled: true
|
9
|
+
|
10
|
+
# Style/EndlessMethod:
|
11
|
+
# Enabled: true
|
12
|
+
|
13
|
+
# Style/HashConversion:
|
14
|
+
# Enabled: true
|
15
|
+
|
16
|
+
Style/HashExcept:
|
17
|
+
Enabled: true
|
18
|
+
|
19
|
+
# Style/IfWithBooleanLiteralBranches:
|
20
|
+
# Enabled: true
|
21
|
+
|
22
|
+
Style/NegatedIfElseCondition:
|
23
|
+
Enabled: false
|
24
|
+
|
25
|
+
Style/NilLambda:
|
26
|
+
Enabled: true
|
27
|
+
|
28
|
+
Style/RedundantArgument:
|
29
|
+
Enabled: true
|
30
|
+
|
31
|
+
Style/SwapValues:
|
32
|
+
Enabled: true
|
33
|
+
|
34
|
+
Style/FrozenStringLiteralComment:
|
35
|
+
Enabled: false
|
36
|
+
|
37
|
+
# Style/Documentation:
|
38
|
+
# Enabled: false
|
39
|
+
|
40
|
+
Style/ClassAndModuleChildren:
|
41
|
+
Enabled: false
|
42
|
+
|
43
|
+
Style/SymbolArray:
|
44
|
+
Enabled: true
|
45
|
+
EnforcedStyle: brackets
|
46
|
+
|
47
|
+
Style/IfUnlessModifier:
|
48
|
+
Enabled: false
|
49
|
+
|
50
|
+
Style/WordArray:
|
51
|
+
Enabled: true
|
52
|
+
EnforcedStyle: brackets
|
53
|
+
|
54
|
+
Style/TrailingCommaInArrayLiteral:
|
55
|
+
Enabled: true
|
56
|
+
EnforcedStyleForMultiline: comma
|
57
|
+
|
58
|
+
Style/TrailingCommaInHashLiteral:
|
59
|
+
Enabled: true
|
60
|
+
EnforcedStyleForMultiline: comma
|
61
|
+
|
62
|
+
Style/NegatedIf:
|
63
|
+
Enabled: false
|
64
|
+
|
65
|
+
Style/AsciiComments:
|
66
|
+
Enabled: false
|
67
|
+
|
68
|
+
Style/NumericLiterals:
|
69
|
+
Enabled: false
|
70
|
+
|
71
|
+
Style/Lambda:
|
72
|
+
Enabled: true
|
73
|
+
EnforcedStyle: literal
|
74
|
+
|
75
|
+
Style/Semicolon:
|
76
|
+
Enabled: true
|
77
|
+
AllowAsExpressionSeparator: true
|
78
|
+
|
79
|
+
Style/NumericPredicate:
|
80
|
+
Enabled: false
|
81
|
+
EnforcedStyle: comparison
|
82
|
+
|
83
|
+
Style/AndOr:
|
84
|
+
Enabled: true
|
85
|
+
EnforcedStyle: conditionals
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "quero-rubocop-config/version"
|
4
|
+
|
5
|
+
module QueroRubocopConfig
|
6
|
+
class Error < StandardError; end
|
7
|
+
|
8
|
+
def self.config_path
|
9
|
+
File.join(File.dirname(__FILE__), "quero-rubocop-config", "config")
|
10
|
+
end
|
11
|
+
|
12
|
+
def self.default_config_path
|
13
|
+
File.join(File.expand_path('../..', __FILE__), "default.yml")
|
14
|
+
end
|
15
|
+
|
16
|
+
def self.quero-rubocop-config_path
|
17
|
+
File.join(config_path, ".rubocop")
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
require "rubocop"
|
22
|
+
require "rubocop-performance"
|
23
|
+
require "rubocop-rails"
|
metadata
ADDED
@@ -0,0 +1,97 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: quero-rubocop-config
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.5
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- lucasolopes
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2025-05-16 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rubocop
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rubocop-performance
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rubocop-rails
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
description: Uma gem que fornece configurações RuboCop pré-definidas para manter consistência
|
56
|
+
entre projetos
|
57
|
+
email:
|
58
|
+
- olopes.lucas567@gmail.com
|
59
|
+
executables: []
|
60
|
+
extensions: []
|
61
|
+
extra_rdoc_files: []
|
62
|
+
files:
|
63
|
+
- default.yml
|
64
|
+
- lib/quero-rubocop-config.rb
|
65
|
+
- lib/quero-rubocop-config/config/.rubocop/layout.yml
|
66
|
+
- lib/quero-rubocop-config/config/.rubocop/lint.yml
|
67
|
+
- lib/quero-rubocop-config/config/.rubocop/metrics.yml
|
68
|
+
- lib/quero-rubocop-config/config/.rubocop/naming.yml
|
69
|
+
- lib/quero-rubocop-config/config/.rubocop/performance.yml
|
70
|
+
- lib/quero-rubocop-config/config/.rubocop/rails.yml
|
71
|
+
- lib/quero-rubocop-config/config/.rubocop/style.yml
|
72
|
+
- lib/quero-rubocop-config/version.rb
|
73
|
+
homepage: https://github.com/quero-edu/rubocop-config
|
74
|
+
licenses: []
|
75
|
+
metadata:
|
76
|
+
homepage_uri: https://github.com/quero-edu/rubocop-config
|
77
|
+
source_code_uri: https://github.com/quero-edu/rubocop-config
|
78
|
+
post_install_message:
|
79
|
+
rdoc_options: []
|
80
|
+
require_paths:
|
81
|
+
- lib
|
82
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
83
|
+
requirements:
|
84
|
+
- - ">="
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: 3.1.0
|
87
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
88
|
+
requirements:
|
89
|
+
- - ">="
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
version: '0'
|
92
|
+
requirements: []
|
93
|
+
rubygems_version: 3.3.7
|
94
|
+
signing_key:
|
95
|
+
specification_version: 4
|
96
|
+
summary: Configurações padronizadas do RuboCop para projetos Quero
|
97
|
+
test_files: []
|