-
-
Notifications
You must be signed in to change notification settings - Fork 95
Automated Resyntax fixes #681
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This is an automated change generated by Resyntax. #### Pass 1 Applied 1 fix to [`drracket-test/tests/drracket/repl-test-raw.rkt`](../blob/HEAD/drracket-test/tests/drracket/repl-test-raw.rkt) * Line 2, `tidy-require`: Keep imports in `require` sorted and grouped by phase, with collections before files. Applied 4 fixes to [`drracket-test/tests/drracket/populate-compiled.rkt`](../blob/HEAD/drracket-test/tests/drracket/populate-compiled.rkt) * Line 2, `tidy-require`: Keep imports in `require` sorted and grouped by phase, with collections before files. * Line 12, `make-temporary-directory-migration`: Use `make-temporary-directory` to make directories instead of `make-temporary-file`. * Line 82, `tidy-require`: Keep imports in `require` sorted and grouped by phase, with collections before files. * Line 97, `let-to-define`: Internal definitions are recommended instead of `let` expressions, to reduce nesting. Applied 3 fixes to [`drracket/drracket/private/honu-logo.rkt`](../blob/HEAD/drracket/drracket/private/honu-logo.rkt) * Line 12, `let-to-define`: Internal definitions are recommended instead of `let` expressions, to reduce nesting. * Line 18, `define-lambda-to-define`: The `define` form supports a shorthand for defining functions (including function-returning functions). * Line 131, `let-to-define`: Internal definitions are recommended instead of `let` expressions, to reduce nesting. Applied 1 fix to [`drracket-test/tests/drracket/module-browser.rkt`](../blob/HEAD/drracket-test/tests/drracket/module-browser.rkt) * Line 2, `tidy-require`: Keep imports in `require` sorted and grouped by phase, with collections before files. Applied 1 fix to [`drracket/drracket/syncheck-drracket-button.rkt`](../blob/HEAD/drracket/drracket/syncheck-drracket-button.rkt) * Line 2, `tidy-require`: Keep imports in `require` sorted and grouped by phase, with collections before files. ## Summary Fixed 10 issues in 5 files. * Fixed 5 occurrences of `tidy-require` * Fixed 3 occurrences of `let-to-define` * Fixed 1 occurrence of `make-temporary-directory-migration` * Fixed 1 occurrence of `define-lambda-to-define`
I think the order of the imports can matter also, if there is some overlap between imported names. I noticed this issue once after moving the |
@Metaxal I was under the impression that such a scenario is a compile error unless the two exported identifiers are |
Hm 🤔 A quick test right now tells me that you're right (which is a relief actually), but I do remember having an issue of the sort, and since then I'm always placing If I can reproduce the issue I'll try to remember to send it your way. In the meantime, just forget what I said I guess. |
The rest of the changes look good to me, assuming the guesses I wrote about were correct. |
Although it's not about overlapping names, racket/require is an example that needs to be required before using any of the extra During a phase where I was infatuated with |
This is an automated change generated by Resyntax.
Pass 1
Applied 1 fix to
drracket-test/tests/drracket/repl-test-raw.rkt
tidy-require
: Keep imports inrequire
sorted and grouped by phase, with collections before files.Applied 4 fixes to
drracket-test/tests/drracket/populate-compiled.rkt
tidy-require
: Keep imports inrequire
sorted and grouped by phase, with collections before files.make-temporary-directory-migration
: Usemake-temporary-directory
to make directories instead ofmake-temporary-file
.tidy-require
: Keep imports inrequire
sorted and grouped by phase, with collections before files.let-to-define
: Internal definitions are recommended instead oflet
expressions, to reduce nesting.Applied 3 fixes to
drracket/drracket/private/honu-logo.rkt
let-to-define
: Internal definitions are recommended instead oflet
expressions, to reduce nesting.define-lambda-to-define
: Thedefine
form supports a shorthand for defining functions (including function-returning functions).let-to-define
: Internal definitions are recommended instead oflet
expressions, to reduce nesting.Applied 1 fix to
drracket-test/tests/drracket/module-browser.rkt
tidy-require
: Keep imports inrequire
sorted and grouped by phase, with collections before files.Applied 1 fix to
drracket/drracket/syncheck-drracket-button.rkt
tidy-require
: Keep imports inrequire
sorted and grouped by phase, with collections before files.Summary
Fixed 10 issues in 5 files.
tidy-require
let-to-define
make-temporary-directory-migration
define-lambda-to-define