Skip to content

Conversation

@resyntax-ci
Copy link
Contributor

@resyntax-ci resyntax-ci bot commented Feb 21, 2025

Resyntax fixed 49 issues in 20 files.

  • Fixed 11 occurrences of let-to-define
  • Fixed 5 occurrences of cond-let-to-cond-define
  • Fixed 3 occurrences of zero-comparison-to-positive?
  • Fixed 3 occurrences of read-line-any
  • Fixed 3 occurrences of define-lambda-to-define
  • Fixed 3 occurrences of define-values-values-to-define
  • Fixed 2 occurrences of single-clause-match-to-match-define
  • Fixed 2 occurrences of if-begin-to-cond
  • Fixed 2 occurrences of nested-if-to-cond
  • Fixed 2 occurrences of inverted-when
  • Fixed 1 occurrence of define-simple-macro-to-define-syntax-parse-rule
  • Fixed 1 occurrence of if-x-else-x-to-and
  • Fixed 1 occurrence of if-else-false-to-and
  • Fixed 1 occurrence of inline-unnecessary-begin
  • Fixed 1 occurrence of when-expression-in-for-loop-to-when-keyword
  • Fixed 1 occurrence of case-lambda-with-single-case-to-lambda
  • Fixed 1 occurrence of quasiquote-to-list
  • Fixed 1 occurrence of for/fold-result-keyword
  • Fixed 1 occurrence of define-let-to-double-define
  • Fixed 1 occurrence of equal-null-list-to-null-predicate
  • Fixed 1 occurrence of always-throwing-if-to-when
  • Fixed 1 occurrence of unless-expression-in-for-loop-to-unless-keyword
  • Fixed 1 occurrence of syntax-disarm-migration

resyntax-ci bot added 26 commits February 21, 2025 00:31
Specify a line mode of `'any` with `read-line` to avoid differences between Windows and other platforms.
Only one of the `for/fold` expression's result values is used. Use the `#:result` keyword to return just that result.
This negated `when` expression can be replaced by an `unless` expression.
This `if` expression can be refactored to an equivalent expression using `and`.
The `syntax-disarm` function is a legacy function that does nothing.
Internal definitions are recommended instead of `let` expressions, to reduce nesting.
The `define` form supports a shorthand for defining functions.
Using `cond` instead of `if` here makes `begin` unnecessary
The `define-simple-macro` form has been renamed to `define-syntax-parse-rule`.
The `null?` predicate can be used to test for the empty list.
This conditional expression can be replaced with a simpler, equivalent expression.
Internal definitions are recommended instead of `let` expressions, to reduce nesting.
This `case-lambda` form only has one case. Use a regular lambda instead.
This expression is equivalent to calling the `positive?` predicate.
This `match` expression can be simplified using `match-define`.
This use of `define-values` is unnecessary.
Use the `#:unless` keyword instead of `unless` to reduce loop body indentation.
Use the `#:when` keyword instead of `when` to reduce loop body indentation.
Using `when` and `unless` is simpler than a conditional with an always-throwing branch.
This quasiquotation is equialent to a simple `list` call.
This `begin` form can be flattened into the surrounding definition context.
Internal definitions are recommended instead of `let` expressions, to reduce nesting.
Internal definitions are recommended instead of `let` expressions, to reduce nesting.
This `if`-`else` chain can be converted to a `cond` expression.
This `match` expression can be simplified using `match-define`.
This `let` expression can be pulled up into a `define` expression.
@samth samth closed this Jun 6, 2025
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