Skip to content

Conversation

@resyntax-ci
Copy link
Contributor

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

Resyntax fixed 50 issues in 18 files.

  • Fixed 13 occurrences of tidy-require
  • Fixed 6 occurrences of let-to-define
  • Fixed 6 occurrences of define-lambda-to-define
  • Fixed 4 occurrences of unused-definition
  • Fixed 3 occurrences of read-line-any
  • Fixed 3 occurrences of single-clause-match-to-match-define
  • Fixed 3 occurrences of if-let-to-cond
  • Fixed 3 occurrences of if-begin-to-cond
  • Fixed 2 occurrences of map-to-for
  • Fixed 1 occurrence of always-throwing-cond-to-when
  • Fixed 1 occurrence of syntax-disarm-migration
  • Fixed 1 occurrence of zero-comparison-lambda-to-positive?
  • Fixed 1 occurrence of inverted-unless
  • Fixed 1 occurrence of define-let-to-double-define
  • Fixed 1 occurrence of inline-unnecessary-define
  • Fixed 1 occurrence of for/fold-with-conditional-body-to-unless-keyword

resyntax-ci bot added 16 commits December 13, 2024 00:34
Specify a line mode of `'any` with `read-line` to avoid differences between Windows and other platforms.
Keep imports in `require` sorted and grouped by phase, with collections before files.
This `match` expression can be simplified using `match-define`.
Using `cond` instead of `if` here makes `begin` unnecessary
Internal definitions are recommended instead of `let` expressions, to reduce nesting.
`cond` with internal definitions is preferred over `if` with `let`, to reduce nesting
This `let` expression can be pulled up into a `define` expression.
This definition is not used.
This negated `unless` expression can be replaced by a `when` expression.
The `syntax-disarm` function is a legacy function that does nothing.
This `map` operation can be replaced with a `for/list` loop.
The `define` form supports a shorthand for defining functions.
Using `when` and `unless` is simpler than a conditional with an always-throwing branch.
This lambda function is equivalent to the built-in `positive?` predicate.
This `for/fold` loop can be simplified by using the `#:unless` keyword.
This variable is returned immediately and can be inlined.
@jackfirth
Copy link
Contributor

This failed because of jackfirth/resyntax#410. Closing.

@jackfirth jackfirth closed this Dec 13, 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.

2 participants