resyntax icon indicating copy to clipboard operation
resyntax copied to clipboard

A Racket refactoring engine

Results 150 resyntax issues
Sort by recently updated
recently updated
newest added

It would be useful for pull requests against Resyntax to run mutation tests. This would make it easier for me to review Copilot pull requests in particular, since it makes...

testing

Currently, `define-refactoring-rule` automatically inserts a debug logging statement for every `#:when` condition in the rule that logs if the condition was false, causing the rule to not match. There should...

testing

Creating a definition context rule with `define-definition-context-refactoring-rule` is somewhat awkward. There's a few usability issues: - You have to match the entire definition context, which is rarely useful. - You...

enhancement

### Rule summary In `#lang resyntax/test`, the `@within` option for `analysis-test:` is used to narrow the scope of a following `@inspect` option. However, it's only necessary if the `@inspect` option...

testing
new lint

### Rule summary In `#lang resyntax/test`, the default behavior when no refactoring suite is specified with `require:` is to use `default-recommendations`. Therefore, a test file whose only `require:` statement is...

testing
new lint

It's brittle and doesn't quite mean what I intend. Really what I'm looking for is a way to check that a syntax object came directly from the output of `source-read-syntax`....

The language's `read-syntax` implementation should produce Universal Tagged Syntax (UTS), which is my term for the kind of syntax objects I'm using to make Resyntax work on non-s-expression `#lang`s. This...

testing

In [this code](https://github.com/racket/drracket/blob/c5b033f1fcef602ce435ac3bd0cc67e6a7448a81/drracket/browser/private/html.rkt#L317-L328), the use of `cond` and `regexp-match` can be expressed more cleanly using `match` with the `regexp` pattern. This probably shouldn't be rewritten unless 1) every non-`else` branch...

new lint

This is a work-in-progress attempt to automatically refactor uses of aliases defined with `define-deprecated-alias`. Closes #234, eventually.

new lint