generated from jackfirth/racket-package-template
-
Notifications
You must be signed in to change notification settings - Fork 12
Closed
Labels
autopilot-candidateThe Copilot Agent should attempt this during a scheduled Autopilot runThe Copilot Agent should attempt this during a scheduled Autopilot runexisting lintIssues or pull requests relating to existing lintsIssues or pull requests relating to existing lints
Description
The define-let-to-double-define rule can rewrite this:
(define a
(let ([b 1])
(+ b 10)))to this:
(define b 1)
(define a (+ b 10))But it can't rewrite this:
(define a
(let ([b 1] [c 2])
(+ b c 10)))to this:
(define b 1)
(define c 2)
(define a (+ a b 10))But that's a valuable refactoring to do, as seen here. The rule should also be renamed to define-let-to-multi-define since this could produce several definitions.
Copilot
Metadata
Metadata
Assignees
Labels
autopilot-candidateThe Copilot Agent should attempt this during a scheduled Autopilot runThe Copilot Agent should attempt this during a scheduled Autopilot runexisting lintIssues or pull requests relating to existing lintsIssues or pull requests relating to existing lints