On this page:
2.1 Running resyntax analyze
2.2 Running resyntax fix

2 The Resyntax Command-Line Interface🔗ℹ

Resyntax provides a command-line resyntax tool for analyzing and refactoring code. The tool has two commands: resyntax analyze for analyzing code without changing it, and resyntax fix for fixing code by applying Resyntax’s suggestions.

Note that at present, Resyntax is limited in what files it can fix. Resyntax only analyzes files with the .rkt extension where #lang racket/base is the first line in file.

2.1 Running resyntax analyze🔗ℹ

The resyntax analyze command accepts flags for specifying what modules to analyze. After analysis, suggestions are printed in the console. Any of the following flags can be specified any number of times:

2.2 Running resyntax fix🔗ℹ

The resyntax fix command accepts the same flags as resyntax analyze for specifying what modules to fix. After analysis, fixes are applied and a summary is printed.

If two suggestions try to fix the same code, one of them will be rejected. At present, the best way to handle overlapping fixes is to run Resyntax multiple times until no fixes are rejected.