rubocop-rails-omakase 1.0.0 → 1.1.0
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 +4 -4
- data/rubocop.yml +91 -84
- metadata +9 -23
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c91742990c3178df5b6b8b3f3536c9ac0bd173cb53f2a512d19056c50e903a4
|
4
|
+
data.tar.gz: bbc7ce139e74b42b3f1b1bcc3bf06e3693d072400bb8219fc9851ad326f7ff99
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 04cf090990c4e09dd3abb26ac5abab379096c55c390b5d130848ac913a08156e0e53273dbfd32bc86da120033b4a4e8a5ad2cf723858a9472af41400a362804e
|
7
|
+
data.tar.gz: 1d9381b1585c87da4ddd13223f5123099060d00297fab05472634d32613091d6f36aca08f6bdb919be83b133a9fead29ce840979d79d20e3700c411763cada37
|
data/rubocop.yml
CHANGED
@@ -1,7 +1,6 @@
|
|
1
|
-
|
1
|
+
plugins:
|
2
2
|
- rubocop-performance
|
3
3
|
- rubocop-rails
|
4
|
-
- rubocop-minitest
|
5
4
|
|
6
5
|
inherit_mode:
|
7
6
|
merge:
|
@@ -9,33 +8,31 @@ inherit_mode:
|
|
9
8
|
|
10
9
|
AllCops:
|
11
10
|
SuggestExtensions: false
|
12
|
-
DisabledByDefault: true
|
13
11
|
Exclude:
|
14
12
|
- "data/**/*"
|
15
|
-
- "db/*schema.rb"
|
16
|
-
- "log/**/*"
|
17
|
-
- "node_modules/**/*"
|
18
|
-
- "public/**/*"
|
19
|
-
- "storage/**/*"
|
20
|
-
- "tmp/**/*"
|
21
|
-
- "vendor/**/*"
|
22
13
|
|
14
|
+
# All cops except your using extensions are disabled by default.
|
15
|
+
Bundler:
|
16
|
+
Enabled: false
|
17
|
+
Gemspec:
|
18
|
+
Enabled: false
|
19
|
+
Layout:
|
20
|
+
Enabled: false
|
21
|
+
Lint:
|
22
|
+
Enabled: false
|
23
|
+
Metrics:
|
24
|
+
Enabled: false
|
25
|
+
Naming:
|
26
|
+
Enabled: false
|
23
27
|
Performance:
|
28
|
+
Enabled: false
|
24
29
|
Exclude:
|
25
30
|
- "test/**/*"
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
# Prefer assert_not_x over refute_x
|
33
|
-
Rails/RefuteMethods:
|
34
|
-
Include:
|
35
|
-
- "test/**/*"
|
36
|
-
|
37
|
-
# We generally prefer &&/|| but like low-precedence and/or in context
|
38
|
-
Style/AndOr:
|
31
|
+
Rails:
|
32
|
+
Enabled: false
|
33
|
+
Security:
|
34
|
+
Enabled: false
|
35
|
+
Style:
|
39
36
|
Enabled: false
|
40
37
|
|
41
38
|
# Align `when` with `end`.
|
@@ -50,13 +47,6 @@ Layout/CommentIndentation:
|
|
50
47
|
Layout/ElseAlignment:
|
51
48
|
Enabled: true
|
52
49
|
|
53
|
-
# Align `end` with the matching keyword or starting expression except for
|
54
|
-
# assignments, where it should be aligned with the LHS.
|
55
|
-
Layout/EndAlignment:
|
56
|
-
Enabled: true
|
57
|
-
EnforcedStyleAlignWith: variable
|
58
|
-
AutoCorrect: true
|
59
|
-
|
60
50
|
Layout/EmptyLineAfterMagicComment:
|
61
51
|
Enabled: true
|
62
52
|
|
@@ -75,10 +65,11 @@ Layout/EmptyLinesAroundMethodBody:
|
|
75
65
|
Layout/EmptyLinesAroundModuleBody:
|
76
66
|
Enabled: true
|
77
67
|
|
78
|
-
#
|
79
|
-
|
68
|
+
# Align `end` with the matching keyword or starting expression except for
|
69
|
+
# assignments, where it should be aligned with the LHS.
|
70
|
+
Layout/EndAlignment:
|
80
71
|
Enabled: true
|
81
|
-
|
72
|
+
EnforcedStyleAlignWith: variable
|
82
73
|
|
83
74
|
# Method definitions after `private` or `protected` isolated calls need one
|
84
75
|
# extra level of indentation.
|
@@ -89,6 +80,10 @@ Layout/IndentationConsistency:
|
|
89
80
|
Enabled: false
|
90
81
|
EnforcedStyle: indented_internal_methods
|
91
82
|
|
83
|
+
# Detect hard tabs, no hard tabs.
|
84
|
+
Layout/IndentationStyle:
|
85
|
+
Enabled: true
|
86
|
+
|
92
87
|
# Two spaces, no tabs (for indentation).
|
93
88
|
#
|
94
89
|
# Doesn't behave properly with private-only concerns, so it's disabled.
|
@@ -110,35 +105,19 @@ Layout/SpaceAroundEqualsInParameterDefault:
|
|
110
105
|
Layout/SpaceAroundKeyword:
|
111
106
|
Enabled: true
|
112
107
|
|
113
|
-
Layout/SpaceBeforeComma:
|
114
|
-
Enabled: true
|
115
|
-
|
116
|
-
Layout/SpaceBeforeFirstArg:
|
117
|
-
Enabled: true
|
118
|
-
|
119
|
-
Style/DefWithParentheses:
|
120
|
-
Enabled: true
|
121
|
-
|
122
|
-
# Defining a method with parameters needs parentheses.
|
123
|
-
Style/MethodDefParentheses:
|
124
|
-
Enabled: true
|
125
|
-
|
126
108
|
# Use `foo {}` not `foo{}`.
|
127
109
|
Layout/SpaceBeforeBlockBraces:
|
128
110
|
Enabled: true
|
129
111
|
|
130
|
-
|
131
|
-
Layout/SpaceInLambdaLiteral:
|
112
|
+
Layout/SpaceBeforeComma:
|
132
113
|
Enabled: true
|
133
114
|
|
134
|
-
|
115
|
+
Layout/SpaceBeforeFirstArg:
|
135
116
|
Enabled: true
|
136
117
|
|
137
|
-
# Use
|
138
|
-
|
139
|
-
Layout/SpaceInsideBlockBraces:
|
118
|
+
# Use `->(x, y) { x + y }` not `-> (x, y) { x + y }`
|
119
|
+
Layout/SpaceInLambdaLiteral:
|
140
120
|
Enabled: true
|
141
|
-
EnforcedStyleForEmptyBraces: space
|
142
121
|
|
143
122
|
# Use `[ a, [ b, c ] ]` not `[a, [b, c]]`
|
144
123
|
# Use `[]` not `[ ]`
|
@@ -151,6 +130,12 @@ Layout/SpaceInsideArrayLiteralBrackets:
|
|
151
130
|
Layout/SpaceInsideArrayPercentLiteral:
|
152
131
|
Enabled: true
|
153
132
|
|
133
|
+
# Use `foo { bar }` not `foo {bar}`.
|
134
|
+
# Use `foo { }` not `foo {}`.
|
135
|
+
Layout/SpaceInsideBlockBraces:
|
136
|
+
Enabled: true
|
137
|
+
EnforcedStyleForEmptyBraces: space
|
138
|
+
|
154
139
|
# Use `{ a: 1 }` not `{a:1}`.
|
155
140
|
# Use `{}` not `{ }`.
|
156
141
|
Layout/SpaceInsideHashLiteralBraces:
|
@@ -172,21 +157,6 @@ Layout/SpaceInsidePercentLiteralDelimiters:
|
|
172
157
|
Layout/SpaceInsideReferenceBrackets:
|
173
158
|
Enabled: true
|
174
159
|
|
175
|
-
# Use `"foo"` not `'foo'` unless escaping is required
|
176
|
-
Style/StringLiterals:
|
177
|
-
Enabled: true
|
178
|
-
EnforcedStyle: double_quotes
|
179
|
-
Include:
|
180
|
-
- "app/**/*"
|
181
|
-
- "config/**/*"
|
182
|
-
- "lib/**/*"
|
183
|
-
- "test/**/*"
|
184
|
-
- "Gemfile"
|
185
|
-
|
186
|
-
# Detect hard tabs, no hard tabs.
|
187
|
-
Layout/IndentationStyle:
|
188
|
-
Enabled: true
|
189
|
-
|
190
160
|
# Blank lines should not have any spaces.
|
191
161
|
Layout/TrailingEmptyLines:
|
192
162
|
Enabled: true
|
@@ -195,33 +165,50 @@ Layout/TrailingEmptyLines:
|
|
195
165
|
Layout/TrailingWhitespace:
|
196
166
|
Enabled: true
|
197
167
|
|
198
|
-
|
199
|
-
|
200
|
-
Enabled: false
|
168
|
+
Lint/RedundantStringCoercion:
|
169
|
+
Enabled: true
|
201
170
|
|
202
171
|
# Use my_method(my_arg) not my_method( my_arg ) or my_method my_arg.
|
203
172
|
Lint/RequireParentheses:
|
204
173
|
Enabled: true
|
205
174
|
|
206
|
-
Lint/
|
175
|
+
Lint/UriEscapeUnescape:
|
207
176
|
Enabled: true
|
208
177
|
|
209
|
-
|
178
|
+
Performance/FlatMap:
|
210
179
|
Enabled: true
|
211
180
|
|
212
|
-
|
181
|
+
# Prefer assert_not over assert !
|
182
|
+
Rails/AssertNot:
|
183
|
+
Include:
|
184
|
+
- "test/**/*"
|
185
|
+
|
186
|
+
# Prefer assert_not_x over refute_x
|
187
|
+
Rails/RefuteMethods:
|
188
|
+
Include:
|
189
|
+
- "test/**/*"
|
190
|
+
|
191
|
+
# We generally prefer &&/|| but like low-precedence and/or in context
|
192
|
+
Style/AndOr:
|
193
|
+
Enabled: false
|
194
|
+
|
195
|
+
# Prefer Foo.method over Foo::method
|
196
|
+
Style/ColonMethodCall:
|
213
197
|
Enabled: true
|
214
198
|
|
215
|
-
Style/
|
199
|
+
Style/DefWithParentheses:
|
216
200
|
Enabled: true
|
217
|
-
AllowMultipleReturnValues: true
|
218
201
|
|
219
|
-
|
202
|
+
# Use Ruby >= 1.9 syntax for hashes. Prefer { a: :b } over { :a => :b }.
|
203
|
+
Style/HashSyntax:
|
220
204
|
Enabled: true
|
221
|
-
|
205
|
+
EnforcedShorthandSyntax: either
|
222
206
|
|
223
|
-
#
|
224
|
-
Style/
|
207
|
+
# Defining a method with parameters needs parentheses.
|
208
|
+
Style/MethodDefParentheses:
|
209
|
+
Enabled: true
|
210
|
+
|
211
|
+
Style/ParenthesesAroundCondition:
|
225
212
|
Enabled: true
|
226
213
|
|
227
214
|
Style/PercentLiteralDelimiters:
|
@@ -234,14 +221,34 @@ Style/PercentLiteralDelimiters:
|
|
234
221
|
"%w": "[]"
|
235
222
|
"%W": "[]"
|
236
223
|
|
237
|
-
|
224
|
+
# Use quotes for string literals when they are enough.
|
225
|
+
Style/RedundantPercentQ:
|
226
|
+
Enabled: false
|
227
|
+
|
228
|
+
Style/RedundantReturn:
|
238
229
|
Enabled: true
|
230
|
+
AllowMultipleReturnValues: true
|
239
231
|
|
240
|
-
Style/
|
232
|
+
Style/Semicolon:
|
241
233
|
Enabled: true
|
234
|
+
AllowAsExpressionSeparator: true
|
242
235
|
|
243
|
-
|
236
|
+
Style/StabbyLambdaParentheses:
|
244
237
|
Enabled: true
|
245
238
|
|
246
|
-
|
239
|
+
# Use `"foo"` not `'foo'` unless escaping is required
|
240
|
+
Style/StringLiterals:
|
241
|
+
Enabled: true
|
242
|
+
EnforcedStyle: double_quotes
|
243
|
+
Include:
|
244
|
+
- "app/**/*"
|
245
|
+
- "config/**/*"
|
246
|
+
- "lib/**/*"
|
247
|
+
- "test/**/*"
|
248
|
+
- "Gemfile"
|
249
|
+
|
250
|
+
Style/TrailingCommaInArrayLiteral:
|
251
|
+
Enabled: true
|
252
|
+
|
253
|
+
Style/TrailingCommaInHashLiteral:
|
247
254
|
Enabled: true
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop-rails-omakase
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Heinemeier Hansson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-02-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -16,56 +16,42 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '1.72'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '1.72'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rubocop-rails
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '2.30'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '2.30'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rubocop-performance
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '1.24'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: rubocop-minitest
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - ">="
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
62
|
-
type: :runtime
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - ">="
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
54
|
+
version: '1.24'
|
69
55
|
description:
|
70
56
|
email: david@hey.com
|
71
57
|
executables: []
|
@@ -92,7 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
92
78
|
- !ruby/object:Gem::Version
|
93
79
|
version: '0'
|
94
80
|
requirements: []
|
95
|
-
rubygems_version: 3.
|
81
|
+
rubygems_version: 3.5.22
|
96
82
|
signing_key:
|
97
83
|
specification_version: 4
|
98
84
|
summary: Omakase Ruby styling for Rails
|