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 #700

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Automated Resyntax fixes #700

wants to merge 4 commits into from

Conversation

resyntax-ci[bot]
Copy link
Contributor

@resyntax-ci resyntax-ci bot commented Dec 8, 2024

Resyntax fixed 20 issues in 8 files.

  • Fixed 11 occurrences of let-to-define
  • Fixed 7 occurrences of tidy-require
  • Fixed 1 occurrence of make-temporary-directory-migration
  • Fixed 1 occurrence of define-lambda-to-define

resyntax-ci bot added 4 commits December 8, 2024 00:10
Internal definitions are recommended instead of `let` expressions, to reduce nesting.
Keep imports in `require` sorted and grouped by phase, with collections before files.
The `define` form supports a shorthand for defining functions.
Use `make-temporary-directory` to make directories instead of `make-temporary-file`.
expression
text))]
[text
(let-values ([(test-count test-passed-count
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This formats poorly :(

I'm surprised it's not converted to define-values though.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's 20 fixes in this pull request already, so it won't add more.

check-failures
signature-violations)
(parse-test-failures text)])
(when (not (equal? check-failures check-failures-expected))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be unless? Ditto for below when

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment as above about the fix limit.

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.

2 participants