Skip to content

Commit 78b05e6

Browse files
resyntax-ci[bot]mflatt
authored andcommitted
Automated Resyntax fixes
This is an automated change generated by Resyntax. #### Pass 1 Applied 1 fix to [`scribble-lib/scribble/base/lang/configure-runtime.rkt`](../blob/HEAD/scribble-lib/scribble/base/lang/configure-runtime.rkt) * Line 3, `tidy-require`: Keep imports in `require` sorted and grouped by phase, with collections before files. Applied 1 fix to [`scribble-lib/scribble/lncs/lang.rkt`](../blob/HEAD/scribble-lib/scribble/lncs/lang.rkt) * Line 2, `tidy-require`: Keep imports in `require` sorted and grouped by phase, with collections before files. Applied 17 fixes to [`scribble-lib/scribble/eval.rkt`](../blob/HEAD/scribble-lib/scribble/eval.rkt) * Line 71, `let-to-define`: Internal definitions are recommended instead of `let` expressions, to reduce nesting. * Line 89, `map-to-for`: This `map` operation can be replaced with a `for/list` loop. * Line 109, `let-to-define`: Internal definitions are recommended instead of `let` expressions, to reduce nesting. * Line 164, `map-to-for`: This `map` operation can be replaced with a `for/list` loop. * Line 176, `cond-let-to-cond-define`: Internal definitions are recommended instead of `let` expressions, to reduce nesting. * Line 193, `nested-if-to-cond`: This `if`-`else` chain can be converted to a `cond` expression. * Line 270, `always-throwing-if-to-when`: Using `when` and `unless` is simpler than a conditional with an always-throwing branch. * Line 276, `let-to-define`: Internal definitions are recommended instead of `let` expressions, to reduce nesting. * Line 407, `cond-let-to-cond-define`: Internal definitions are recommended instead of `let` expressions, to reduce nesting. * Line 421, `datum->syntax-migration`: The fifth argument to `datum->syntax` is ignored. * Line 452, `let-to-define`: Internal definitions are recommended instead of `let` expressions, to reduce nesting. * Line 463, `let-to-define`: Internal definitions are recommended instead of `let` expressions, to reduce nesting. * Line 476, `let-to-define`: Internal definitions are recommended instead of `let` expressions, to reduce nesting. * Line 486, `let-to-define`: Internal definitions are recommended instead of `let` expressions, to reduce nesting. * Line 502, `let-to-define`: Internal definitions are recommended instead of `let` expressions, to reduce nesting. * Line 547, `let-to-define`: Internal definitions are recommended instead of `let` expressions, to reduce nesting. * Line 564, `let-to-define`: Internal definitions are recommended instead of `let` expressions, to reduce nesting. Applied 1 fix to [`scribble-lib/scribble/manual.rkt`](../blob/HEAD/scribble-lib/scribble/manual.rkt) * Line 2, `tidy-require`: Keep imports in `require` sorted and grouped by phase, with collections before files. ## Summary Fixed 20 issues in 4 files. * Fixed 10 occurrences of `let-to-define` * Fixed 3 occurrences of `tidy-require` * Fixed 2 occurrences of `map-to-for` * Fixed 2 occurrences of `cond-let-to-cond-define` * Fixed 1 occurrence of `nested-if-to-cond` * Fixed 1 occurrence of `always-throwing-if-to-when` * Fixed 1 occurrence of `datum->syntax-migration`
1 parent 5b89a88 commit 78b05e6

File tree

4 files changed

+234
-241
lines changed

4 files changed

+234
-241
lines changed

scribble-lib/scribble/base/lang/configure-runtime.rkt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#lang racket/base
22

3-
(require (only-in scribble/reader make-at-readtable)
4-
racket/interaction-info)
3+
(require racket/interaction-info
4+
(only-in scribble/reader make-at-readtable))
55

66
(define old-read (current-read-interaction))
77
(define (scribble-read-interaction src in)

0 commit comments

Comments
 (0)