reform 2.3.0.rc2 → 2.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/workflows/ci.yml +17 -0
- data/.gitignore +4 -2
- data/CHANGES.md +24 -1
- data/Gemfile +1 -7
- data/LICENSE.txt +1 -1
- data/README.md +5 -5
- data/Rakefile +2 -15
- data/lib/reform/contract/validate.rb +1 -1
- data/lib/reform/form/dry.rb +47 -9
- data/lib/reform/form/populator.rb +13 -3
- data/lib/reform/form/prepopulate.rb +1 -1
- data/lib/reform/form/validate.rb +3 -3
- data/lib/reform/validation/groups.rb +0 -1
- data/lib/reform/version.rb +1 -1
- data/reform.gemspec +3 -4
- data/test/call_test.rb +23 -0
- data/test/changed_test.rb +6 -6
- data/test/coercion_test.rb +17 -17
- data/test/{composition_new_api.rb → composition_test.rb} +27 -28
- data/test/{contract_new_api.rb → contract_test.rb} +8 -8
- data/test/default_test.rb +2 -2
- data/test/deserialize_test.rb +8 -8
- data/test/docs/validation_test.rb +134 -0
- data/test/{errors_new_api.rb → errors_test.rb} +41 -41
- data/test/feature_test.rb +2 -2
- data/test/fixtures/dry_error_messages.yml +64 -54
- data/test/{form_option_new_api.rb → form_option_test.rb} +1 -1
- data/test/{form_new_api.rb → form_test.rb} +3 -3
- data/test/from_test.rb +10 -10
- data/test/{inherit_new_api.rb → inherit_test.rb} +17 -17
- data/test/{module_new_api.rb → module_test.rb} +10 -10
- data/test/parse_option_test.rb +7 -7
- data/test/parse_pipeline_test.rb +1 -1
- data/test/{populate_new_api.rb → populate_test.rb} +136 -53
- data/test/populator_skip_test.rb +2 -2
- data/test/prepopulator_test.rb +16 -16
- data/test/read_only_test.rb +2 -2
- data/test/readable_test.rb +3 -3
- data/test/{reform_new_api.rb → reform_test.rb} +19 -19
- data/test/{save_new_api.rb → save_test.rb} +4 -4
- data/test/setup_test.rb +9 -9
- data/test/{skip_if_new_api.rb → skip_if_test.rb} +12 -12
- data/test/skip_setter_and_getter_test.rb +6 -6
- data/test/test_helper.rb +6 -7
- data/test/{validate_new_api.rb → validate_test.rb} +108 -76
- data/test/validation/{dry_validation_new_api.rb → dry_validation_test.rb} +145 -135
- data/test/validation/result_test.rb +14 -14
- data/test/virtual_test.rb +7 -7
- data/test/writeable_test.rb +8 -8
- metadata +46 -99
- data/.rubocop.yml +0 -30
- data/.rubocop_todo.yml +0 -460
- data/.travis.yml +0 -32
- data/lib/reform/form/dry/new_api.rb +0 -58
- data/lib/reform/form/dry/old_api.rb +0 -61
- data/test/call_new_api.rb +0 -23
- data/test/call_old_api.rb +0 -23
- data/test/composition_old_api.rb +0 -184
- data/test/contract_old_api.rb +0 -77
- data/test/errors_old_api.rb +0 -230
- data/test/fixtures/dry_new_api_error_messages.yml +0 -104
- data/test/form_old_api.rb +0 -57
- data/test/form_option_old_api.rb +0 -24
- data/test/inherit_old_api.rb +0 -105
- data/test/module_old_api.rb +0 -146
- data/test/populate_old_api.rb +0 -304
- data/test/reform_old_api.rb +0 -202
- data/test/save_old_api.rb +0 -101
- data/test/skip_if_old_api.rb +0 -92
- data/test/validate_old_api.rb +0 -410
- data/test/validation/dry_validation_old_api.rb +0 -772
@@ -11,10 +11,10 @@ class ErrorsResultTest < Minitest::Spec
|
|
11
11
|
let(:failed) { MyResult.new(false) }
|
12
12
|
let(:succeeded) { MyResult.new(true) }
|
13
13
|
|
14
|
-
it { Reform::Contract::Result.new([failed, failed]).success
|
15
|
-
it { Reform::Contract::Result.new([succeeded, failed]).success
|
16
|
-
it { Reform::Contract::Result.new([failed, succeeded]).success
|
17
|
-
it { Reform::Contract::Result.new([succeeded, succeeded]).success
|
14
|
+
it { assert_equal Reform::Contract::Result.new([failed, failed]).success?, false }
|
15
|
+
it { assert_equal Reform::Contract::Result.new([succeeded, failed]).success?, false }
|
16
|
+
it { assert_equal Reform::Contract::Result.new([failed, succeeded]).success?, false }
|
17
|
+
it { assert Reform::Contract::Result.new([succeeded, succeeded]).success? }
|
18
18
|
end
|
19
19
|
|
20
20
|
describe "Contract::Result#errors" do
|
@@ -27,7 +27,7 @@ class ErrorsResultTest < Minitest::Spec
|
|
27
27
|
]
|
28
28
|
end
|
29
29
|
|
30
|
-
it { Reform::Contract::Result.new(results).errors
|
30
|
+
it { assert_equal Reform::Contract::Result.new(results).errors, {title: ["must be filled", "something more"], length: ["no Int"]} }
|
31
31
|
end
|
32
32
|
|
33
33
|
describe "Result::Pointer" do
|
@@ -44,24 +44,24 @@ class ErrorsResultTest < Minitest::Spec
|
|
44
44
|
end
|
45
45
|
|
46
46
|
let(:top) { Reform::Contract::Result::Pointer.new(MyResult.new(false, errors), []) }
|
47
|
-
it { top.success
|
48
|
-
it { top.errors
|
47
|
+
it { assert_equal top.success?, false }
|
48
|
+
it { assert_equal top.errors, errors }
|
49
49
|
|
50
50
|
let(:artist) { Reform::Contract::Result::Pointer.new(MyResult.new(false, errors), [:artist]) }
|
51
|
-
it { artist.success
|
52
|
-
it { artist.errors
|
51
|
+
it { assert_equal artist.success?, false }
|
52
|
+
it { assert_equal artist.errors,({age: ["too old"], bands: {0 => {name: "too new school"}, 1 => {name: "too boring"}}}) }
|
53
53
|
|
54
54
|
let(:band) { Reform::Contract::Result::Pointer.new(MyResult.new(false, errors), [:artist, :bands, 1]) }
|
55
|
-
it { band.success
|
56
|
-
it { band.errors
|
55
|
+
it { assert_equal band.success?, false }
|
56
|
+
it { assert_equal band.errors,({name: "too boring"}) }
|
57
57
|
|
58
58
|
describe "advance" do
|
59
59
|
let(:advanced) { artist.advance(:bands, 1) }
|
60
60
|
|
61
|
-
it { advanced.success
|
62
|
-
it { advanced.errors
|
61
|
+
it { assert_equal advanced.success?, false }
|
62
|
+
it { assert_equal advanced.errors,({name: "too boring"}) }
|
63
63
|
|
64
|
-
it { artist.advance(%i[absolute nonsense])
|
64
|
+
it { assert_nil artist.advance(%i[absolute nonsense]) }
|
65
65
|
end
|
66
66
|
end
|
67
67
|
end
|
data/test/virtual_test.rb
CHANGED
@@ -13,8 +13,8 @@ class VirtualTest < MiniTest::Spec
|
|
13
13
|
it {
|
14
14
|
form.validate(credit_card_number: "123", transactions: [id: 1])
|
15
15
|
|
16
|
-
form.credit_card_number
|
17
|
-
form.transactions.first.id
|
16
|
+
assert_equal form.credit_card_number, "123" # this is still readable in the UI.
|
17
|
+
assert_equal form.transactions.first.id, 1 # this is still readable in the UI.
|
18
18
|
|
19
19
|
form.sync
|
20
20
|
|
@@ -23,7 +23,7 @@ class VirtualTest < MiniTest::Spec
|
|
23
23
|
hash = nested
|
24
24
|
end
|
25
25
|
|
26
|
-
hash
|
26
|
+
assert_equal hash, "credit_card_number" => "123", "transactions" => ["id" => 1]
|
27
27
|
}
|
28
28
|
end
|
29
29
|
|
@@ -49,16 +49,16 @@ class VirtualAndDefaultTest < MiniTest::Spec
|
|
49
49
|
form = CreditCardForm.new(Object.new)
|
50
50
|
form.validate({})
|
51
51
|
|
52
|
-
hash(form)
|
52
|
+
assert_equal hash(form), "credit_card_number" => "123", "transactions" => ["id" => 2]
|
53
53
|
|
54
54
|
form = CreditCardForm.new(Object.new)
|
55
55
|
form.validate(credit_card_number: "123", transactions: [id: 1])
|
56
56
|
|
57
|
-
form.credit_card_number
|
58
|
-
form.transactions.first.id
|
57
|
+
assert_equal form.credit_card_number, "123" # this is still readable in the UI.
|
58
|
+
assert_equal form.transactions.first.id, 1 # this is still readable in the UI.
|
59
59
|
|
60
60
|
form.sync
|
61
61
|
|
62
|
-
hash(form)
|
62
|
+
assert_equal hash(form), "credit_card_number" => "123", "transactions" => ["id" => 1]
|
63
63
|
}
|
64
64
|
end
|
data/test/writeable_test.rb
CHANGED
@@ -11,20 +11,20 @@ class WriteableTest < MiniTest::Spec
|
|
11
11
|
let(:form) { LocationForm.new(loc) }
|
12
12
|
|
13
13
|
it do
|
14
|
-
form.country
|
14
|
+
assert_equal form.country, "Australia"
|
15
15
|
|
16
16
|
form.validate("country" => "Germany") # this usually won't change when submitting.
|
17
|
-
form.country
|
17
|
+
assert_equal form.country, "Germany"
|
18
18
|
|
19
19
|
form.sync
|
20
|
-
loc.country
|
20
|
+
assert_equal loc.country, "Australia" # the writer wasn't called.
|
21
21
|
|
22
22
|
hash = {}
|
23
23
|
form.save do |nested|
|
24
24
|
hash = nested
|
25
25
|
end
|
26
26
|
|
27
|
-
hash
|
27
|
+
assert_equal hash, "country" => "Germany"
|
28
28
|
end
|
29
29
|
end
|
30
30
|
|
@@ -40,19 +40,19 @@ class WritableTest < MiniTest::Spec
|
|
40
40
|
let(:form) { LocationForm.new(loc) }
|
41
41
|
|
42
42
|
it do
|
43
|
-
form.country
|
43
|
+
assert_equal form.country, "Australia"
|
44
44
|
|
45
45
|
form.validate("country" => "Germany") # this usually won't change when submitting.
|
46
|
-
form.country
|
46
|
+
assert_equal form.country, "Germany"
|
47
47
|
|
48
48
|
form.sync
|
49
|
-
loc.country
|
49
|
+
assert_equal loc.country, "Australia" # the writer wasn't called.
|
50
50
|
|
51
51
|
hash = {}
|
52
52
|
form.save do |nested|
|
53
53
|
hash = nested
|
54
54
|
end
|
55
55
|
|
56
|
-
hash
|
56
|
+
assert_equal hash, "country" => "Germany"
|
57
57
|
end
|
58
58
|
end
|
metadata
CHANGED
@@ -1,34 +1,28 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: reform
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Sutterer
|
8
8
|
- Fran Worley
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2021-04-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: disposable
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- - "
|
19
|
-
- !ruby/object:Gem::Version
|
20
|
-
version: 0.4.2
|
21
|
-
- - "<"
|
18
|
+
- - "~>"
|
22
19
|
- !ruby/object:Gem::Version
|
23
20
|
version: 0.5.0
|
24
21
|
type: :runtime
|
25
22
|
prerelease: false
|
26
23
|
version_requirements: !ruby/object:Gem::Requirement
|
27
24
|
requirements:
|
28
|
-
- - "
|
29
|
-
- !ruby/object:Gem::Version
|
30
|
-
version: 0.4.2
|
31
|
-
- - "<"
|
25
|
+
- - "~>"
|
32
26
|
- !ruby/object:Gem::Version
|
33
27
|
version: 0.5.0
|
34
28
|
- !ruby/object:Gem::Dependency
|
@@ -37,20 +31,20 @@ dependencies:
|
|
37
31
|
requirements:
|
38
32
|
- - ">="
|
39
33
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
34
|
+
version: 3.1.1
|
41
35
|
- - "<"
|
42
36
|
- !ruby/object:Gem::Version
|
43
|
-
version: 3.
|
37
|
+
version: 3.2.0
|
44
38
|
type: :runtime
|
45
39
|
prerelease: false
|
46
40
|
version_requirements: !ruby/object:Gem::Requirement
|
47
41
|
requirements:
|
48
42
|
- - ">="
|
49
43
|
- !ruby/object:Gem::Version
|
50
|
-
version:
|
44
|
+
version: 3.1.1
|
51
45
|
- - "<"
|
52
46
|
- !ruby/object:Gem::Version
|
53
|
-
version: 3.
|
47
|
+
version: 3.2.0
|
54
48
|
- !ruby/object:Gem::Dependency
|
55
49
|
name: uber
|
56
50
|
requirement: !ruby/object:Gem::Requirement
|
@@ -108,7 +102,7 @@ dependencies:
|
|
108
102
|
- !ruby/object:Gem::Version
|
109
103
|
version: '0'
|
110
104
|
- !ruby/object:Gem::Dependency
|
111
|
-
name: byebug
|
105
|
+
name: pry-byebug
|
112
106
|
requirement: !ruby/object:Gem::Requirement
|
113
107
|
requirements:
|
114
108
|
- - ">="
|
@@ -149,20 +143,6 @@ dependencies:
|
|
149
143
|
- - ">="
|
150
144
|
- !ruby/object:Gem::Version
|
151
145
|
version: '0'
|
152
|
-
- !ruby/object:Gem::Dependency
|
153
|
-
name: rubocop
|
154
|
-
requirement: !ruby/object:Gem::Requirement
|
155
|
-
requirements:
|
156
|
-
- - ">="
|
157
|
-
- !ruby/object:Gem::Version
|
158
|
-
version: '0'
|
159
|
-
type: :development
|
160
|
-
prerelease: false
|
161
|
-
version_requirements: !ruby/object:Gem::Requirement
|
162
|
-
requirements:
|
163
|
-
- - ">="
|
164
|
-
- !ruby/object:Gem::Version
|
165
|
-
version: '0'
|
166
146
|
description: Form object decoupled from models.
|
167
147
|
email:
|
168
148
|
- apotonick@gmail.com
|
@@ -171,10 +151,8 @@ executables: []
|
|
171
151
|
extensions: []
|
172
152
|
extra_rdoc_files: []
|
173
153
|
files:
|
154
|
+
- ".github/workflows/ci.yml"
|
174
155
|
- ".gitignore"
|
175
|
-
- ".rubocop.yml"
|
176
|
-
- ".rubocop_todo.yml"
|
177
|
-
- ".travis.yml"
|
178
156
|
- CHANGES.md
|
179
157
|
- CONTRIBUTING.md
|
180
158
|
- Gemfile
|
@@ -194,8 +172,6 @@ files:
|
|
194
172
|
- lib/reform/form/composition.rb
|
195
173
|
- lib/reform/form/dry.rb
|
196
174
|
- lib/reform/form/dry/input_hash.rb
|
197
|
-
- lib/reform/form/dry/new_api.rb
|
198
|
-
- lib/reform/form/dry/old_api.rb
|
199
175
|
- lib/reform/form/module.rb
|
200
176
|
- lib/reform/form/populator.rb
|
201
177
|
- lib/reform/form/prepopulate.rb
|
@@ -206,52 +182,38 @@ files:
|
|
206
182
|
- lib/reform/version.rb
|
207
183
|
- reform.gemspec
|
208
184
|
- test/benchmarking.rb
|
209
|
-
- test/
|
210
|
-
- test/call_old_api.rb
|
185
|
+
- test/call_test.rb
|
211
186
|
- test/changed_test.rb
|
212
187
|
- test/coercion_test.rb
|
213
|
-
- test/
|
214
|
-
- test/composition_old_api.rb
|
188
|
+
- test/composition_test.rb
|
215
189
|
- test/contract/custom_error_test.rb
|
216
|
-
- test/
|
217
|
-
- test/contract_old_api.rb
|
190
|
+
- test/contract_test.rb
|
218
191
|
- test/default_test.rb
|
219
192
|
- test/deserialize_test.rb
|
220
|
-
- test/
|
221
|
-
- test/
|
193
|
+
- test/docs/validation_test.rb
|
194
|
+
- test/errors_test.rb
|
222
195
|
- test/feature_test.rb
|
223
196
|
- test/fixtures/dry_error_messages.yml
|
224
|
-
- test/
|
225
|
-
- test/
|
226
|
-
- test/form_old_api.rb
|
227
|
-
- test/form_option_new_api.rb
|
228
|
-
- test/form_option_old_api.rb
|
197
|
+
- test/form_option_test.rb
|
198
|
+
- test/form_test.rb
|
229
199
|
- test/from_test.rb
|
230
|
-
- test/
|
231
|
-
- test/
|
232
|
-
- test/module_new_api.rb
|
233
|
-
- test/module_old_api.rb
|
200
|
+
- test/inherit_test.rb
|
201
|
+
- test/module_test.rb
|
234
202
|
- test/parse_option_test.rb
|
235
203
|
- test/parse_pipeline_test.rb
|
236
|
-
- test/
|
237
|
-
- test/populate_old_api.rb
|
204
|
+
- test/populate_test.rb
|
238
205
|
- test/populator_skip_test.rb
|
239
206
|
- test/prepopulator_test.rb
|
240
207
|
- test/read_only_test.rb
|
241
208
|
- test/readable_test.rb
|
242
|
-
- test/
|
243
|
-
- test/
|
244
|
-
- test/save_new_api.rb
|
245
|
-
- test/save_old_api.rb
|
209
|
+
- test/reform_test.rb
|
210
|
+
- test/save_test.rb
|
246
211
|
- test/setup_test.rb
|
247
|
-
- test/
|
248
|
-
- test/skip_if_old_api.rb
|
212
|
+
- test/skip_if_test.rb
|
249
213
|
- test/skip_setter_and_getter_test.rb
|
250
214
|
- test/test_helper.rb
|
251
|
-
- test/
|
252
|
-
- test/
|
253
|
-
- test/validation/dry_validation_new_api.rb
|
254
|
-
- test/validation/dry_validation_old_api.rb
|
215
|
+
- test/validate_test.rb
|
216
|
+
- test/validation/dry_validation_test.rb
|
255
217
|
- test/validation/result_test.rb
|
256
218
|
- test/validation_library_provided_test.rb
|
257
219
|
- test/virtual_test.rb
|
@@ -260,7 +222,7 @@ homepage: https://github.com/trailblazer/reform
|
|
260
222
|
licenses:
|
261
223
|
- MIT
|
262
224
|
metadata: {}
|
263
|
-
post_install_message:
|
225
|
+
post_install_message:
|
264
226
|
rdoc_options: []
|
265
227
|
require_paths:
|
266
228
|
- lib
|
@@ -271,63 +233,48 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
271
233
|
version: '0'
|
272
234
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
273
235
|
requirements:
|
274
|
-
- - "
|
236
|
+
- - ">="
|
275
237
|
- !ruby/object:Gem::Version
|
276
|
-
version:
|
238
|
+
version: '0'
|
277
239
|
requirements: []
|
278
|
-
|
279
|
-
|
280
|
-
signing_key:
|
240
|
+
rubygems_version: 3.2.3
|
241
|
+
signing_key:
|
281
242
|
specification_version: 4
|
282
243
|
summary: Form object decoupled from models with validation, population and presentation.
|
283
244
|
test_files:
|
284
245
|
- test/benchmarking.rb
|
285
|
-
- test/
|
286
|
-
- test/call_old_api.rb
|
246
|
+
- test/call_test.rb
|
287
247
|
- test/changed_test.rb
|
288
248
|
- test/coercion_test.rb
|
289
|
-
- test/
|
290
|
-
- test/composition_old_api.rb
|
249
|
+
- test/composition_test.rb
|
291
250
|
- test/contract/custom_error_test.rb
|
292
|
-
- test/
|
293
|
-
- test/contract_old_api.rb
|
251
|
+
- test/contract_test.rb
|
294
252
|
- test/default_test.rb
|
295
253
|
- test/deserialize_test.rb
|
296
|
-
- test/
|
297
|
-
- test/
|
254
|
+
- test/docs/validation_test.rb
|
255
|
+
- test/errors_test.rb
|
298
256
|
- test/feature_test.rb
|
299
257
|
- test/fixtures/dry_error_messages.yml
|
300
|
-
- test/
|
301
|
-
- test/
|
302
|
-
- test/form_old_api.rb
|
303
|
-
- test/form_option_new_api.rb
|
304
|
-
- test/form_option_old_api.rb
|
258
|
+
- test/form_option_test.rb
|
259
|
+
- test/form_test.rb
|
305
260
|
- test/from_test.rb
|
306
|
-
- test/
|
307
|
-
- test/
|
308
|
-
- test/module_new_api.rb
|
309
|
-
- test/module_old_api.rb
|
261
|
+
- test/inherit_test.rb
|
262
|
+
- test/module_test.rb
|
310
263
|
- test/parse_option_test.rb
|
311
264
|
- test/parse_pipeline_test.rb
|
312
|
-
- test/
|
313
|
-
- test/populate_old_api.rb
|
265
|
+
- test/populate_test.rb
|
314
266
|
- test/populator_skip_test.rb
|
315
267
|
- test/prepopulator_test.rb
|
316
268
|
- test/read_only_test.rb
|
317
269
|
- test/readable_test.rb
|
318
|
-
- test/
|
319
|
-
- test/
|
320
|
-
- test/save_new_api.rb
|
321
|
-
- test/save_old_api.rb
|
270
|
+
- test/reform_test.rb
|
271
|
+
- test/save_test.rb
|
322
272
|
- test/setup_test.rb
|
323
|
-
- test/
|
324
|
-
- test/skip_if_old_api.rb
|
273
|
+
- test/skip_if_test.rb
|
325
274
|
- test/skip_setter_and_getter_test.rb
|
326
275
|
- test/test_helper.rb
|
327
|
-
- test/
|
328
|
-
- test/
|
329
|
-
- test/validation/dry_validation_new_api.rb
|
330
|
-
- test/validation/dry_validation_old_api.rb
|
276
|
+
- test/validate_test.rb
|
277
|
+
- test/validation/dry_validation_test.rb
|
331
278
|
- test/validation/result_test.rb
|
332
279
|
- test/validation_library_provided_test.rb
|
333
280
|
- test/virtual_test.rb
|
data/.rubocop.yml
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
AllCops:
|
2
|
-
TargetRubyVersion: '2.3'
|
3
|
-
|
4
|
-
inherit_from:
|
5
|
-
- https://raw.githubusercontent.com/trailblazer/meta/master/rubocop.yml
|
6
|
-
- .rubocop_todo.yml
|
7
|
-
|
8
|
-
Metrics/ClassLength:
|
9
|
-
Max: 150
|
10
|
-
|
11
|
-
Lint/AssignmentInCondition:
|
12
|
-
Enabled: false
|
13
|
-
|
14
|
-
Style/ClassAndModuleChildren:
|
15
|
-
Enabled: false
|
16
|
-
|
17
|
-
Style/OptionHash:
|
18
|
-
Enabled: false
|
19
|
-
|
20
|
-
Style/ParallelAssignment:
|
21
|
-
Enabled: false
|
22
|
-
|
23
|
-
Style/Send:
|
24
|
-
Enabled: false
|
25
|
-
|
26
|
-
Style/SingleLineMethods:
|
27
|
-
Enabled: false
|
28
|
-
|
29
|
-
Style/Lambda:
|
30
|
-
EnforcedStyle: literal
|