diff --git a/apps/oxlint/src/command/lint.rs b/apps/oxlint/src/command/lint.rs index f12db2524d853..64936c37ab50d 100644 --- a/apps/oxlint/src/command/lint.rs +++ b/apps/oxlint/src/command/lint.rs @@ -126,6 +126,7 @@ pub struct BasicOptions { // This is formatted according to // +// /// Allowing / Denying Multiple Lints /// /// Accumulate rules and categories from left to right on the command-line. @@ -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: diff --git a/tasks/website/src/linter/snapshots/cli.snap b/tasks/website/src/linter/snapshots/cli.snap index a2608cbbd2598..217a6d2ebc9df 100644 --- a/tasks/website/src/linter/snapshots/cli.snap +++ b/tasks/website/src/linter/snapshots/cli.snap @@ -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: diff --git a/tasks/website/src/linter/snapshots/cli_terminal.snap b/tasks/website/src/linter/snapshots/cli_terminal.snap index af28020d7e9a6..9a512f9bf404e 100644 --- a/tasks/website/src/linter/snapshots/cli_terminal.snap +++ b/tasks/website/src/linter/snapshots/cli_terminal.snap @@ -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)