rubocop-standard 4.0.4 → 5.0.2

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: a1056ad4bb6f2020463b3d8862ab5874bd96ae5a97214caf34e8ecde43ac85dc
4
- data.tar.gz: 6cc236d104ed09d23c6384a8c7a1b75ccf9efdde737e4b6f58d782affeb8c209
3
+ metadata.gz: da5365d14041c971d1ff25fe33d14b787a2ee52fadea18c0ccc58a505955e37a
4
+ data.tar.gz: f1691ca68e4fd55bb9b914b6169d5f5257579de7bc6e744bd1d2d26901400c27
5
5
  SHA512:
6
- metadata.gz: 712a02e45b046cdd353c9abfb80c3bc3228b95991622c5d00a12855684511501276e19fd090da844e639969ef5aaa1a18b5ff846ed0b0eaee243dc631c210eff
7
- data.tar.gz: f67cd99b33543ec757e6c2d8a9cddfddda388a9f540c5e526b399eded38d132f9d58113ebc564053bd54323d4794199650af12af00e60d87da2f6cdec99e089a
6
+ metadata.gz: 7a27cf9148ee4ba4bb13a078a76da200aad4880be447eecb8c08246ce2e2938b021237c6a863f76105cf417c253c07e3b004d9463ce042f1f6013787de51184c
7
+ data.tar.gz: a6f5c0fc23d7f29aa9d2fe92c0e73e72db3b3a0a8590ba7eb5703ba47e19f3e1f8d3895c6ce76cbab713b1dc213e7c5c3c2eaf3a6a682a72ab47cc4332d9b37a
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,181 +1,19 @@
1
1
  require:
2
2
  - rubocop-performance
3
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/EndAlignment:
23
- Enabled: false
24
-
25
- Layout/EndOfLine:
26
- Enabled: true
27
-
28
- Layout/IndentationStyle:
29
- Enabled: true
30
-
31
- Layout/InitialIndentation:
32
- Enabled: true
4
+ AllCops:
5
+ NewCops: enable
6
+ Exclude:
7
+ - bin/**/*
8
+ - db/schema.rb
9
+ - db/migrate/*.rb
10
+ - node_modules/**/*
11
+ - tmp/**/*
12
+ - vendor/**/*
33
13
 
34
14
  Layout/LineLength:
35
15
  Enabled: false
36
16
 
37
- Layout/SpaceAfterColon:
38
- Enabled: true
39
-
40
- Layout/SpaceAfterComma:
41
- Enabled: true
42
-
43
- Layout/SpaceAfterMethodName:
44
- Enabled: true
45
-
46
- Layout/SpaceAfterNot:
47
- Enabled: true
48
-
49
- Layout/SpaceAfterSemicolon:
50
- Enabled: true
51
-
52
- Layout/SpaceAroundBlockParameters:
53
- Enabled: true
54
-
55
- Layout/SpaceAroundEqualsInParameterDefault:
56
- Enabled: true
57
-
58
- Layout/SpaceAroundMethodCallOperator:
59
- Enabled: true
60
-
61
- Layout/SpaceBeforeBlockBraces:
62
- Enabled: true
63
-
64
- Layout/SpaceInsideArrayLiteralBrackets:
65
- Enabled: true
66
- EnforcedStyle: no_space
67
-
68
- Layout/SpaceInsideArrayPercentLiteral:
69
- Enabled: true
70
-
71
- Layout/SpaceInsideBlockBraces:
72
- Enabled: true
73
-
74
- Layout/SpaceInsideParens:
75
- Enabled: true
76
-
77
- Layout/SpaceInsideRangeLiteral:
78
- Enabled: true
79
-
80
- Layout/SpaceInsideReferenceBrackets:
81
- Enabled: true
82
-
83
- Layout/TrailingEmptyLines:
84
- Enabled: true
85
-
86
- Layout/TrailingWhitespace:
87
- Enabled: true
88
-
89
- Lint/CircularArgumentReference:
90
- Enabled: true
91
-
92
- Lint/Debugger:
93
- Enabled: true
94
-
95
- Lint/DeprecatedClassMethods:
96
- Enabled: true
97
-
98
- Lint/DuplicateHashKey:
99
- Enabled: true
100
-
101
- Lint/DuplicateMethods:
102
- Enabled: true
103
-
104
- Lint/EachWithObjectArgument:
105
- Enabled: true
106
-
107
- Lint/ElseLayout:
108
- Enabled: true
109
-
110
- Lint/EmptyEnsure:
111
- Enabled: true
112
-
113
- Lint/EmptyInterpolation:
114
- Enabled: true
115
-
116
- Lint/EnsureReturn:
117
- Enabled: true
118
-
119
- Lint/FlipFlop:
120
- Enabled: true
121
-
122
- Lint/FloatOutOfRange:
123
- Enabled: true
124
-
125
- Lint/FormatParameterMismatch:
126
- Enabled: true
127
-
128
- Lint/LiteralAsCondition:
129
- Enabled: true
130
-
131
- Lint/LiteralInInterpolation:
132
- Enabled: true
133
-
134
- Lint/Loop:
135
- Enabled: true
136
-
137
- Lint/NextWithoutAccumulator:
138
- Enabled: true
139
-
140
- Lint/RandOne:
141
- Enabled: true
142
-
143
- Lint/RaiseException:
144
- Enabled: true
145
-
146
- Lint/RedundantStringCoercion:
147
- Enabled: true
148
-
149
- Lint/RequireParentheses:
150
- Enabled: true
151
-
152
- Lint/RescueException:
153
- Enabled: true
154
-
155
- Lint/StructNewOverride:
156
- Enabled: true
157
-
158
- Lint/UnderscorePrefixedVariableName:
159
- Enabled: true
160
-
161
- Lint/RedundantCopDisableDirective:
162
- Enabled: true
163
-
164
- Lint/RedundantSplatExpansion:
165
- Enabled: true
166
-
167
- Lint/UnreachableCode:
168
- Enabled: true
169
-
170
- Lint/UselessComparison:
171
- Enabled: true
172
-
173
- Lint/UselessSetterCall:
174
- Enabled: true
175
-
176
- Lint/Void:
177
- Enabled: true
178
-
179
17
  Metrics/AbcSize:
180
18
  Enabled: false
181
19
 
@@ -203,146 +41,15 @@ Metrics/ParameterLists:
203
41
  Metrics/PerceivedComplexity:
204
42
  Enabled: false
205
43
 
206
- Naming/AsciiIdentifiers:
207
- Enabled: true
208
-
209
- Naming/ClassAndModuleCamelCase:
210
- Enabled: true
211
-
212
- Naming/FileName:
213
- Enabled: true
214
-
215
- Naming/MethodName:
216
- Enabled: true
217
-
218
- Performance/CaseWhenSplat:
219
- Enabled: false
220
-
221
- Performance/Count:
222
- Enabled: true
223
-
224
- Performance/Detect:
225
- Enabled: true
226
-
227
- Performance/DoubleStartEndWith:
228
- Enabled: true
229
-
230
- Performance/EndWith:
231
- Enabled: true
232
-
233
- Performance/FlatMap:
234
- Enabled: true
235
-
236
- Performance/RangeInclude:
237
- Enabled: false
238
-
239
- Performance/RedundantMatch:
44
+ Style/ClassAndModuleChildren:
240
45
  Enabled: false
241
46
 
242
- Performance/RedundantMerge:
243
- Enabled: true
244
- MaxKeyValuePairs: 1
245
-
246
- Performance/ReverseEach:
247
- Enabled: true
248
-
249
- Performance/Size:
250
- Enabled: true
251
-
252
- Performance/StartWith:
253
- Enabled: true
254
-
255
- Security/Eval:
256
- Enabled: true
257
-
258
47
  Style/AccessModifierDeclarations:
259
48
  Enabled: false
260
49
 
261
- Style/ArrayJoin:
262
- Enabled: true
263
-
264
- Style/BeginBlock:
265
- Enabled: true
266
-
267
- Style/BlockComments:
268
- Enabled: true
269
-
270
- Style/CaseEquality:
271
- Enabled: true
272
-
273
- Style/CharacterLiteral:
274
- Enabled: true
275
-
276
- Style/ClassMethods:
277
- Enabled: true
278
-
279
- Style/Copyright:
280
- Enabled: false
281
-
282
- Style/DefWithParentheses:
283
- Enabled: true
284
-
285
50
  Style/Documentation:
286
51
  Enabled: false
287
52
 
288
- Style/EndBlock:
289
- Enabled: true
290
-
291
- Style/ExponentialNotation:
292
- Enabled: true
293
-
294
- Style/For:
295
- Enabled: true
296
-
297
- Style/FrozenStringLiteralComment:
298
- Enabled: true
299
-
300
- Style/HashEachMethods:
301
- Enabled: true
302
-
303
- Style/HashSyntax:
304
- Enabled: true
305
- EnforcedStyle: ruby19_no_mixed_keys
306
-
307
- Style/HashTransformKeys:
308
- Enabled: true
309
-
310
- Style/HashTransformValues:
311
- Enabled: true
312
-
313
- Style/LambdaCall:
314
- Enabled: true
315
-
316
- Style/MethodCallWithoutArgsParentheses:
317
- Enabled: true
318
-
319
- Style/MethodDefParentheses:
320
- Enabled: true
321
-
322
- Style/MultilineIfThen:
323
- Enabled: true
324
-
325
- Style/NilComparison:
326
- Enabled: true
327
-
328
- Style/Not:
329
- Enabled: true
330
-
331
- Style/OneLineConditional:
332
- Enabled: true
333
-
334
- Style/RedundantSortBy:
335
- Enabled: true
336
-
337
- Style/Sample:
338
- Enabled: true
339
-
340
- Style/StabbyLambdaParentheses:
341
- Enabled: true
342
-
343
53
  Style/StringLiterals:
344
54
  Enabled: true
345
55
  EnforcedStyle: single_quotes
346
-
347
- Style/Strip:
348
- 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