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

Merged
merged 1 commit into from
Oct 15, 2024
Merged

Automated Resyntax fixes #446

merged 1 commit into from
Oct 15, 2024

Conversation

resyntax-ci[bot]
Copy link
Contributor

@resyntax-ci resyntax-ci bot commented Oct 9, 2024

This is an automated change generated by Resyntax.

Pass 1

Applied 1 fix to scribble-lib/help/help.rkt

  • Line 3, tidy-require: Keep imports in require sorted and grouped by phase, with collections before files.

Applied 3 fixes to scribble-lib/help/search.rkt

  • Line 3, tidy-require: Keep imports in require sorted and grouped by phase, with collections before files.
  • Line 21, define-let-to-double-define: This let expression can be pulled up into a define expression.
  • Line 50, if-let-to-cond: cond with internal definitions is preferred over if with let, to reduce nesting

Applied 2 fixes to scribble-lib/scribble/lncs/lang.rkt

  • Line 2, tidy-require: Keep imports in require sorted and grouped by phase, with collections before files.
  • Line 100, if-begin-to-cond: Using cond instead of if here makes begin unnecessary

Summary

Fixed 6 issues in 3 files.

  • Fixed 3 occurrences of tidy-require
  • Fixed 1 occurrence of define-let-to-double-define
  • Fixed 1 occurrence of if-let-to-cond
  • Fixed 1 occurrence of if-begin-to-cond

This is an automated change generated by Resyntax.

#### Pass 1

Applied 1 fix to [`scribble-lib/help/help.rkt`](../blob/HEAD/scribble-lib/help/help.rkt)

  * Line 3, `tidy-require`: Keep imports in `require` sorted and grouped by phase, with collections before files.

Applied 3 fixes to [`scribble-lib/help/search.rkt`](../blob/HEAD/scribble-lib/help/search.rkt)

  * Line 3, `tidy-require`: Keep imports in `require` sorted and grouped by phase, with collections before files.
  * Line 21, `define-let-to-double-define`: This `let` expression can be pulled up into a `define` expression.
  * Line 50, `if-let-to-cond`: `cond` with internal definitions is preferred over `if` with `let`, to reduce nesting

Applied 2 fixes to [`scribble-lib/scribble/lncs/lang.rkt`](../blob/HEAD/scribble-lib/scribble/lncs/lang.rkt)

  * Line 2, `tidy-require`: Keep imports in `require` sorted and grouped by phase, with collections before files.
  * Line 100, `if-begin-to-cond`: Using `cond` instead of `if` here makes `begin` unnecessary

## Summary

Fixed 6 issues in 3 files.

  * Fixed 3 occurrences of `tidy-require`
  * Fixed 1 occurrence of `define-let-to-double-define`
  * Fixed 1 occurrence of `if-let-to-cond`
  * Fixed 1 occurrence of `if-begin-to-cond`
(skip sz)
(when data-desc?
skip
12)
Copy link
Member

Choose a reason for hiding this comment

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

Refactoring seems to be highlighting a bug here! I'll look at that separately.

@mflatt mflatt merged commit bffce10 into master Oct 15, 2024
3 checks passed
@sorawee sorawee deleted the autofix-3-1 branch October 15, 2024 23:18
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