Skip to content
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

Closed
wants to merge 1 commit into from
Closed

Automated Resyntax fixes #682

wants to merge 1 commit into from

Conversation

resyntax-ci[bot]
Copy link
Contributor

@resyntax-ci resyntax-ci bot commented Sep 18, 2024

This is an automated change generated by Resyntax.

Pass 1

Applied 1 fix to 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

  • 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

  • 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

  • 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

  • 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

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`
Copy link
Contributor

@github-actions github-actions bot left a 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.

@jackfirth
Copy link
Collaborator

I should probably should set up the resyntax reviewer bot to not bother reviewing pull requests from the autofixer bot...

Comment on lines +30 to +37
(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))))))
Copy link
Collaborator

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

@jackfirth
Copy link
Collaborator

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.

@jackfirth jackfirth closed this Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant