rubocop-standard 4.1.0 → 5.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 243a3cc506771cb7844333d253cb290a5e7dd62a44e5d2ac2bcd561d7d42816e
4
- data.tar.gz: 90db02c3fb8a0ed3eff385a76eb49693f679f9fd2a15c5e10e7987e507bbdccc
3
+ metadata.gz: 1fc7b0079a65fa4b081273c15ac9cbf4eed9a6e854546dae0117126627e9a6dd
4
+ data.tar.gz: 9c94df6882879407f3f11c53214f9cb08089544862bcf1c8f602335ce853c8ca
5
5
  SHA512:
6
- metadata.gz: ccbddccf85149ea8966afebd39e2ffae36db47e4fbe37327991d32e363cffd7e200017cf1847da66710950443337d38dcdeddd39c6b118a8c6dc51a799a477e9
7
- data.tar.gz: 28c697d3ffe2506269ec96349c2f947ca608fd35cd529531a6563d09d823fec5fda0832b34b750f5fb9a54d828462a93ecb956e56ba88aaaceb78f68220d2422
6
+ metadata.gz: 84f6f29ee924941a47a409accd48ca3696f2de892a46e4616aa707558d433bcd8cf1a9ad8376b08aced2fe86710d80d97384f35e355f2c2567437db934e25da1
7
+ data.tar.gz: '0187a6f62f06a1d64f485298c76870ffe9d203590ee3b17f9315df1ec32d06afa40fcc38b6028aa61625523713a845b3ea935129e80e56dd50c53c7aaa9c1c05'
File without changes
data/README.md CHANGED
@@ -1,22 +1,22 @@
1
- # RuboCop Standard [![Build Status](https://travis-ci.org/github/rubocop-standard.svg?branch=master)](https://travis-ci.org/github/rubocop-standard)
1
+ # RuboCop Standard
2
2
 
3
- This repository provides recommended RuboCop configuration and additional Cops for use, based initially on GitHub open source and internal Ruby projects.
3
+ This repository enables all the recommended RuboCop configurations, but disables the overly aggressive ones.
4
+
5
+ ## What's "overly aggressive"?
6
+
7
+ You know, all the ones about line length, method complexity, requiring documentation, etc.
4
8
 
5
9
  ## Installation
6
10
 
7
- **Gemfile**
11
+ ### Gemfile
8
12
 
9
13
  ``` ruby
10
14
  gem "rubocop-standard"
11
15
  ```
12
16
 
13
- **.rubocop.yml**
17
+ ### .rubocop.yml
14
18
 
15
19
  ``` yaml
16
20
  require:
17
21
  - rubocop-standard
18
22
  ```
19
-
20
- ## The Cops
21
-
22
- All cops are located under [`lib/rubocop/cop/standard`](lib/rubocop/cop/standard), and contain examples/documentation.
@@ -1,184 +1,20 @@
1
1
  require:
2
2
  - rubocop-performance
3
-
4
- Bundler/DuplicatedGem:
5
- Enabled: true
6
-
7
- Bundler/OrderedGems:
8
- Enabled: true
9
-
10
- Layout/BlockAlignment:
11
- Enabled: true
12
-
13
- Layout/BlockEndNewline:
14
- Enabled: true
15
-
16
- Layout/ConditionPosition:
17
- Enabled: true
18
-
19
- Layout/DefEndAlignment:
20
- Enabled: true
21
-
22
- Layout/EmptyLinesAroundAttributeAccessor:
23
- Enabled: true
24
-
25
- Layout/EndAlignment:
26
- Enabled: false
27
-
28
- Layout/EndOfLine:
29
- Enabled: true
30
-
31
- Layout/IndentationStyle:
32
- Enabled: true
33
-
34
- Layout/InitialIndentation:
35
- Enabled: true
3
+ - rubocop-rake
4
+
5
+ AllCops:
6
+ NewCops: enable
7
+ Exclude:
8
+ - bin/**/*
9
+ - db/schema.rb
10
+ - db/migrate/*.rb
11
+ - node_modules/**/*
12
+ - tmp/**/*
13
+ - vendor/**/*
36
14
 
37
15
  Layout/LineLength:
38
16
  Enabled: false
39
17
 
40
- Layout/SpaceAfterColon:
41
- Enabled: true
42
-
43
- Layout/SpaceAfterComma:
44
- Enabled: true
45
-
46
- Layout/SpaceAfterMethodName:
47
- Enabled: true
48
-
49
- Layout/SpaceAfterNot:
50
- Enabled: true
51
-
52
- Layout/SpaceAfterSemicolon:
53
- Enabled: true
54
-
55
- Layout/SpaceAroundBlockParameters:
56
- Enabled: true
57
-
58
- Layout/SpaceAroundEqualsInParameterDefault:
59
- Enabled: true
60
-
61
- Layout/SpaceAroundMethodCallOperator:
62
- Enabled: true
63
-
64
- Layout/SpaceBeforeBlockBraces:
65
- Enabled: true
66
-
67
- Layout/SpaceInsideArrayLiteralBrackets:
68
- Enabled: true
69
- EnforcedStyle: no_space
70
-
71
- Layout/SpaceInsideArrayPercentLiteral:
72
- Enabled: true
73
-
74
- Layout/SpaceInsideBlockBraces:
75
- Enabled: true
76
-
77
- Layout/SpaceInsideParens:
78
- Enabled: true
79
-
80
- Layout/SpaceInsideRangeLiteral:
81
- Enabled: true
82
-
83
- Layout/SpaceInsideReferenceBrackets:
84
- Enabled: true
85
-
86
- Layout/TrailingEmptyLines:
87
- Enabled: true
88
-
89
- Layout/TrailingWhitespace:
90
- Enabled: true
91
-
92
- Lint/CircularArgumentReference:
93
- Enabled: true
94
-
95
- Lint/Debugger:
96
- Enabled: true
97
-
98
- Lint/DeprecatedClassMethods:
99
- Enabled: true
100
-
101
- Lint/DuplicateHashKey:
102
- Enabled: true
103
-
104
- Lint/DuplicateMethods:
105
- Enabled: true
106
-
107
- Lint/EachWithObjectArgument:
108
- Enabled: true
109
-
110
- Lint/ElseLayout:
111
- Enabled: true
112
-
113
- Lint/EmptyEnsure:
114
- Enabled: true
115
-
116
- Lint/EmptyInterpolation:
117
- Enabled: true
118
-
119
- Lint/EnsureReturn:
120
- Enabled: true
121
-
122
- Lint/FlipFlop:
123
- Enabled: true
124
-
125
- Lint/FloatOutOfRange:
126
- Enabled: true
127
-
128
- Lint/FormatParameterMismatch:
129
- Enabled: true
130
-
131
- Lint/LiteralAsCondition:
132
- Enabled: true
133
-
134
- Lint/LiteralInInterpolation:
135
- Enabled: true
136
-
137
- Lint/Loop:
138
- Enabled: true
139
-
140
- Lint/NextWithoutAccumulator:
141
- Enabled: true
142
-
143
- Lint/RandOne:
144
- Enabled: true
145
-
146
- Lint/RaiseException:
147
- Enabled: true
148
-
149
- Lint/RedundantStringCoercion:
150
- Enabled: true
151
-
152
- Lint/RequireParentheses:
153
- Enabled: true
154
-
155
- Lint/RescueException:
156
- Enabled: true
157
-
158
- Lint/StructNewOverride:
159
- Enabled: true
160
-
161
- Lint/UnderscorePrefixedVariableName:
162
- Enabled: true
163
-
164
- Lint/RedundantCopDisableDirective:
165
- Enabled: true
166
-
167
- Lint/RedundantSplatExpansion:
168
- Enabled: true
169
-
170
- Lint/UnreachableCode:
171
- Enabled: true
172
-
173
- Lint/UselessComparison:
174
- Enabled: true
175
-
176
- Lint/UselessSetterCall:
177
- Enabled: true
178
-
179
- Lint/Void:
180
- Enabled: true
181
-
182
18
  Metrics/AbcSize:
183
19
  Enabled: false
184
20
 
@@ -206,149 +42,15 @@ Metrics/ParameterLists:
206
42
  Metrics/PerceivedComplexity:
207
43
  Enabled: false
208
44
 
209
- Naming/AsciiIdentifiers:
210
- Enabled: true
211
-
212
- Naming/ClassAndModuleCamelCase:
213
- Enabled: true
214
-
215
- Naming/FileName:
216
- Enabled: true
217
-
218
- Naming/MethodName:
219
- Enabled: true
220
-
221
- Performance/CaseWhenSplat:
45
+ Style/ClassAndModuleChildren:
222
46
  Enabled: false
223
47
 
224
- Performance/Count:
225
- Enabled: true
226
-
227
- Performance/Detect:
228
- Enabled: true
229
-
230
- Performance/DoubleStartEndWith:
231
- Enabled: true
232
-
233
- Performance/EndWith:
234
- Enabled: true
235
-
236
- Performance/FlatMap:
237
- Enabled: true
238
-
239
- Performance/RangeInclude:
240
- Enabled: false
241
-
242
- Performance/RedundantMatch:
243
- Enabled: false
244
-
245
- Performance/RedundantMerge:
246
- Enabled: true
247
- MaxKeyValuePairs: 1
248
-
249
- Performance/ReverseEach:
250
- Enabled: true
251
-
252
- Performance/Size:
253
- Enabled: true
254
-
255
- Performance/StartWith:
256
- Enabled: true
257
-
258
- Security/Eval:
259
- Enabled: true
260
-
261
48
  Style/AccessModifierDeclarations:
262
49
  Enabled: false
263
50
 
264
- Style/ArrayJoin:
265
- Enabled: true
266
-
267
- Style/BeginBlock:
268
- Enabled: true
269
-
270
- Style/BlockComments:
271
- Enabled: true
272
-
273
- Style/CaseEquality:
274
- Enabled: true
275
-
276
- Style/CharacterLiteral:
277
- Enabled: true
278
-
279
- Style/ClassMethods:
280
- Enabled: true
281
-
282
- Style/Copyright:
283
- Enabled: false
284
-
285
- Style/DefWithParentheses:
286
- Enabled: true
287
-
288
51
  Style/Documentation:
289
52
  Enabled: false
290
53
 
291
- Style/EndBlock:
292
- Enabled: true
293
-
294
- Style/ExponentialNotation:
295
- Enabled: true
296
-
297
- Style/For:
298
- Enabled: true
299
-
300
- Style/FrozenStringLiteralComment:
301
- Enabled: true
302
-
303
- Style/HashEachMethods:
304
- Enabled: true
305
-
306
- Style/HashSyntax:
307
- Enabled: true
308
- EnforcedStyle: ruby19_no_mixed_keys
309
-
310
- Style/HashTransformKeys:
311
- Enabled: true
312
-
313
- Style/HashTransformValues:
314
- Enabled: true
315
-
316
- Style/LambdaCall:
317
- Enabled: true
318
-
319
- Style/MethodCallWithoutArgsParentheses:
320
- Enabled: true
321
-
322
- Style/MethodDefParentheses:
323
- Enabled: true
324
-
325
- Style/MultilineIfThen:
326
- Enabled: true
327
-
328
- Style/NilComparison:
329
- Enabled: true
330
-
331
- Style/Not:
332
- Enabled: true
333
-
334
- Style/OneLineConditional:
335
- Enabled: true
336
-
337
- Style/RedundantSortBy:
338
- Enabled: true
339
-
340
- Style/Sample:
341
- Enabled: true
342
-
343
- Style/SlicingWithRange:
344
- Enabled: true
345
-
346
- Style/StabbyLambdaParentheses:
347
- Enabled: true
348
-
349
54
  Style/StringLiterals:
350
55
  Enabled: true
351
56
  EnforcedStyle: single_quotes
352
-
353
- Style/Strip:
354
- Enabled: true
@@ -1,110 +1,2 @@
1
1
  require:
2
2
  - rubocop-rails
3
- - rubocop/cop/standard/rails
4
-
5
- Rails/OutputSafety:
6
- Enabled: true
7
-
8
- Rails/PluralizationGrammar:
9
- Enabled: true
10
-
11
- Rails/RequestReferer:
12
- Enabled: true
13
- EnforcedStyle: referrer
14
-
15
- Rails/ScopeArgs:
16
- Enabled: true
17
-
18
- Rails/UniqBeforePluck:
19
- Enabled: true
20
-
21
- Standard/RailsApplicationRecord:
22
- Enabled: true
23
-
24
- Standard/RailsControllerRenderActionSymbol:
25
- Enabled: true
26
- Include:
27
- - "app/controllers/**/*.rb"
28
-
29
- Standard/RailsControllerRenderPathsExist:
30
- Enabled: true
31
- ViewPath:
32
- - "app/views"
33
- Include:
34
- - "app/controllers/**/*.rb"
35
-
36
- Standard/RailsControllerRenderShorthand:
37
- Enabled: true
38
- StyleGuide: https://Standard.com/Standard/rubocop-Standard/blob/master/guides/rails-controller-render-shorthand.md
39
- Include:
40
- - "app/controllers/**/*.rb"
41
-
42
- Standard/RailsRenderInline:
43
- Enabled: true
44
- StyleGuide: https://Standard.com/Standard/rubocop-Standard/blob/master/guides/rails-controller-render-inline.md
45
- Include:
46
- - "app/controllers/**/*.rb"
47
- - "app/helpers/**/*.rb"
48
- - "app/view_models/**/*.rb"
49
- - "app/views/**/*.erb"
50
-
51
- Standard/RailsRenderObjectCollection:
52
- Enabled: false
53
-
54
- Standard/RailsViewRenderPathsExist:
55
- Enabled: true
56
- ViewPath:
57
- - "app/views"
58
- Include:
59
- - "app/helpers/**/*.rb"
60
- - "app/view_models/**/*.rb"
61
- - "app/views/**/*.erb"
62
-
63
- Standard/RailsViewRenderShorthand:
64
- Enabled: true
65
- Include:
66
- - "app/helpers/**/*.rb"
67
- - "app/view_models/**/*.rb"
68
- - "app/views/**/*.erb"
69
-
70
- # Exclude Rails ERB files from incompatible cops
71
-
72
- Layout/BlockAlignment:
73
- Exclude:
74
- - "app/views/**/*.erb"
75
-
76
- Style/For:
77
- Exclude:
78
- - "app/views/**/*.erb"
79
-
80
- Style/OneLineConditional:
81
- Exclude:
82
- - "app/views/**/*.erb"
83
-
84
- Style/Semicolon:
85
- Exclude:
86
- - "app/views/**/*.erb"
87
-
88
- Layout/SpaceInsideParens:
89
- Exclude:
90
- - "app/views/**/*.erb"
91
-
92
- Style/StringLiterals:
93
- Exclude:
94
- - "app/views/**/*.erb"
95
-
96
- Layout/TrailingEmptyLines:
97
- Exclude:
98
- - "app/views/**/*.erb"
99
-
100
- Layout/TrailingWhitespace:
101
- Exclude:
102
- - "app/views/**/*.erb"
103
-
104
- Layout/InitialIndentation:
105
- Exclude:
106
- - "app/views/**/*.erb"
107
-
108
- Lint/UselessAccessModifier:
109
- ContextCreatingMethods:
110
- - concerning