Commit 21060b7
authored
Automated Resyntax fixes (#695)
This is an automated change generated by Resyntax.
#### Pass 1
Applied 1 fix to [`drracket/help/private/bug-report-controls.rkt`](../blob/HEAD/drracket/help/private/bug-report-controls.rkt)
* Line 187, `unused-definition`: This definition is not used.
Applied 5 fixes to [`drracket-tool-test/tests/check-syntax/syncheck-direct.rkt`](../blob/HEAD/drracket-tool-test/tests/check-syntax/syncheck-direct.rkt)
* Line 3, `tidy-require`: Keep imports in `require` sorted and grouped by phase, with collections before files.
* Line 39, `if-else-false-to-and`: This `if` expression can be refactored to an equivalent expression using `and`.
* Line 1112, `make-temporary-directory-migration`: Use `make-temporary-directory` to make directories instead of `make-temporary-file`.
* Line 1139, `make-temporary-directory-migration`: Use `make-temporary-directory` to make directories instead of `make-temporary-file`.
* Line 1216, `when-expression-in-for-loop-to-when-keyword`: Use the `#:when` keyword instead of `when` to reduce loop body indentation.
Applied 8 fixes to [`drracket/macro-debugger/tool.rkt`](../blob/HEAD/drracket/macro-debugger/tool.rkt)
* Line 80, `unless-expression-in-for-loop-to-unless-keyword`: Use the `#:unless` keyword instead of `unless` to reduce loop body indentation.
* Line 168, `let-to-define`: Internal definitions are recommended instead of `let` expressions, to reduce nesting.
* Line 174, `if-begin-to-cond`: Using `cond` instead of `if` here makes `begin` unnecessary
* Line 225, `let-to-define`: Internal definitions are recommended instead of `let` expressions, to reduce nesting.
* Line 287, `let-to-define`: Internal definitions are recommended instead of `let` expressions, to reduce nesting.
* Line 349, `let-to-define`: Internal definitions are recommended instead of `let` expressions, to reduce nesting.
* Line 410, `let-to-define`: Internal definitions are recommended instead of `let` expressions, to reduce nesting.
* Line 465, `let-to-define`: Internal definitions are recommended instead of `let` expressions, to reduce nesting.
#### Pass 2
Applied 1 fix to [`drracket/macro-debugger/tool.rkt`](../blob/HEAD/drracket/macro-debugger/tool.rkt)
* Line 465, `let-to-define`: Internal definitions are recommended instead of `let` expressions, to reduce nesting.
## Summary
Fixed 15 issues in 3 files.
* Fixed 7 occurrences of `let-to-define`
* Fixed 2 occurrences of `make-temporary-directory-migration`
* Fixed 1 occurrence of `tidy-require`
* Fixed 1 occurrence of `if-else-false-to-and`
* Fixed 1 occurrence of `when-expression-in-for-loop-to-when-keyword`
* Fixed 1 occurrence of `unless-expression-in-for-loop-to-unless-keyword`
* Fixed 1 occurrence of `if-begin-to-cond`
* Fixed 1 occurrence of `unused-definition`
Co-authored-by: resyntax-ci[bot] <181813515+resyntax-ci[bot]@users.noreply.github.com>1 parent 0375cc8 commit 21060b7
File tree
3 files changed
+51
-57
lines changed- drracket-tool-test/tests/check-syntax
- drracket
- help/private
- macro-debugger
3 files changed
+51
-57
lines changedLines changed: 10 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | 4 | | |
| 5 | + | |
| 6 | + | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | | - | |
12 | | - | |
13 | | - | |
| 12 | + | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
| |||
36 | 35 | | |
37 | 36 | | |
38 | 37 | | |
39 | | - | |
40 | | - | |
41 | | - | |
| 38 | + | |
42 | 39 | | |
43 | 40 | | |
44 | 41 | | |
| |||
1109 | 1106 | | |
1110 | 1107 | | |
1111 | 1108 | | |
1112 | | - | |
| 1109 | + | |
1113 | 1110 | | |
1114 | 1111 | | |
1115 | 1112 | | |
| |||
1136 | 1133 | | |
1137 | 1134 | | |
1138 | 1135 | | |
1139 | | - | |
| 1136 | + | |
1140 | 1137 | | |
1141 | 1138 | | |
1142 | 1139 | | |
| |||
1213 | 1210 | | |
1214 | 1211 | | |
1215 | 1212 | | |
1216 | | - | |
1217 | | - | |
1218 | | - | |
| 1213 | + | |
| 1214 | + | |
| 1215 | + | |
1219 | 1216 | | |
1220 | 1217 | | |
1221 | 1218 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
187 | | - | |
188 | 187 | | |
189 | 188 | | |
190 | 189 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
81 | | - | |
82 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
172 | 172 | | |
173 | 173 | | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
| |||
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
225 | | - | |
226 | | - | |
| 225 | + | |
| 226 | + | |
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
295 | 294 | | |
296 | 295 | | |
297 | 296 | | |
| |||
346 | 345 | | |
347 | 346 | | |
348 | 347 | | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
355 | 354 | | |
356 | 355 | | |
357 | 356 | | |
| |||
407 | 406 | | |
408 | 407 | | |
409 | 408 | | |
410 | | - | |
411 | | - | |
412 | | - | |
413 | | - | |
414 | | - | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
415 | 413 | | |
416 | 414 | | |
417 | 415 | | |
| |||
462 | 460 | | |
463 | 461 | | |
464 | 462 | | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | | - | |
469 | | - | |
470 | | - | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
471 | 469 | | |
472 | 470 | | |
473 | 471 | | |
| |||
0 commit comments