Skip to content

Commit 8b06c76

Browse files
committed
More formatting fixes
1 parent 45f5019 commit 8b06c76

File tree

6 files changed

+463
-185
lines changed

6 files changed

+463
-185
lines changed

bin/test

Lines changed: 13 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -50,25 +50,16 @@ END {
5050

5151
__END__
5252
aref_field.rb:4
53-
array_literal.rb:5
54-
array_literal.rb:7
55-
array_literal.rb:8
56-
array_literal.rb:10
57-
array_literal.rb:17
58-
array_literal.rb:19
5953
assign.rb:5
6054
assign.rb:6
6155
assoc.rb:1
62-
assoc.rb:7
6356
assoc.rb:8
64-
bare_assoc_hash.rb:1
65-
bare_assoc_hash.rb:2
66-
bare_assoc_hash.rb:3
6757
bare_assoc_hash.rb:4
6858
bodystmt.rb:6
6959
brace_block.rb:0
7060
brace_block.rb:1
7161
break.rb:8
62+
break.rb:9
7263
call.rb:7
7364
call.rb:8
7465
call.rb:9
@@ -77,13 +68,15 @@ call.rb:11
7768
call.rb:14
7869
call.rb:15
7970
call.rb:16
80-
command.rb:1
8171
command.rb:8
8272
command.rb:9
83-
command_call.rb:1
73+
command_call.rb:2
74+
command_call.rb:3
75+
command_call.rb:4
8476
command_call.rb:5
8577
command_call.rb:6
8678
command_call.rb:7
79+
command_call.rb:8
8780
command_call.rb:9
8881
command_call.rb:10
8982
command_call.rb:11
@@ -101,7 +94,6 @@ do_block.rb:3
10194
do_block.rb:4
10295
dyna_symbol.rb:0
10396
dyna_symbol.rb:4
104-
dyna_symbol.rb:5
10597
else.rb:1
10698
else.rb:3
10799
else.rb:4
@@ -113,59 +105,26 @@ embdoc.rb:0
113105
embdoc.rb:1
114106
end_content.rb:0
115107
excessed_comma.rb:0
116-
field.rb:0
117-
for.rb:2
118-
for.rb:5
119-
for.rb:7
120-
for.rb:8
121-
hash.rb:2
122-
hash.rb:3
123-
hash.rb:4
124-
hash.rb:5
125-
hash.rb:8
126108
heredoc.rb:17
127-
hshptn.rb:0
128-
hshptn.rb:1
129-
hshptn.rb:2
130-
hshptn.rb:5
131-
hshptn.rb:6
132-
hshptn.rb:14
133-
hshptn.rb:15
134109
if.rb:1
135110
if.rb:3
136111
if.rb:4
137112
if.rb:5
138113
if.rb:6
139114
if.rb:7
140115
if.rb:8
141-
if.rb:9
142116
if.rb:10
143117
if.rb:12
144118
if.rb:13
145119
if_mod.rb:3
146120
ifop.rb:1
121+
ifop.rb:2
147122
ifop.rb:3
148-
in.rb:1
149-
in.rb:2
150-
in.rb:4
151123
label.rb:1
152-
lambda.rb:2
153-
lambda.rb:3
154-
lambda.rb:4
155-
lambda.rb:6
156-
lambda.rb:7
157-
lambda.rb:8
158-
lambda.rb:9
159-
lambda.rb:10
160-
lambda.rb:11
161-
lambda.rb:12
162-
lambda.rb:13
163-
lambda.rb:14
164-
lambda.rb:15
165-
lambda.rb:16
166-
lambda.rb:17
167124
lambda.rb:18
168125
lambda.rb:19
126+
lambda.rb:20
127+
lambda.rb:21
169128
massign.rb:1
170129
method_add_block.rb:0
171130
mlhs.rb:1
@@ -176,33 +135,31 @@ next.rb:15
176135
next.rb:16
177136
next.rb:17
178137
next.rb:18
179-
not.rb:1
180-
not.rb:2
138+
next.rb:19
181139
not.rb:3
182-
not.rb:4
183140
not.rb:5
184-
not.rb:6
185141
params.rb:23
186142
params.rb:34
143+
rassign.rb:6
187144
regexp_literal.rb:1
188145
regexp_literal.rb:2
189146
regexp_literal.rb:3
190147
regexp_literal.rb:4
191148
regexp_literal.rb:12
149+
regexp_literal.rb:14
150+
regexp_literal.rb:15
192151
regexp_literal.rb:17
193152
regexp_literal.rb:18
194153
rescue.rb:0
195-
rescue_mod.rb:0
196154
return.rb:8
197155
return.rb:9
156+
return.rb:12
198157
statements.rb:0
199158
statements.rb:1
200159
string_concat.rb:0
201160
string_embexpr.rb:5
202161
string_literal.rb:15
203162
string_literal.rb:16
204-
unary.rb:0
205-
unary.rb:1
206163
unless.rb:3
207164
unless.rb:4
208165
unless.rb:5

fixtures/array_literal.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,5 +87,7 @@
8787
[:foo, "bar"]
8888
%
8989
[:foo, :"bar"]
90+
-
91+
%i[foo bar]
9092
%
9193
[foo, bar] # comment

fixtures/for.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@
3838
for foo, in [[foo, bar]]
3939
foo
4040
end
41+
-
42+
for foo, * in [[foo, bar]]
43+
foo
44+
end
4145
%
4246
for foo in bar # comment1
4347
# comment2

fixtures/hash.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
%
1818
{ bar => bar, "baz": baz }
1919
-
20-
{ bar => bar, :"baz" => baz }
20+
{ bar => bar, :baz => baz }
2121
%
2222
{ bar: barrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr, baz: bazzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz }
2323
-

fixtures/hshptn.rb

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,26 @@
22
case foo
33
in ** then
44
end
5+
-
6+
case foo
7+
in { ** }
8+
end
59
%
610
case foo
711
in bar:
812
end
13+
-
14+
case foo
15+
in { bar: }
16+
end
917
%
1018
case foo
1119
in bar: bar
1220
end
21+
-
22+
case foo
23+
in { bar: bar }
24+
end
1325
%
1426
case foo
1527
in bar:, baz:
@@ -30,6 +42,10 @@
3042
case foo
3143
in **bar
3244
end
45+
-
46+
case foo
47+
in { **bar }
48+
end
3349
% # >= 2.7.3
3450
case foo
3551
in {
@@ -74,6 +90,10 @@
7490
case foo
7591
in **nil
7692
end
93+
-
94+
case foo
95+
in { **nil }
96+
end
7797
%
7898
case foo
7999
in bar, { baz:, **nil }
@@ -82,5 +102,5 @@
82102
-
83103
case foo
84104
in [bar, { baz:, **nil }]
85-
in qux:
105+
in { qux: }
86106
end

0 commit comments

Comments
 (0)