generated from jackfirth/racket-package-template
-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Labels
autopilot-candidateThe Copilot Agent should attempt this during a scheduled Autopilot runThe Copilot Agent should attempt this during a scheduled Autopilot runnew lintIssues suggesting new lints or pull requests implementing new lintsIssues suggesting new lints or pull requests implementing new lints
Description
Rule summary
Code using call-with-output-file and display / displayln can use display-to-file / display-lines-to-file instead.
Test case
#lang resyntax/test
test: "original code should be refactorable to new code"
--------------------
#lang racket
(define (f path s)
(call-with-output-file path
(lambda (out)
(displayln s out))))
====================
#lang racket
(define (f path s)
(display-lines-to-file (list s) path))
--------------------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 runnew lintIssues suggesting new lints or pull requests implementing new lintsIssues suggesting new lints or pull requests implementing new lints