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 runbugSomething isn't workingSomething isn't workingexisting lintIssues or pull requests relating to existing lintsIssues or pull requests relating to existing lints
Description
Problem summary
The error-to-raise-arguments-error rule shouldn't apply when the error message uses ~a under quotes, like it did in racket/drracket#779. It should only apply if all uses of ~a in the message are surrounded by spaces.
Test case for code that shouldn't be refactored
#lang resyntax/test
no-change-test: "this code should not be refactored"
--------------------
#lang racket
(define (find-output-radio-box label)
(error 'find-output-radio-box "could not find `~a' radio box"
label))
--------------------Unwanted suggestion
#lang racket
(define (f label)
(raise-arguments-error 'find-output-radio-box "could not find `' radio box" "label" label))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 runbugSomething isn't workingSomething isn't workingexisting lintIssues or pull requests relating to existing lintsIssues or pull requests relating to existing lints