Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion apps/oxlint/src/command/lint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ pub struct BasicOptions {

// This is formatted according to
// <https://docs.rs/bpaf/latest/bpaf/params/struct.NamedArg.html#method.help>
//
/// Allowing / Denying Multiple Lints
///
/// Accumulate rules and categories from left to right on the command-line.
Expand All @@ -134,9 +135,10 @@ pub struct BasicOptions {
/// * `correctness` - code that is outright wrong or useless (default).
/// * `suspicious` - code that is most likely wrong or useless.
/// * `pedantic` - lints which are rather strict or have occasional false positives.
/// * `perf` - code that could be written in a more performant way.
/// * `style` - code that should be written in a more idiomatic way.
/// * `nursery` - new lints that are still under development.
/// * `restriction` - lints which prevent the use of language and library features.
/// * `nursery` - new lints that are still under development.
/// * `all` - all the categories listed above except nursery. Does not enable plugins automatically.
///
/// Arguments:
Expand Down
3 changes: 2 additions & 1 deletion tasks/website/src/linter/snapshots/cli.snap
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@ Accumulate rules and categories from left to right on the command-line.
* `correctness` - code that is outright wrong or useless (default).
* `suspicious` - code that is most likely wrong or useless.
* `pedantic` - lints which are rather strict or have occasional false positives.
* `perf` - code that could be written in a more performant way.
* `style` - code that should be written in a more idiomatic way.
* `nursery` - new lints that are still under development.
* `restriction` - lints which prevent the use of language and library features.
* `nursery` - new lints that are still under development.
* `all` - all the categories listed above except nursery. Does not enable plugins automatically.

Arguments:
Expand Down
3 changes: 2 additions & 1 deletion tasks/website/src/linter/snapshots/cli_terminal.snap
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ Allowing / Denying Multiple Lints
* `correctness` - code that is outright wrong or useless (default).
* `suspicious` - code that is most likely wrong or useless.
* `pedantic` - lints which are rather strict or have occasional false positives.
* `perf` - code that could be written in a more performant way.
* `style` - code that should be written in a more idiomatic way.
* `nursery` - new lints that are still under development.
* `restriction` - lints which prevent the use of language and library features.
* `nursery` - new lints that are still under development.
* `all` - all the categories listed above except nursery. Does not enable plugins
automatically.
-A, --allow=NAME Allow the rule or category (suppress the lint)
Expand Down
Loading