code
Usage: chr code [OPTIONS] COMMAND [ARGS]...
Code quality management (formatting, linting)
╭─ Options ───────────────────────────────────────────────────────────────────╮
│ -h, --help Show this message and exit │
╰─────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ──────────────────────────────────────────────────────────────────╮
│ lint Analyze Rell code to find potential issue and coding style │
│ violations. Configurable using .rell_lint file │
│ format Automatically format Rell code. Configurable using .rell_format │
│ file │
╰─────────────────────────────────────────────────────────────────────────────╯
You can use the code command (chr code
) for code quality management (formatting and linting).
code lint
Usage: chr code lint [OPTIONS]
Analyze Rell code to find potential issue and coding style violations.
Configurable using .rell_lint file
╭─ Configuration Properties ──────────────────────────────────────────────────╮
│ -s, --settings=SETTINGS Alternate path for project settings file │
╰─────────────────────────────────────────────────────────────────────────────╯
╭─ Options ───────────────────────────────────────────────────────────────────╮
│ --source-dir=PATH source directory │
│ -fo, --formatter-options=PATH │
│ Formatter options file (default '.rell_format')│
│ -lo, --linter-options=PATH Linter options file (default '.rell_lint') │
│ --fix Fix all auto-fixable issues │
│ -h, --help Show this message and exit │
╰─────────────────────────────────────────────────────────────────────────────╯
The lint command chr code lint
allows you to analyze Rell code to find potential issue and coding style.
code format
Usage: chr code format [OPTIONS]
Automatically format Rell code. Configurable using .rell_format file
╭─ Configuration Properties ──────────────────────────────────────────────────╮
│ -s, --settings=SETTINGS Alternate path for project settings file │
╰─────────────────────────────────────────────────────────────────────────────╯
╭─ Options ───────────────────────────────────────────────────────────────────╮
│ --source-dir=PATH source directory │
│ --file=PATH single Rell file │
│ -fo, --formatter-options=PATH │
│ Formatter options file (default '.rell_format') │
│ -h, --help Show this message and exit │
╰─────────────────────────────────────────────────────────────────────────────╯
The format command chr code format
allows you to automatically format Rell code. It can be configured by using
.rell_format
.