rubocop-github 0.13.0 → 0.16.2

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.
data/config/default.yml CHANGED
@@ -1,328 +1,2 @@
1
- require:
2
- - rubocop/cop/github
3
- - rubocop-performance
4
-
5
- AllCops:
6
- DisabledByDefault: true
7
-
8
- Bundler/DuplicatedGem:
9
- Enabled: true
10
-
11
- Bundler/OrderedGems:
12
- Enabled: true
13
-
14
- Layout/BlockAlignment:
15
- Enabled: true
16
-
17
- Layout/BlockEndNewline:
18
- Enabled: true
19
-
20
- Layout/ConditionPosition:
21
- Enabled: true
22
-
23
- Layout/DefEndAlignment:
24
- Enabled: true
25
-
26
- Layout/EndAlignment:
27
- Enabled: false
28
-
29
- Layout/EndOfLine:
30
- Enabled: true
31
-
32
- Layout/InitialIndentation:
33
- Enabled: true
34
-
35
- Layout/SpaceAfterColon:
36
- Enabled: true
37
-
38
- Layout/SpaceAfterComma:
39
- Enabled: true
40
-
41
- Layout/SpaceAfterMethodName:
42
- Enabled: true
43
-
44
- Layout/SpaceAfterNot:
45
- Enabled: true
46
-
47
- Layout/SpaceAfterSemicolon:
48
- Enabled: true
49
-
50
- Layout/SpaceAroundBlockParameters:
51
- Enabled: true
52
-
53
- Layout/SpaceAroundEqualsInParameterDefault:
54
- Enabled: true
55
-
56
- Layout/SpaceBeforeBlockBraces:
57
- Enabled: true
58
-
59
- Layout/SpaceInsideArrayLiteralBrackets:
60
- Enabled: true
61
- EnforcedStyle: no_space
62
-
63
- Layout/SpaceInsideArrayPercentLiteral:
64
- Enabled: true
65
-
66
- Layout/SpaceInsideBlockBraces:
67
- Enabled: true
68
-
69
- Layout/SpaceInsideParens:
70
- Enabled: true
71
-
72
- Layout/SpaceInsideRangeLiteral:
73
- Enabled: true
74
-
75
- Layout/SpaceInsideReferenceBrackets:
76
- Enabled: true
77
-
78
- Layout/Tab:
79
- Enabled: true
80
-
81
- Layout/TrailingBlankLines:
82
- Enabled: true
83
-
84
- Layout/TrailingWhitespace:
85
- Enabled: true
86
-
87
- Lint/CircularArgumentReference:
88
- Enabled: true
89
-
90
- Lint/Debugger:
91
- Enabled: true
92
-
93
- Lint/DeprecatedClassMethods:
94
- Enabled: true
95
-
96
- Lint/DuplicateMethods:
97
- Enabled: true
98
-
99
- Lint/DuplicatedKey:
100
- Enabled: true
101
-
102
- Lint/EachWithObjectArgument:
103
- Enabled: true
104
-
105
- Lint/ElseLayout:
106
- Enabled: true
107
-
108
- Lint/EmptyEnsure:
109
- Enabled: true
110
-
111
- Lint/EmptyInterpolation:
112
- Enabled: true
113
-
114
- Lint/EndInMethod:
115
- Enabled: true
116
-
117
- Lint/EnsureReturn:
118
- Enabled: true
119
-
120
- Lint/FlipFlop:
121
- Enabled: true
122
-
123
- Lint/FloatOutOfRange:
124
- Enabled: true
125
-
126
- Lint/FormatParameterMismatch:
127
- Enabled: true
128
-
129
- Lint/LiteralAsCondition:
130
- Enabled: true
131
-
132
- Lint/LiteralInInterpolation:
133
- Enabled: true
134
-
135
- Lint/Loop:
136
- Enabled: true
137
-
138
- Lint/NextWithoutAccumulator:
139
- Enabled: true
140
-
141
- Lint/RandOne:
142
- Enabled: true
143
-
144
- Lint/RequireParentheses:
145
- Enabled: true
146
-
147
- Lint/RescueException:
148
- Enabled: true
149
-
150
- Lint/StringConversionInInterpolation:
151
- Enabled: true
152
-
153
- Lint/UnderscorePrefixedVariableName:
154
- Enabled: true
155
-
156
- Lint/UnneededCopDisableDirective:
157
- Enabled: true
158
-
159
- Lint/UnneededSplatExpansion:
160
- Enabled: true
161
-
162
- Lint/UnreachableCode:
163
- Enabled: true
164
-
165
- Lint/UselessComparison:
166
- Enabled: true
167
-
168
- Lint/UselessSetterCall:
169
- Enabled: true
170
-
171
- Lint/Void:
172
- Enabled: true
173
-
174
- Metrics/AbcSize:
175
- Enabled: false
176
-
177
- Metrics/BlockLength:
178
- Enabled: false
179
-
180
- Metrics/BlockNesting:
181
- Enabled: false
182
-
183
- Metrics/ClassLength:
184
- Enabled: false
185
-
186
- Metrics/CyclomaticComplexity:
187
- Enabled: false
188
-
189
- Metrics/LineLength:
190
- Enabled: false
191
-
192
- Metrics/MethodLength:
193
- Enabled: false
194
-
195
- Metrics/ModuleLength:
196
- Enabled: false
197
-
198
- Metrics/ParameterLists:
199
- Enabled: false
200
-
201
- Metrics/PerceivedComplexity:
202
- Enabled: false
203
-
204
- Naming/AsciiIdentifiers:
205
- Enabled: true
206
-
207
- Naming/ClassAndModuleCamelCase:
208
- Enabled: true
209
-
210
- Naming/FileName:
211
- Enabled: true
212
-
213
- Naming/MethodName:
214
- Enabled: true
215
-
216
- Performance/CaseWhenSplat:
217
- Enabled: false
218
-
219
- Performance/Count:
220
- Enabled: true
221
-
222
- Performance/Detect:
223
- Enabled: true
224
-
225
- Performance/DoubleStartEndWith:
226
- Enabled: true
227
-
228
- Performance/EndWith:
229
- Enabled: true
230
-
231
- Performance/FlatMap:
232
- Enabled: true
233
-
234
- Performance/RangeInclude:
235
- Enabled: false
236
-
237
- Performance/RedundantMatch:
238
- Enabled: false
239
-
240
- Performance/RedundantMerge:
241
- Enabled: true
242
- MaxKeyValuePairs: 1
243
-
244
- Performance/ReverseEach:
245
- Enabled: true
246
-
247
- Performance/Size:
248
- Enabled: true
249
-
250
- Performance/StartWith:
251
- Enabled: true
252
-
253
- Security/Eval:
254
- Enabled: true
255
-
256
- Style/ArrayJoin:
257
- Enabled: true
258
-
259
- Style/BeginBlock:
260
- Enabled: true
261
-
262
- Style/BlockComments:
263
- Enabled: true
264
-
265
- Style/CaseEquality:
266
- Enabled: true
267
-
268
- Style/CharacterLiteral:
269
- Enabled: true
270
-
271
- Style/ClassMethods:
272
- Enabled: true
273
-
274
- Style/Copyright:
275
- Enabled: false
276
-
277
- Style/DefWithParentheses:
278
- Enabled: true
279
-
280
- Style/EndBlock:
281
- Enabled: true
282
-
283
- Style/For:
284
- Enabled: true
285
-
286
- Style/FrozenStringLiteralComment:
287
- Enabled: true
288
-
289
- Style/HashSyntax:
290
- Enabled: true
291
- EnforcedStyle: ruby19_no_mixed_keys
292
-
293
- Style/LambdaCall:
294
- Enabled: true
295
-
296
- Style/MethodCallWithoutArgsParentheses:
297
- Enabled: true
298
-
299
- Style/MethodDefParentheses:
300
- Enabled: true
301
-
302
- Style/MultilineIfThen:
303
- Enabled: true
304
-
305
- Style/NilComparison:
306
- Enabled: true
307
-
308
- Style/Not:
309
- Enabled: true
310
-
311
- Style/OneLineConditional:
312
- Enabled: true
313
-
314
- Style/RedundantSortBy:
315
- Enabled: true
316
-
317
- Style/Sample:
318
- Enabled: true
319
-
320
- Style/StabbyLambdaParentheses:
321
- Enabled: true
322
-
323
- Style/StringLiterals:
324
- Enabled: true
325
- EnforcedStyle: double_quotes
326
-
327
- Style/Strip:
328
- Enabled: true
1
+ # Inherit from default_deprecated until 1.0
2
+ inherit_from: default_deprecated.yml
@@ -0,0 +1,4 @@
1
+ inherit_from: _default_shared.yml
2
+
3
+ AllCops:
4
+ DisabledByDefault: true
@@ -0,0 +1,4 @@
1
+ inherit_from: _default_shared.yml
2
+
3
+ require:
4
+ - rubocop-performance
data/config/rails.yml CHANGED
@@ -1,122 +1,2 @@
1
- Rails:
2
- Enabled: true
3
-
4
- Rails/FindEach:
5
- Enabled: false
6
-
7
- Rails/OutputSafety:
8
- Enabled: true
9
-
10
- Rails/PluralizationGrammar:
11
- Enabled: true
12
-
13
- Rails/RequestReferer:
14
- Enabled: true
15
- EnforcedStyle: referrer
16
-
17
- Rails/ScopeArgs:
18
- Enabled: true
19
-
20
- Rails/UniqBeforePluck:
21
- Enabled: true
22
-
23
- GitHub/RailsApplicationRecord:
24
- Enabled: true
25
-
26
- GitHub/RailsControllerRenderActionSymbol:
27
- Enabled: true
28
- Include:
29
- - 'app/controllers/**/*.rb'
30
-
31
- GitHub/RailsControllerRenderLiteral:
32
- Enabled: true
33
- StyleGuide: https://github.com/github/rubocop-github/blob/master/guides/rails-render-literal.md
34
- Include:
35
- - 'app/controllers/**/*.rb'
36
-
37
- GitHub/RailsControllerRenderPathsExist:
38
- Enabled: true
39
- ViewPath:
40
- - 'app/views'
41
- Include:
42
- - 'app/controllers/**/*.rb'
43
-
44
- GitHub/RailsControllerRenderShorthand:
45
- Enabled: true
46
- StyleGuide: https://github.com/github/rubocop-github/blob/master/guides/rails-controller-render-shorthand.md
47
- Include:
48
- - 'app/controllers/**/*.rb'
49
-
50
- GitHub/RailsRenderInline:
51
- Enabled: true
52
- StyleGuide: https://github.com/github/rubocop-github/blob/master/guides/rails-controller-render-inline.md
53
- Include:
54
- - 'app/controllers/**/*.rb'
55
- - 'app/helpers/**/*.rb'
56
- - 'app/view_models/**/*.rb'
57
- - 'app/views/**/*.erb'
58
-
59
- GitHub/RailsRenderObjectCollection:
60
- Enabled: false
61
-
62
- GitHub/RailsViewRenderLiteral:
63
- Enabled: true
64
- StyleGuide: https://github.com/github/rubocop-github/blob/master/guides/rails-render-literal.md
65
- Include:
66
- - 'app/helpers/**/*.rb'
67
- - 'app/view_models/**/*.rb'
68
- - 'app/views/**/*.erb'
69
-
70
- GitHub/RailsViewRenderPathsExist:
71
- Enabled: true
72
- ViewPath:
73
- - 'app/views'
74
- Include:
75
- - 'app/helpers/**/*.rb'
76
- - 'app/view_models/**/*.rb'
77
- - 'app/views/**/*.erb'
78
-
79
- GitHub/RailsViewRenderShorthand:
80
- Enabled: true
81
- Include:
82
- - 'app/helpers/**/*.rb'
83
- - 'app/view_models/**/*.rb'
84
- - 'app/views/**/*.erb'
85
-
86
- # Exclude Rails ERB files from incompatible cops
87
-
88
- Layout/BlockAlignment:
89
- Exclude:
90
- - 'app/views/**/*.erb'
91
-
92
- Style/For:
93
- Exclude:
94
- - 'app/views/**/*.erb'
95
-
96
- Style/OneLineConditional:
97
- Exclude:
98
- - 'app/views/**/*.erb'
99
-
100
- Style/Semicolon:
101
- Exclude:
102
- - 'app/views/**/*.erb'
103
-
104
- Layout/SpaceInsideParens:
105
- Exclude:
106
- - 'app/views/**/*.erb'
107
-
108
- Style/StringLiterals:
109
- Exclude:
110
- - 'app/views/**/*.erb'
111
-
112
- Layout/TrailingBlankLines:
113
- Exclude:
114
- - 'app/views/**/*.erb'
115
-
116
- Layout/TrailingWhitespace:
117
- Exclude:
118
- - 'app/views/**/*.erb'
119
-
120
- Layout/InitialIndentation:
121
- Exclude:
122
- - 'app/views/**/*.erb'
1
+ # Inherit from rails_deprecated until 1.0
2
+ inherit_from: rails_deprecated.yml