-
-
Notifications
You must be signed in to change notification settings - Fork 93
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
Automated Resyntax fixes #682
Conversation
This is an automated change generated by Resyntax. #### Pass 1 Applied 1 fix to [`drracket/drracket/private/syncheck/gui.rkt`](../blob/HEAD/drracket/drracket/private/syncheck/gui.rkt) * Line 21, `tidy-require`: Keep imports in `require` sorted and grouped by phase, with collections before files. Applied 4 fixes to [`drracket/drracket/drracket.rkt`](../blob/HEAD/drracket/drracket/drracket.rkt) * Line 2, `tidy-require`: Keep imports in `require` sorted and grouped by phase, with collections before files. * Line 26, `let-to-define`: Internal definitions are recommended instead of `let` expressions, to reduce nesting. * Line 93, `map-to-for`: This `map` operation can be replaced with a `for/list` loop. * Line 143, `let-to-define`: Internal definitions are recommended instead of `let` expressions, to reduce nesting. Applied 2 fixes to [`drracket-tool-text-lib/drracket/private/syncheck/annotate.rkt`](../blob/HEAD/drracket-tool-text-lib/drracket/private/syncheck/annotate.rkt) * Line 13, `let-to-define`: Internal definitions are recommended instead of `let` expressions, to reduce nesting. * Line 57, `let-to-define`: Internal definitions are recommended instead of `let` expressions, to reduce nesting. Applied 2 fixes to [`drracket/drracket/private/tooltip.rkt`](../blob/HEAD/drracket/drracket/private/tooltip.rkt) * Line 2, `tidy-require`: Keep imports in `require` sorted and grouped by phase, with collections before files. * Line 119, `delete-redundant-let`: This `let` binding does nothing and can be removed. Applied 1 fix to [`drracket/drracket/private/tracing.rkt`](../blob/HEAD/drracket/drracket/private/tracing.rkt) * Line 3, `tidy-require`: Keep imports in `require` sorted and grouped by phase, with collections before files. ## Summary Fixed 10 issues in 5 files. * Fixed 4 occurrences of `tidy-require` * Fixed 4 occurrences of `let-to-define` * Fixed 1 occurrence of `map-to-for` * Fixed 1 occurrence of `delete-redundant-let`
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resyntax analyzed 5 files in this pull request and has added suggestions.
I should probably should set up the resyntax reviewer bot to not bother reviewing pull requests from the autofixer bot... |
(void (thread (λ () | ||
(let loop () | ||
(define vec (sync evt)) | ||
(define str (vector-ref vec 1)) | ||
(when (regexp-match #rx"^cm: *compil(ing|ed)" str) | ||
(display str) | ||
(newline)) | ||
(loop)))))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a fan of this indentation change, filed sorawee/fmt#72
I'm closing this one since it's from before the autofixer got better at focusing on fully fixing the files it touches with multiple passes. |
This is an automated change generated by Resyntax.
Pass 1
Applied 1 fix to
drracket/drracket/private/syncheck/gui.rkt
tidy-require
: Keep imports inrequire
sorted and grouped by phase, with collections before files.Applied 4 fixes to
drracket/drracket/drracket.rkt
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.map-to-for
: Thismap
operation can be replaced with afor/list
loop.let-to-define
: Internal definitions are recommended instead oflet
expressions, to reduce nesting.Applied 2 fixes to
drracket-tool-text-lib/drracket/private/syncheck/annotate.rkt
let-to-define
: Internal definitions are recommended instead oflet
expressions, to reduce nesting.let-to-define
: Internal definitions are recommended instead oflet
expressions, to reduce nesting.Applied 2 fixes to
drracket/drracket/private/tooltip.rkt
tidy-require
: Keep imports inrequire
sorted and grouped by phase, with collections before files.delete-redundant-let
: Thislet
binding does nothing and can be removed.Applied 1 fix to
drracket/drracket/private/tracing.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
map-to-for
delete-redundant-let