rubocop-standard 4.0.3 → 5.0.1

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: 2c0579f5c4019605fb1ba738258afd349be4796123db2171bc5ee9da955245b0
4
- data.tar.gz: fa11a93674ce6cc98dbeadbbe22bcc43eb9aca2b75a965ef9dc19deb1ac97b9f
3
+ metadata.gz: b3f6092636c7ac6bef892b397d557126af8f323384e2f61a144f5ec8719eac07
4
+ data.tar.gz: 0fb937a66069fbbfa05e05cd2c0b28dca72b5f911f8ad386bda0fb256697cfa8
5
5
  SHA512:
6
- metadata.gz: 7c01ce5154b57eb3a42121b670fe80a10c9f8f0039fa77725fb504099f5d983fa663819e3eca69110a1068960b22a44503aa8afdc6a45e4f3f0f2cb1e2c49bbf
7
- data.tar.gz: dbbc9fc934c969df13bb4b337039f1311633aa3fa2c7360012d51dd2d4488ec271a7658d618c0b8aaa21c809ab59b033837b701af73b19c28b185b987d35271e
6
+ metadata.gz: 1ca6bf1e1753ecb0b8a35a1c897f153fbd69b3e020f61dfca9ec2d7fbe60fbca97fd7c8547b59c2b0ce1c06a197ed93de2df37bd91a598e2fbe6e9df4b7e9c1b
7
+ data.tar.gz: 847a50f24988ce89b838d3d1eb4fb38a7ede5c60d7ad462fb65e31e798162e540716a1a06f7aa48ac7c2e2d0d785fc88953d651671b69d85f919104e2851a520
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,172 +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/gems/**/*
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/SpaceBeforeBlockBraces:
59
- Enabled: true
60
-
61
- Layout/SpaceInsideArrayLiteralBrackets:
62
- Enabled: true
63
- EnforcedStyle: no_space
64
-
65
- Layout/SpaceInsideArrayPercentLiteral:
66
- Enabled: true
67
-
68
- Layout/SpaceInsideBlockBraces:
69
- Enabled: true
70
-
71
- Layout/SpaceInsideParens:
72
- Enabled: true
73
-
74
- Layout/SpaceInsideRangeLiteral:
75
- Enabled: true
76
-
77
- Layout/SpaceInsideReferenceBrackets:
78
- Enabled: true
79
-
80
- Layout/TrailingEmptyLines:
81
- Enabled: true
82
-
83
- Layout/TrailingWhitespace:
84
- Enabled: true
85
-
86
- Lint/CircularArgumentReference:
87
- Enabled: true
88
-
89
- Lint/Debugger:
90
- Enabled: true
91
-
92
- Lint/DeprecatedClassMethods:
93
- Enabled: true
94
-
95
- Lint/DuplicateHashKey:
96
- Enabled: true
97
-
98
- Lint/DuplicateMethods:
99
- Enabled: true
100
-
101
- Lint/EachWithObjectArgument:
102
- Enabled: true
103
-
104
- Lint/ElseLayout:
105
- Enabled: true
106
-
107
- Lint/EmptyEnsure:
108
- Enabled: true
109
-
110
- Lint/EmptyInterpolation:
111
- Enabled: true
112
-
113
- Lint/EnsureReturn:
114
- Enabled: true
115
-
116
- Lint/FlipFlop:
117
- Enabled: true
118
-
119
- Lint/FloatOutOfRange:
120
- Enabled: true
121
-
122
- Lint/FormatParameterMismatch:
123
- Enabled: true
124
-
125
- Lint/LiteralAsCondition:
126
- Enabled: true
127
-
128
- Lint/LiteralInInterpolation:
129
- Enabled: true
130
-
131
- Lint/Loop:
132
- Enabled: true
133
-
134
- Lint/NextWithoutAccumulator:
135
- Enabled: true
136
-
137
- Lint/RandOne:
138
- Enabled: true
139
-
140
- Lint/RedundantStringCoercion:
141
- Enabled: true
142
-
143
- Lint/RequireParentheses:
144
- Enabled: true
145
-
146
- Lint/RescueException:
147
- Enabled: true
148
-
149
- Lint/UnderscorePrefixedVariableName:
150
- Enabled: true
151
-
152
- Lint/RedundantCopDisableDirective:
153
- Enabled: true
154
-
155
- Lint/RedundantSplatExpansion:
156
- Enabled: true
157
-
158
- Lint/UnreachableCode:
159
- Enabled: true
160
-
161
- Lint/UselessComparison:
162
- Enabled: true
163
-
164
- Lint/UselessSetterCall:
165
- Enabled: true
166
-
167
- Lint/Void:
168
- Enabled: true
169
-
170
17
  Metrics/AbcSize:
171
18
  Enabled: false
172
19
 
@@ -194,143 +41,15 @@ Metrics/ParameterLists:
194
41
  Metrics/PerceivedComplexity:
195
42
  Enabled: false
196
43
 
197
- Naming/AsciiIdentifiers:
198
- Enabled: true
199
-
200
- Naming/ClassAndModuleCamelCase:
201
- Enabled: true
202
-
203
- Naming/FileName:
204
- Enabled: true
205
-
206
- Naming/MethodName:
207
- Enabled: true
208
-
209
- Performance/CaseWhenSplat:
210
- Enabled: false
211
-
212
- Performance/Count:
213
- Enabled: true
214
-
215
- Performance/Detect:
216
- Enabled: true
217
-
218
- Performance/DoubleStartEndWith:
219
- Enabled: true
220
-
221
- Performance/EndWith:
222
- Enabled: true
223
-
224
- Performance/FlatMap:
225
- Enabled: true
226
-
227
- Performance/RangeInclude:
228
- Enabled: false
229
-
230
- Performance/RedundantMatch:
44
+ Style/ClassAndModuleChildren:
231
45
  Enabled: false
232
46
 
233
- Performance/RedundantMerge:
234
- Enabled: true
235
- MaxKeyValuePairs: 1
236
-
237
- Performance/ReverseEach:
238
- Enabled: true
239
-
240
- Performance/Size:
241
- Enabled: true
242
-
243
- Performance/StartWith:
244
- Enabled: true
245
-
246
- Security/Eval:
247
- Enabled: true
248
-
249
47
  Style/AccessModifierDeclarations:
250
48
  Enabled: false
251
49
 
252
- Style/ArrayJoin:
253
- Enabled: true
254
-
255
- Style/BeginBlock:
256
- Enabled: true
257
-
258
- Style/BlockComments:
259
- Enabled: true
260
-
261
- Style/CaseEquality:
262
- Enabled: true
263
-
264
- Style/CharacterLiteral:
265
- Enabled: true
266
-
267
- Style/ClassMethods:
268
- Enabled: true
269
-
270
- Style/Copyright:
271
- Enabled: false
272
-
273
- Style/DefWithParentheses:
274
- Enabled: true
275
-
276
50
  Style/Documentation:
277
51
  Enabled: false
278
52
 
279
- Style/EndBlock:
280
- Enabled: true
281
-
282
- Style/For:
283
- Enabled: true
284
-
285
- Style/FrozenStringLiteralComment:
286
- Enabled: true
287
-
288
- Style/HashEachMethods:
289
- Enabled: true
290
-
291
- Style/HashSyntax:
292
- Enabled: true
293
- EnforcedStyle: ruby19_no_mixed_keys
294
-
295
- Style/HashTransformKeys:
296
- Enabled: true
297
-
298
- Style/HashTransformValues:
299
- Enabled: true
300
-
301
- Style/LambdaCall:
302
- Enabled: true
303
-
304
- Style/MethodCallWithoutArgsParentheses:
305
- Enabled: true
306
-
307
- Style/MethodDefParentheses:
308
- Enabled: true
309
-
310
- Style/MultilineIfThen:
311
- Enabled: true
312
-
313
- Style/NilComparison:
314
- Enabled: true
315
-
316
- Style/Not:
317
- Enabled: true
318
-
319
- Style/OneLineConditional:
320
- Enabled: true
321
-
322
- Style/RedundantSortBy:
323
- Enabled: true
324
-
325
- Style/Sample:
326
- Enabled: true
327
-
328
- Style/StabbyLambdaParentheses:
329
- Enabled: true
330
-
331
53
  Style/StringLiterals:
332
54
  Enabled: true
333
55
  EnforcedStyle: single_quotes
334
-
335
- Style/Strip:
336
- 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