jackfirth / jackfirth/resyntax

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

Open
#483 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

autopilot-candidate new lint
Dominant language
Racket
Stars
70
Forks
11
PR merge metrics
No merged PRs in 30d

Description

--------------------
#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:
https://github.com/jeapostrophe/racket-langserver/issues/152#issuecomment-3026511974

Image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no file or test. Start by reproducing the supplied #lang racket example and tracing how resyntax represents lint or refactoring findings. Done means the same-expression equal? call produces a user-facing warning; confirm it with the repository's existing checks.

Written by the indexing model from the issue text.

Assessment

Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.