drracket icon indicating copy to clipboard operation
drracket copied to clipboard

Automated Resyntax fixes

Open resyntax-ci[bot] opened this issue 1 year ago • 0 comments

This is an automated change generated by Resyntax.

Pass 1

Applied 17 fixes to drracket-tool-text-lib/drracket/private/syncheck/traversals.rkt

  • Line 3, tidy-require: Keep imports in require sorted and grouped by phase, with collections before files.
  • Line 51, let-to-define: Internal definitions are recommended instead of let expressions, to reduce nesting.
  • Line 684, hash-set!-ref-to-hash-update!: This expression can be replaced with a simpler, equivalent hash-update! expression.
  • Line 713, let-to-define: Internal definitions are recommended instead of let expressions, to reduce nesting.
  • Line 728, let-to-define: Internal definitions are recommended instead of let expressions, to reduce nesting.
  • Line 771, nested-for-to-for*: These nested for loops can be replaced by a single for* loop.
  • Line 785, nested-for-to-for*: These nested for loops can be replaced by a single for* loop.
  • Line 835, nested-for-to-for*: These nested for loops can be replaced by a single for* loop.
  • Line 906, let-to-define: Internal definitions are recommended instead of let expressions, to reduce nesting.
  • Line 972, if-else-false-to-and: This if expression can be refactored to an equivalent expression using and.
  • Line 1074, if-else-false-to-and: This if expression can be refactored to an equivalent expression using and.
  • Line 1098, let-to-define: Internal definitions are recommended instead of let expressions, to reduce nesting.
  • Line 1129, when-expression-in-for-loop-to-when-keyword: Use the #:when keyword instead of when to reduce loop body indentation.
  • Line 1275, let-to-define: Internal definitions are recommended instead of let expressions, to reduce nesting.
  • Line 1366, let-to-define: Internal definitions are recommended instead of let expressions, to reduce nesting.
  • Line 1424, let-to-define: Internal definitions are recommended instead of let expressions, to reduce nesting.
  • Line 1451, let-to-define: Internal definitions are recommended instead of let expressions, to reduce nesting.

Applied 2 fixes to drracket/setup/plt-installer-unit.rkt

  • Line 2, tidy-require: Keep imports in require sorted and grouped by phase, with collections before files.
  • Line 44, let-to-define: Internal definitions are recommended instead of let expressions, to reduce nesting.

Applied 1 fix to drracket/repo-time-stamp/time-stamp.rkt

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

Summary

Fixed 20 issues in 3 files.

  • Fixed 10 occurrences of let-to-define
  • Fixed 3 occurrences of tidy-require
  • Fixed 3 occurrences of nested-for-to-for*
  • Fixed 2 occurrences of if-else-false-to-and
  • Fixed 1 occurrence of hash-set!-ref-to-hash-update!
  • Fixed 1 occurrence of when-expression-in-for-loop-to-when-keyword

resyntax-ci[bot] avatar Oct 20 '24 00:10 resyntax-ci[bot]