Commit 58a0267
Automated Resyntax fixes
This is an automated change generated by Resyntax.
#### Pass 1
Applied 9 fixes to [`scribble-text-lib/scribble/text/output.rkt`](../blob/HEAD/scribble-text-lib/scribble/text/output.rkt)
* Line 2, `tidy-require`: Keep imports in `require` sorted and grouped by phase, with collections before files.
* Line 50, `let-to-define`: Internal definitions are recommended instead of `let` expressions, to reduce nesting.
* Line 76, `if-begin-to-cond`: Using `cond` instead of `if` here makes `begin` unnecessary
* Line 89, `if-let-to-cond`: `cond` with internal definitions is preferred over `if` with `let`, to reduce nesting
* Line 123, `if-begin-to-cond`: Using `cond` instead of `if` here makes `begin` unnecessary
* Line 148, `if-begin-to-cond`: Using `cond` instead of `if` here makes `begin` unnecessary
* Line 153, `if-begin-to-cond`: Using `cond` instead of `if` here makes `begin` unnecessary
* Line 246, `if-let-to-cond`: `cond` with internal definitions is preferred over `if` with `let`, to reduce nesting
* Line 295, `if-let-to-cond`: `cond` with internal definitions is preferred over `if` with `let`, to reduce nesting
Applied 4 fixes to [`scribble-text-lib/scribble/text/syntax-utils.rkt`](../blob/HEAD/scribble-text-lib/scribble/text/syntax-utils.rkt)
* Line 3, `tidy-require`: Keep imports in `require` sorted and grouped by phase, with collections before files.
* Line 123, `if-let-to-cond`: `cond` with internal definitions is preferred over `if` with `let`, to reduce nesting
* Line 161, `always-throwing-if-to-when`: Using `when` and `unless` is simpler than a conditional with an always-throwing branch.
* Line 185, `tidy-require`: Keep imports in `require` sorted and grouped by phase, with collections before files.
Applied 1 fix to [`scribble-text-lib/scribble/text/lang.rkt`](../blob/HEAD/scribble-text-lib/scribble/text/lang.rkt)
* Line 3, `tidy-require`: Keep imports in `require` sorted and grouped by phase, with collections before files.
Applied 1 fix to [`scribble-text-lib/scribble/text/main.rkt`](../blob/HEAD/scribble-text-lib/scribble/text/main.rkt)
* Line 3, `tidy-require`: Keep imports in `require` sorted and grouped by phase, with collections before files.
Applied 5 fixes to [`scribble-lib/scriblib/private/counter.rkt`](../blob/HEAD/scribble-lib/scriblib/private/counter.rkt)
* Line 20, `quasiquote-to-list`: This quasiquotation is equialent to a simple `list` call.
* Line 39, `let-to-define`: Internal definitions are recommended instead of `let` expressions, to reduce nesting.
* Line 55, `let-to-define`: Internal definitions are recommended instead of `let` expressions, to reduce nesting.
* Line 74, `map-to-for`: This `map` operation can be replaced with a `for/list` loop.
* Line 87, `let-to-define`: Internal definitions are recommended instead of `let` expressions, to reduce nesting.
## Summary
Fixed 20 issues in 5 files.
* Fixed 5 occurrences of `tidy-require`
* Fixed 4 occurrences of `if-let-to-cond`
* Fixed 4 occurrences of `let-to-define`
* Fixed 4 occurrences of `if-begin-to-cond`
* Fixed 1 occurrence of `quasiquote-to-list`
* Fixed 1 occurrence of `always-throwing-if-to-when`
* Fixed 1 occurrence of `map-to-for`1 parent 37ab227 commit 58a0267
File tree
5 files changed
+204
-158
lines changed- scribble-lib/scriblib/private
- scribble-text-lib/scribble/text
5 files changed
+204
-158
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
| |||
71 | 72 | | |
72 | 73 | | |
73 | 74 | | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
82 | 80 | | |
83 | 81 | | |
84 | 82 | | |
85 | 83 | | |
86 | 84 | | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
113 | 105 | | |
114 | 106 | | |
115 | 107 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
5 | 8 | | |
6 | 9 | | |
7 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
5 | 8 | | |
6 | 9 | | |
7 | 10 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
| 2 | + | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| |||
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
86 | 99 | | |
87 | 100 | | |
88 | 101 | | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
117 | 143 | | |
118 | 144 | | |
119 | 145 | | |
120 | 146 | | |
121 | 147 | | |
122 | 148 | | |
123 | | - | |
124 | | - | |
125 | | - | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
126 | 156 | | |
127 | 157 | | |
128 | 158 | | |
| |||
145 | 175 | | |
146 | 176 | | |
147 | 177 | | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
158 | 190 | | |
159 | 191 | | |
160 | 192 | | |
| |||
243 | 275 | | |
244 | 276 | | |
245 | 277 | | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
251 | 288 | | |
252 | 289 | | |
253 | 290 | | |
| |||
292 | 329 | | |
293 | 330 | | |
294 | 331 | | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
301 | 339 | | |
302 | 340 | | |
303 | 341 | | |
| |||
0 commit comments