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

Merged
merged 10 commits into from
Dec 6, 2024
Merged

Automated Resyntax fixes #1417

merged 10 commits into from
Dec 6, 2024

Conversation

resyntax-ci[bot]
Copy link
Contributor

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

WARNING: Missing test for base type 'Positive-Single-Flonum'
WARNING: Missing test for base type '∪'
WARNING: Missing test for base type 'Single-Flonum'
WARNING: Missing test for base type 'Intersection'
WARNING: Missing test for base type 'Inexact-Imaginary'
WARNING: Missing test for base type 'Single-Flonum-Complex'
WARNING: Missing test for base type 'Union'
WARNING: Missing test for base type 'Single-Flonum-Zero'
WARNING: Missing test for base type 'ExtFlVector'
WARNING: Missing test for base type '∩'
WARNING: Missing test for base type 'ExtFlonum-Positive-Zero'
WARNING: Missing test for base type 'Nonpositive-ExtFlonum'
WARNING: Missing test for base type 'Place'
WARNING: Missing test for base type 'U'
WARNING: Missing test for base type 'ExtFlonum-Zero'
WARNING: Missing test for base type 'Internal-Definition-Context'
WARNING: Missing test for base type 'Read-Table'
WARNING: Missing test for base type 'Un'
WARNING: Missing test for base type 'Negative-Single-Flonum'
WARNING: Missing test for base type 'Unquoted-Printing-String'
WARNING: Missing test for base type 'Negative-ExtFlonum'
WARNING: Missing test for base type 'Single-Flonum-Negative-Zero'
WARNING: Missing test for base type 'Single-Flonum-Positive-Zero'
WARNING: Missing test for base type 'ExtFlonum'
WARNING: Missing test for base type 'Nonnegative-Single-Flonum'
WARNING: Missing test for base type 'ExtFlonum-Nan'
WARNING: Missing test for base type 'ExtFlonum-Negative-Zero'
WARNING: Missing test for base type 'Single-Flonum-Nan'
WARNING: Missing test for base type 'Positive-ExtFlonum'
WARNING: Missing test for base type 'Nonnegative-ExtFlonum'
WARNING: Missing test for base type 'Nonpositive-Single-Flonum'
Resyntax fixed 40 issues in 20 files.

  • Fixed 19 occurrences of single-clause-match-to-match-define
  • Fixed 13 occurrences of tidy-require
  • Fixed 2 occurrences of let-to-define
  • Fixed 1 occurrence of define-let-to-double-define
  • Fixed 1 occurrence of nested-for-to-for*
  • Fixed 1 occurrence of define-lambda-to-define
  • Fixed 1 occurrence of unless-expression-in-for-loop-to-unless-keyword
  • Fixed 1 occurrence of define-values-values-to-define
  • Fixed 1 occurrence of sort-with-keyed-comparator-to-sort-by-key

resyntax-ci bot added 10 commits December 6, 2024 00:31
Keep imports in `require` sorted and grouped by phase, with collections before files.
This `match` expression can be simplified using `match-define`.
This use of `define-values` is unnecessary.
Internal definitions are recommended instead of `let` expressions, to reduce nesting.
This `sort` expression can be replaced with a simpler, equivalent expression.
These nested `for` loops can be replaced by a single `for*` loop.
This `let` expression can be pulled up into a `define` expression.
Use the `#:unless` keyword instead of `unless` to reduce loop body indentation.
The `define` form supports a shorthand for defining functions.
Internal definitions are recommended instead of `let` expressions, to reduce nesting.
@jackfirth
Copy link
Contributor

Those weird warnings seem to be coming from here. Not sure why that file is printing out warnings at require time, nor am I sure why Resyntax is including that output in its pull request description.

jackfirth added a commit to jackfirth/resyntax that referenced this pull request Dec 6, 2024
This should keep it out of Autofixer pull request descriptions, as observed in racket/typed-racket#1417.
jackfirth added a commit to jackfirth/resyntax that referenced this pull request Dec 6, 2024
This should keep it out of Autofixer pull request descriptions, as observed in racket/typed-racket#1417.
@samth samth merged commit f12415f into master Dec 6, 2024
5 checks passed
@samth samth deleted the autofix-14-1 branch December 6, 2024 18:56
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