Skip to content

Lint same equals, e.g (equal? foo foo) #483

@jestarray

Description

@jestarray
--------------------
#lang racket
(define foo 1)
(define bar 2)
(equal? foo foo) ; user probably meant to check foo against bar
--------------------
#lang racket
; idk what it should generate? It should warn the user that the comparison of the same thing is pointless

As mentioned here:
jeapostrophe/racket-langserver#152 (comment)

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    autopilot-candidateThe Copilot Agent should attempt this during a scheduled Autopilot runnew lintIssues suggesting new lints or pull requests implementing new lints

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions