From 7c49f812d92b00e4bb3600d4b042f49bc4c770cd Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 23 Jul 2024 12:44:49 +0000 Subject: [PATCH 1/2] chore(deps): update rust crate bpaf to 0.9.12 --- Cargo.lock | 8 ++++---- Cargo.toml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 7c32b443b5c5..d84f7a455b41 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1175,9 +1175,9 @@ dependencies = [ [[package]] name = "bpaf" -version = "0.9.9" +version = "0.9.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "edc932b40b31d9bea0196f54c5b1b721b9aff3882fc08d9fe4082970c7e94d3d" +checksum = "3280efcf6d66bc77c2cf9b67dc8acee47a217d9be67dd590b3230dffe663724d" dependencies = [ "bpaf_derive", "owo-colors", @@ -1186,9 +1186,9 @@ dependencies = [ [[package]] name = "bpaf_derive" -version = "0.5.7" +version = "0.5.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "efeab2975f8102de445dcf898856a638332403c50216144653a89aec22fd79e0" +checksum = "9a8d5b11f7fa1068e5bbac8ab6c8c2c6940047f69185987446b60c995d4bf89c" dependencies = [ "proc-macro2", "quote", diff --git a/Cargo.toml b/Cargo.toml index a2c6c73710fe..4f3569cee378 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -158,7 +158,7 @@ tests_macros = { path = "./crates/tests_macros" } # Crates needed in the workspace anyhow = "1.0.86" bitflags = "2.6.0" -bpaf = { version = "0.9.9", features = ["derive"] } +bpaf = { version = "0.9.12", features = ["derive"] } countme = "3.0.1" crossbeam = "0.8.4" dashmap = "5.4.0" From eacbedddb3ca96ffddaa8aad546c35596f49e982 Mon Sep 17 00:00:00 2001 From: Victorien Elvinger Date: Tue, 23 Jul 2024 15:23:33 +0200 Subject: [PATCH 2/2] refactor: update snapshots --- .../main_commands_check/check_help.snap | 213 ++++++++++-------- .../snapshots/main_commands_ci/ci_help.snap | 204 +++++++++-------- .../main_commands_format/format_help.snap | 164 +++++++------- .../with_invalid_semicolons_option.snap | 5 +- .../main_commands_lint/lint_help.snap | 108 +++++---- .../lint_only_missing_group.snap | 3 +- .../lint_only_nursery_group.snap | 3 +- .../lsp_proxy_help.snap | 4 +- .../main_commands_migrate/migrate_help.snap | 53 +++-- .../main_commands_rage/rage_help.snap | 47 ++-- 10 files changed, 433 insertions(+), 371 deletions(-) diff --git a/crates/biome_cli/tests/snapshots/main_commands_check/check_help.snap b/crates/biome_cli/tests/snapshots/main_commands_check/check_help.snap index 7f2584edb6cb..4c0490734acd 100644 --- a/crates/biome_cli/tests/snapshots/main_commands_check/check_help.snap +++ b/crates/biome_cli/tests/snapshots/main_commands_check/check_help.snap @@ -12,22 +12,26 @@ Usage: check [--write] [--unsafe] [--staged] [--changed] [--since=REF] [PATH]... The configuration that is contained inside the file `biome.json` --vcs-client-kind= The kind of client. --vcs-enabled= Whether Biome should integrate itself with the VCS client - --vcs-use-ignore-file= Whether Biome should use the VCS ignore file. When [true], - Biome will ignore the files specified in the ignore file. - --vcs-root=PATH The folder where Biome should check for VCS files. By default, Biome will - use the same folder where `biome.json` was found. - If Biome can't find the configuration, it will attempt to use the current - working directory. If no current working directory can't be found, Biome - won't use the VCS integration, and a diagnostic will be emitted + --vcs-use-ignore-file= Whether Biome should use the VCS ignore file. When + [true], Biome will ignore the files specified in the ignore file. + --vcs-root=PATH The folder where Biome should check for VCS files. By default, Biome + will use the same folder where `biome.json` was found. + If Biome can't find the configuration, it will attempt to use the + current working directory. If no current working directory can't be + found, Biome won't use the VCS integration, and a diagnostic will be + emitted --vcs-default-branch=BRANCH The main branch of the project - --files-max-size=NUMBER The maximum allowed size for source code files in bytes. Files above - this limit will be ignored for performance reasons. Defaults to 1 MiB + --files-max-size=NUMBER The maximum allowed size for source code files in bytes. Files + above this limit will be ignored for performance reasons. Defaults to + 1 MiB --files-ignore-unknown= Tells Biome to not emit diagnostics when handling files that doesn't know - --use-editorconfig= Use any `.editorconfig` files to configure the formatter. Configuration - in `biome.json` will override `.editorconfig` configuration. Default: false. + --use-editorconfig= Use any `.editorconfig` files to configure the formatter. + Configuration in `biome.json` will override `.editorconfig` + configuration. Default: false. --indent-style= The indent style. - --indent-size=NUMBER The size of the indentation, 2 by default (deprecated, use `indent-width`) + --indent-size=NUMBER The size of the indentation, 2 by default (deprecated, use + `indent-width`) --indent-width=NUMBER The size of the indentation, 2 by default --line-ending= The type of line ending. --line-width=NUMBER What's the max width of a line. Defaults to 80. @@ -36,101 +40,110 @@ The configuration that is contained inside the file `biome.json` --bracket-spacing= Whether to insert spaces around brackets in object literals. Defaults to true. --jsx-quote-style= The type of quotes used in JSX. Defaults to double. - --quote-properties= When properties in objects are quoted. Defaults to asNeeded. - --trailing-comma= Print trailing commas wherever possible in multi-line comma-separated - syntactic structures. Defaults to "all". - --trailing-commas= Print trailing commas wherever possible in multi-line comma-separated - syntactic structures. Defaults to "all". - --semicolons= Whether the formatter prints semicolons for all statements or - only in for statements where it is necessary because of ASI. - --arrow-parentheses= Whether to add non-necessary parentheses to arrow functions. - Defaults to "always". - --bracket-same-line= Whether to hug the closing bracket of multiline HTML/JSX tags - to the end of the last line, rather than being alone on the following line. - Defaults to false. - --javascript-formatter-enabled= Control the formatter for JavaScript (and its super - languages) files. + --quote-properties= When properties in objects are quoted. Defaults to + asNeeded. + --trailing-comma= Print trailing commas wherever possible in multi-line + comma-separated syntactic structures. Defaults to "all". + --trailing-commas= Print trailing commas wherever possible in multi-line + comma-separated syntactic structures. Defaults to "all". + --semicolons= Whether the formatter prints semicolons for all statements + or only in for statements where it is necessary because of ASI. + --arrow-parentheses= Whether to add non-necessary parentheses to arrow + functions. Defaults to "always". + --bracket-same-line= Whether to hug the closing bracket of multiline HTML/JSX + tags to the end of the last line, rather than being alone on the + following line. Defaults to false. + --javascript-formatter-enabled= Control the formatter for JavaScript (and its + super languages) files. --javascript-formatter-indent-style= The indent style applied to JavaScript (and its super languages) files. --javascript-formatter-indent-size=NUMBER The size of the indentation applied to JavaScript (and its super languages) files. Default to 2. - --javascript-formatter-indent-width=NUMBER The size of the indentation applied to JavaScript - (and its super languages) files. Default to 2. - --javascript-formatter-line-ending= The type of line ending applied to JavaScript - (and its super languages) files. - --javascript-formatter-line-width=NUMBER What's the max width of a line applied to JavaScript - (and its super languages) files. Defaults to 80. - --quote-style= The type of quotes used in JavaScript code. Defaults to double. - --javascript-attribute-position= The attribute position style in jsx elements. - Defaults to auto. - --javascript-linter-enabled= Control the linter for JavaScript (and its super languages) - files. - --json-formatter-enabled= Control the formatter for JSON (and its super languages) - files. - --json-formatter-indent-style= The indent style applied to JSON (and its super languages) - files. - --json-formatter-indent-width=NUMBER The size of the indentation applied to JSON (and its super - languages) files. Default to 2. - --json-formatter-indent-size=NUMBER The size of the indentation applied to JSON (and its super - languages) files. Default to 2. - --json-formatter-line-ending= The type of line ending applied to JSON (and its super + --javascript-formatter-indent-width=NUMBER The size of the indentation applied to + JavaScript (and its super languages) files. Default to 2. + --javascript-formatter-line-ending= The type of line ending applied to + JavaScript (and its super languages) files. + --javascript-formatter-line-width=NUMBER What's the max width of a line applied to + JavaScript (and its super languages) files. Defaults to 80. + --quote-style= The type of quotes used in JavaScript code. Defaults to + double. + --javascript-attribute-position= The attribute position style in jsx + elements. Defaults to auto. + --javascript-linter-enabled= Control the linter for JavaScript (and its super languages) files. - --json-formatter-line-width=NUMBER What's the max width of a line applied to JSON (and its super - languages) files. Defaults to 80. - --json-formatter-trailing-commas= Print trailing commas wherever possible in multi-line - comma-separated syntactic structures. Defaults to "none". - --json-linter-enabled= Control the linter for JSON (and its super languages) files. - --css-formatter-enabled= Control the formatter for CSS (and its super languages) - files. - --css-formatter-indent-style= The indent style applied to CSS (and its super languages) + --json-formatter-enabled= Control the formatter for JSON (and its super + languages) files. + --json-formatter-indent-style= The indent style applied to JSON (and its super + languages) files. + --json-formatter-indent-width=NUMBER The size of the indentation applied to JSON (and its + super languages) files. Default to 2. + --json-formatter-indent-size=NUMBER The size of the indentation applied to JSON (and its + super languages) files. Default to 2. + --json-formatter-line-ending= The type of line ending applied to JSON (and its + super languages) files. + --json-formatter-line-width=NUMBER What's the max width of a line applied to JSON (and its + super languages) files. Defaults to 80. + --json-formatter-trailing-commas= Print trailing commas wherever possible in + multi-line comma-separated syntactic structures. Defaults to "none". + --json-linter-enabled= Control the linter for JSON (and its super languages) files. - --css-formatter-indent-width=NUMBER The size of the indentation applied to CSS (and its super - languages) files. Default to 2. - --css-formatter-line-ending= The type of line ending applied to CSS (and its super + --css-formatter-enabled= Control the formatter for CSS (and its super languages) files. - --css-formatter-line-width=NUMBER What's the max width of a line applied to CSS (and its super - languages) files. Defaults to 80. - --css-formatter-quote-style= The type of quotes used in CSS code. Defaults to - double. - --css-linter-enabled= Control the linter for CSS (and its super languages) files. + --css-formatter-indent-style= The indent style applied to CSS (and its super + languages) files. + --css-formatter-indent-width=NUMBER The size of the indentation applied to CSS (and its + super languages) files. Default to 2. + --css-formatter-line-ending= The type of line ending applied to CSS (and its + super languages) files. + --css-formatter-line-width=NUMBER What's the max width of a line applied to CSS (and its + super languages) files. Defaults to 80. + --css-formatter-quote-style= The type of quotes used in CSS code. Defaults + to double. + --css-linter-enabled= Control the linter for CSS (and its super languages) + files. --graphql-formatter-enabled= Control the formatter for GraphQL files. --graphql-formatter-indent-style= The indent style applied to GraphQL files. - --graphql-formatter-indent-width=NUMBER The size of the indentation applied to GraphQL files. - Default to 2. - --graphql-formatter-line-ending= The type of line ending applied to GraphQL files. - --graphql-formatter-line-width=NUMBER What's the max width of a line applied to GraphQL files. - Defaults to 80. - --graphql-formatter-quote-style= The type of quotes used in GraphQL code. Defaults - to double. + --graphql-formatter-indent-width=NUMBER The size of the indentation applied to GraphQL + files. Default to 2. + --graphql-formatter-line-ending= The type of line ending applied to GraphQL + files. + --graphql-formatter-line-width=NUMBER What's the max width of a line applied to GraphQL + files. Defaults to 80. + --graphql-formatter-quote-style= The type of quotes used in GraphQL code. + Defaults to double. --graphql-linter-enabled= Control the formatter for GraphQL files. Global options applied to all commands - --colors= Set the formatting mode for markup: "off" prints everything as plain text, - "force" forces the formatting of markup using ANSI even if the console - output is determined to be incompatible + --colors= Set the formatting mode for markup: "off" prints everything as plain + text, "force" forces the formatting of markup using ANSI even if the + console output is determined to be incompatible --use-server Connect to a running instance of the Biome daemon server. - --verbose Print additional diagnostics, and some diagnostics show more information. - --config-path=PATH Set the file path to the configuration file, or the directory path to find - `biome.json` or `biome.jsonc`. If used, it disables the default configuration - file resolution. - --max-diagnostics=> Cap the amount of diagnostics displayed. When `none` is provided, - the limit is lifted. + --verbose Print additional diagnostics, and some diagnostics show more + information. + --config-path=PATH Set the file path to the configuration file, or the directory path to + find `biome.json` or `biome.jsonc`. If used, it disables the default + configuration file resolution. + --max-diagnostics=> Cap the amount of diagnostics displayed. When `none` is + provided, the limit is lifted. [default: 20] - --skip-errors Skip over files containing syntax errors instead of emitting an error diagnostic. - --no-errors-on-unmatched Silence errors that would be emitted in case no files were processed - during the execution of the command. - --error-on-warnings Tell Biome to exit with an error code if some diagnostics emit warnings. - --reporter= Allows to change how diagnostics and summary - are reported. - --log-level= The level of logging. In order, from the most verbose - to the least verbose: debug, info, warn, error. + --skip-errors Skip over files containing syntax errors instead of emitting an error + diagnostic. + --no-errors-on-unmatched Silence errors that would be emitted in case no files were + processed during the execution of the command. + --error-on-warnings Tell Biome to exit with an error code if some diagnostics emit + warnings. + --reporter= Allows to change how diagnostics and + summary are reported. + --log-level= The level of logging. In order, from the most + verbose to the least verbose: debug, info, warn, error. The value `none` won't show any logging. [default: none] --log-kind= How the log should look like. [default: pretty] - --diagnostic-level= The level of diagnostics to show. In order, from the lowest - to the most important: info, warn, error. Passing `--diagnostic-level=error` - will cause Biome to print only diagnostics that contain only errors. + --diagnostic-level= The level of diagnostics to show. In order, from the + lowest to the most important: info, warn, error. Passing + `--diagnostic-level=error` will cause Biome to print only diagnostics + that contain only errors. [default: info] Available positional items: @@ -140,8 +153,8 @@ Available options: --write Writes safe fixes, formatting and import sorting --unsafe Allow to do unsafe fixes, should be used with `--write` or `--fix` --fix Alias for `--write`, writes safe fixes, formatting and import sorting - --apply Alias for `--write`, writes safe fixes, formatting and import sorting (deprecated, - use `--write`) + --apply Alias for `--write`, writes safe fixes, formatting and import sorting + (deprecated, use `--write`) --apply-unsafe Alias for `--write --unsafe`, writes safe and unsafe fixes, formatting and import sorting (deprecated, use `--write --unsafe`) --formatter-enabled= Allow to enable or disable the formatter check. @@ -149,15 +162,17 @@ Available options: --organize-imports-enabled= Allow to enable or disable the organize imports. --stdin-file-path=PATH Use this option when you want to format code piped from `stdin`, and print the output to `stdout`. - The file doesn't need to exist on disk, what matters is the extension of - the file. Based on the extension, Biome knows how to check the code. + The file doesn't need to exist on disk, what matters is the extension + of the file. Based on the extension, Biome knows how to check the + code. Example: `echo 'let a;' | biome check --stdin-file-path=file.js` - --staged When set to true, only the files that have been staged (the ones prepared - to be committed) will be linted. - --changed When set to true, only the files that have been changed compared to your - `defaultBranch` configuration will be linted. - --since=REF Use this to specify the base branch to compare against when you're using - the --changed flag and the `defaultBranch` is not set in your biome.json + --staged When set to true, only the files that have been staged (the ones + prepared to be committed) will be linted. + --changed When set to true, only the files that have been changed compared to + your `defaultBranch` configuration will be linted. + --since=REF Use this to specify the base branch to compare against when you're + using the --changed flag and the `defaultBranch` is not set in your + biome.json -h, --help Prints help information ``` diff --git a/crates/biome_cli/tests/snapshots/main_commands_ci/ci_help.snap b/crates/biome_cli/tests/snapshots/main_commands_ci/ci_help.snap index 1ca9f3afc9b8..413dc4b4c69b 100644 --- a/crates/biome_cli/tests/snapshots/main_commands_ci/ci_help.snap +++ b/crates/biome_cli/tests/snapshots/main_commands_ci/ci_help.snap @@ -8,28 +8,32 @@ expression: content Command to use in CI environments. Runs formatter, linter and import sorting to the requested files. Files won't be modified, the command is a read-only operation. -Usage: ci [--formatter-enabled=] [--linter-enabled=] [--organize-imports-enabled -=] [--changed] [--since=REF] [PATH]... +Usage: ci [--formatter-enabled=] [--linter-enabled=] [ +--organize-imports-enabled=] [--changed] [--since=REF] [PATH]... The configuration that is contained inside the file `biome.json` --vcs-client-kind= The kind of client. --vcs-enabled= Whether Biome should integrate itself with the VCS client - --vcs-use-ignore-file= Whether Biome should use the VCS ignore file. When [true], - Biome will ignore the files specified in the ignore file. - --vcs-root=PATH The folder where Biome should check for VCS files. By default, Biome will - use the same folder where `biome.json` was found. - If Biome can't find the configuration, it will attempt to use the current - working directory. If no current working directory can't be found, Biome - won't use the VCS integration, and a diagnostic will be emitted + --vcs-use-ignore-file= Whether Biome should use the VCS ignore file. When + [true], Biome will ignore the files specified in the ignore file. + --vcs-root=PATH The folder where Biome should check for VCS files. By default, Biome + will use the same folder where `biome.json` was found. + If Biome can't find the configuration, it will attempt to use the + current working directory. If no current working directory can't be + found, Biome won't use the VCS integration, and a diagnostic will be + emitted --vcs-default-branch=BRANCH The main branch of the project - --files-max-size=NUMBER The maximum allowed size for source code files in bytes. Files above - this limit will be ignored for performance reasons. Defaults to 1 MiB + --files-max-size=NUMBER The maximum allowed size for source code files in bytes. Files + above this limit will be ignored for performance reasons. Defaults to + 1 MiB --files-ignore-unknown= Tells Biome to not emit diagnostics when handling files that doesn't know - --use-editorconfig= Use any `.editorconfig` files to configure the formatter. Configuration - in `biome.json` will override `.editorconfig` configuration. Default: false. + --use-editorconfig= Use any `.editorconfig` files to configure the formatter. + Configuration in `biome.json` will override `.editorconfig` + configuration. Default: false. --indent-style= The indent style. - --indent-size=NUMBER The size of the indentation, 2 by default (deprecated, use `indent-width`) + --indent-size=NUMBER The size of the indentation, 2 by default (deprecated, use + `indent-width`) --indent-width=NUMBER The size of the indentation, 2 by default --line-ending= The type of line ending. --line-width=NUMBER What's the max width of a line. Defaults to 80. @@ -38,101 +42,110 @@ The configuration that is contained inside the file `biome.json` --bracket-spacing= Whether to insert spaces around brackets in object literals. Defaults to true. --jsx-quote-style= The type of quotes used in JSX. Defaults to double. - --quote-properties= When properties in objects are quoted. Defaults to asNeeded. - --trailing-comma= Print trailing commas wherever possible in multi-line comma-separated - syntactic structures. Defaults to "all". - --trailing-commas= Print trailing commas wherever possible in multi-line comma-separated - syntactic structures. Defaults to "all". - --semicolons= Whether the formatter prints semicolons for all statements or - only in for statements where it is necessary because of ASI. - --arrow-parentheses= Whether to add non-necessary parentheses to arrow functions. - Defaults to "always". - --bracket-same-line= Whether to hug the closing bracket of multiline HTML/JSX tags - to the end of the last line, rather than being alone on the following line. - Defaults to false. - --javascript-formatter-enabled= Control the formatter for JavaScript (and its super - languages) files. + --quote-properties= When properties in objects are quoted. Defaults to + asNeeded. + --trailing-comma= Print trailing commas wherever possible in multi-line + comma-separated syntactic structures. Defaults to "all". + --trailing-commas= Print trailing commas wherever possible in multi-line + comma-separated syntactic structures. Defaults to "all". + --semicolons= Whether the formatter prints semicolons for all statements + or only in for statements where it is necessary because of ASI. + --arrow-parentheses= Whether to add non-necessary parentheses to arrow + functions. Defaults to "always". + --bracket-same-line= Whether to hug the closing bracket of multiline HTML/JSX + tags to the end of the last line, rather than being alone on the + following line. Defaults to false. + --javascript-formatter-enabled= Control the formatter for JavaScript (and its + super languages) files. --javascript-formatter-indent-style= The indent style applied to JavaScript (and its super languages) files. --javascript-formatter-indent-size=NUMBER The size of the indentation applied to JavaScript (and its super languages) files. Default to 2. - --javascript-formatter-indent-width=NUMBER The size of the indentation applied to JavaScript - (and its super languages) files. Default to 2. - --javascript-formatter-line-ending= The type of line ending applied to JavaScript - (and its super languages) files. - --javascript-formatter-line-width=NUMBER What's the max width of a line applied to JavaScript - (and its super languages) files. Defaults to 80. - --quote-style= The type of quotes used in JavaScript code. Defaults to double. - --javascript-attribute-position= The attribute position style in jsx elements. - Defaults to auto. - --javascript-linter-enabled= Control the linter for JavaScript (and its super languages) - files. - --json-formatter-enabled= Control the formatter for JSON (and its super languages) - files. - --json-formatter-indent-style= The indent style applied to JSON (and its super languages) - files. - --json-formatter-indent-width=NUMBER The size of the indentation applied to JSON (and its super - languages) files. Default to 2. - --json-formatter-indent-size=NUMBER The size of the indentation applied to JSON (and its super - languages) files. Default to 2. - --json-formatter-line-ending= The type of line ending applied to JSON (and its super + --javascript-formatter-indent-width=NUMBER The size of the indentation applied to + JavaScript (and its super languages) files. Default to 2. + --javascript-formatter-line-ending= The type of line ending applied to + JavaScript (and its super languages) files. + --javascript-formatter-line-width=NUMBER What's the max width of a line applied to + JavaScript (and its super languages) files. Defaults to 80. + --quote-style= The type of quotes used in JavaScript code. Defaults to + double. + --javascript-attribute-position= The attribute position style in jsx + elements. Defaults to auto. + --javascript-linter-enabled= Control the linter for JavaScript (and its super languages) files. - --json-formatter-line-width=NUMBER What's the max width of a line applied to JSON (and its super - languages) files. Defaults to 80. - --json-formatter-trailing-commas= Print trailing commas wherever possible in multi-line - comma-separated syntactic structures. Defaults to "none". - --json-linter-enabled= Control the linter for JSON (and its super languages) files. - --css-formatter-enabled= Control the formatter for CSS (and its super languages) - files. - --css-formatter-indent-style= The indent style applied to CSS (and its super languages) + --json-formatter-enabled= Control the formatter for JSON (and its super + languages) files. + --json-formatter-indent-style= The indent style applied to JSON (and its super + languages) files. + --json-formatter-indent-width=NUMBER The size of the indentation applied to JSON (and its + super languages) files. Default to 2. + --json-formatter-indent-size=NUMBER The size of the indentation applied to JSON (and its + super languages) files. Default to 2. + --json-formatter-line-ending= The type of line ending applied to JSON (and its + super languages) files. + --json-formatter-line-width=NUMBER What's the max width of a line applied to JSON (and its + super languages) files. Defaults to 80. + --json-formatter-trailing-commas= Print trailing commas wherever possible in + multi-line comma-separated syntactic structures. Defaults to "none". + --json-linter-enabled= Control the linter for JSON (and its super languages) files. - --css-formatter-indent-width=NUMBER The size of the indentation applied to CSS (and its super - languages) files. Default to 2. - --css-formatter-line-ending= The type of line ending applied to CSS (and its super + --css-formatter-enabled= Control the formatter for CSS (and its super languages) files. - --css-formatter-line-width=NUMBER What's the max width of a line applied to CSS (and its super - languages) files. Defaults to 80. - --css-formatter-quote-style= The type of quotes used in CSS code. Defaults to - double. - --css-linter-enabled= Control the linter for CSS (and its super languages) files. + --css-formatter-indent-style= The indent style applied to CSS (and its super + languages) files. + --css-formatter-indent-width=NUMBER The size of the indentation applied to CSS (and its + super languages) files. Default to 2. + --css-formatter-line-ending= The type of line ending applied to CSS (and its + super languages) files. + --css-formatter-line-width=NUMBER What's the max width of a line applied to CSS (and its + super languages) files. Defaults to 80. + --css-formatter-quote-style= The type of quotes used in CSS code. Defaults + to double. + --css-linter-enabled= Control the linter for CSS (and its super languages) + files. --graphql-formatter-enabled= Control the formatter for GraphQL files. --graphql-formatter-indent-style= The indent style applied to GraphQL files. - --graphql-formatter-indent-width=NUMBER The size of the indentation applied to GraphQL files. - Default to 2. - --graphql-formatter-line-ending= The type of line ending applied to GraphQL files. - --graphql-formatter-line-width=NUMBER What's the max width of a line applied to GraphQL files. - Defaults to 80. - --graphql-formatter-quote-style= The type of quotes used in GraphQL code. Defaults - to double. + --graphql-formatter-indent-width=NUMBER The size of the indentation applied to GraphQL + files. Default to 2. + --graphql-formatter-line-ending= The type of line ending applied to GraphQL + files. + --graphql-formatter-line-width=NUMBER What's the max width of a line applied to GraphQL + files. Defaults to 80. + --graphql-formatter-quote-style= The type of quotes used in GraphQL code. + Defaults to double. --graphql-linter-enabled= Control the formatter for GraphQL files. Global options applied to all commands - --colors= Set the formatting mode for markup: "off" prints everything as plain text, - "force" forces the formatting of markup using ANSI even if the console - output is determined to be incompatible + --colors= Set the formatting mode for markup: "off" prints everything as plain + text, "force" forces the formatting of markup using ANSI even if the + console output is determined to be incompatible --use-server Connect to a running instance of the Biome daemon server. - --verbose Print additional diagnostics, and some diagnostics show more information. - --config-path=PATH Set the file path to the configuration file, or the directory path to find - `biome.json` or `biome.jsonc`. If used, it disables the default configuration - file resolution. - --max-diagnostics=> Cap the amount of diagnostics displayed. When `none` is provided, - the limit is lifted. + --verbose Print additional diagnostics, and some diagnostics show more + information. + --config-path=PATH Set the file path to the configuration file, or the directory path to + find `biome.json` or `biome.jsonc`. If used, it disables the default + configuration file resolution. + --max-diagnostics=> Cap the amount of diagnostics displayed. When `none` is + provided, the limit is lifted. [default: 20] - --skip-errors Skip over files containing syntax errors instead of emitting an error diagnostic. - --no-errors-on-unmatched Silence errors that would be emitted in case no files were processed - during the execution of the command. - --error-on-warnings Tell Biome to exit with an error code if some diagnostics emit warnings. - --reporter= Allows to change how diagnostics and summary - are reported. - --log-level= The level of logging. In order, from the most verbose - to the least verbose: debug, info, warn, error. + --skip-errors Skip over files containing syntax errors instead of emitting an error + diagnostic. + --no-errors-on-unmatched Silence errors that would be emitted in case no files were + processed during the execution of the command. + --error-on-warnings Tell Biome to exit with an error code if some diagnostics emit + warnings. + --reporter= Allows to change how diagnostics and + summary are reported. + --log-level= The level of logging. In order, from the most + verbose to the least verbose: debug, info, warn, error. The value `none` won't show any logging. [default: none] --log-kind= How the log should look like. [default: pretty] - --diagnostic-level= The level of diagnostics to show. In order, from the lowest - to the most important: info, warn, error. Passing `--diagnostic-level=error` - will cause Biome to print only diagnostics that contain only errors. + --diagnostic-level= The level of diagnostics to show. In order, from the + lowest to the most important: info, warn, error. Passing + `--diagnostic-level=error` will cause Biome to print only diagnostics + that contain only errors. [default: info] Available positional items: @@ -142,10 +155,11 @@ Available options: --formatter-enabled= Allow to enable or disable the formatter check. --linter-enabled= Allow to enable or disable the linter check. --organize-imports-enabled= Allow to enable or disable the organize imports. - --changed When set to true, only the files that have been changed compared to your - `defaultBranch` configuration will be linted. - --since=REF Use this to specify the base branch to compare against when you're using - the --changed flag and the `defaultBranch` is not set in your biome.json + --changed When set to true, only the files that have been changed compared to + your `defaultBranch` configuration will be linted. + --since=REF Use this to specify the base branch to compare against when you're + using the --changed flag and the `defaultBranch` is not set in your + biome.json -h, --help Prints help information ``` diff --git a/crates/biome_cli/tests/snapshots/main_commands_format/format_help.snap b/crates/biome_cli/tests/snapshots/main_commands_format/format_help.snap index 32cd1c344343..a94e8862b92c 100644 --- a/crates/biome_cli/tests/snapshots/main_commands_format/format_help.snap +++ b/crates/biome_cli/tests/snapshots/main_commands_format/format_help.snap @@ -10,10 +10,12 @@ Run the formatter on a set of files. Usage: format [--write] [--staged] [--changed] [--since=REF] [PATH]... Generic options applied to all files - --use-editorconfig= Use any `.editorconfig` files to configure the formatter. Configuration - in `biome.json` will override `.editorconfig` configuration. Default: false. + --use-editorconfig= Use any `.editorconfig` files to configure the formatter. + Configuration in `biome.json` will override `.editorconfig` + configuration. Default: false. --indent-style= The indent style. - --indent-size=NUMBER The size of the indentation, 2 by default (deprecated, use `indent-width`) + --indent-size=NUMBER The size of the indentation, 2 by default (deprecated, use + `indent-width`) --indent-width=NUMBER The size of the indentation, 2 by default --line-ending= The type of line ending. --line-width=NUMBER What's the max width of a line. Defaults to 80. @@ -24,114 +26,124 @@ Generic options applied to all files Formatting options specific to the JavaScript files --jsx-quote-style= The type of quotes used in JSX. Defaults to double. - --quote-properties= When properties in objects are quoted. Defaults to asNeeded. - --trailing-comma= Print trailing commas wherever possible in multi-line comma-separated - syntactic structures. Defaults to "all". - --trailing-commas= Print trailing commas wherever possible in multi-line comma-separated - syntactic structures. Defaults to "all". - --semicolons= Whether the formatter prints semicolons for all statements or - only in for statements where it is necessary because of ASI. - --arrow-parentheses= Whether to add non-necessary parentheses to arrow functions. - Defaults to "always". - --bracket-same-line= Whether to hug the closing bracket of multiline HTML/JSX tags - to the end of the last line, rather than being alone on the following line. - Defaults to false. - --javascript-formatter-enabled= Control the formatter for JavaScript (and its super - languages) files. + --quote-properties= When properties in objects are quoted. Defaults to + asNeeded. + --trailing-comma= Print trailing commas wherever possible in multi-line + comma-separated syntactic structures. Defaults to "all". + --trailing-commas= Print trailing commas wherever possible in multi-line + comma-separated syntactic structures. Defaults to "all". + --semicolons= Whether the formatter prints semicolons for all statements + or only in for statements where it is necessary because of ASI. + --arrow-parentheses= Whether to add non-necessary parentheses to arrow + functions. Defaults to "always". + --bracket-same-line= Whether to hug the closing bracket of multiline HTML/JSX + tags to the end of the last line, rather than being alone on the + following line. Defaults to false. + --javascript-formatter-enabled= Control the formatter for JavaScript (and its + super languages) files. --javascript-formatter-indent-style= The indent style applied to JavaScript (and its super languages) files. --javascript-formatter-indent-size=NUMBER The size of the indentation applied to JavaScript (and its super languages) files. Default to 2. - --javascript-formatter-indent-width=NUMBER The size of the indentation applied to JavaScript - (and its super languages) files. Default to 2. - --javascript-formatter-line-ending= The type of line ending applied to JavaScript - (and its super languages) files. - --javascript-formatter-line-width=NUMBER What's the max width of a line applied to JavaScript - (and its super languages) files. Defaults to 80. - --quote-style= The type of quotes used in JavaScript code. Defaults to double. - --javascript-attribute-position= The attribute position style in jsx elements. - Defaults to auto. + --javascript-formatter-indent-width=NUMBER The size of the indentation applied to + JavaScript (and its super languages) files. Default to 2. + --javascript-formatter-line-ending= The type of line ending applied to + JavaScript (and its super languages) files. + --javascript-formatter-line-width=NUMBER What's the max width of a line applied to + JavaScript (and its super languages) files. Defaults to 80. + --quote-style= The type of quotes used in JavaScript code. Defaults to + double. + --javascript-attribute-position= The attribute position style in jsx + elements. Defaults to auto. --bracket-spacing= Whether to insert spaces around brackets in object literals. Defaults to true. Set of properties to integrate Biome with a VCS software. --vcs-client-kind= The kind of client. --vcs-enabled= Whether Biome should integrate itself with the VCS client - --vcs-use-ignore-file= Whether Biome should use the VCS ignore file. When [true], - Biome will ignore the files specified in the ignore file. - --vcs-root=PATH The folder where Biome should check for VCS files. By default, Biome will - use the same folder where `biome.json` was found. - If Biome can't find the configuration, it will attempt to use the current - working directory. If no current working directory can't be found, Biome - won't use the VCS integration, and a diagnostic will be emitted + --vcs-use-ignore-file= Whether Biome should use the VCS ignore file. When + [true], Biome will ignore the files specified in the ignore file. + --vcs-root=PATH The folder where Biome should check for VCS files. By default, Biome + will use the same folder where `biome.json` was found. + If Biome can't find the configuration, it will attempt to use the + current working directory. If no current working directory can't be + found, Biome won't use the VCS integration, and a diagnostic will be + emitted --vcs-default-branch=BRANCH The main branch of the project The configuration of the filesystem - --files-max-size=NUMBER The maximum allowed size for source code files in bytes. Files above - this limit will be ignored for performance reasons. Defaults to 1 MiB + --files-max-size=NUMBER The maximum allowed size for source code files in bytes. Files + above this limit will be ignored for performance reasons. Defaults to + 1 MiB --files-ignore-unknown= Tells Biome to not emit diagnostics when handling files that doesn't know Global options applied to all commands - --colors= Set the formatting mode for markup: "off" prints everything as plain text, - "force" forces the formatting of markup using ANSI even if the console - output is determined to be incompatible + --colors= Set the formatting mode for markup: "off" prints everything as plain + text, "force" forces the formatting of markup using ANSI even if the + console output is determined to be incompatible --use-server Connect to a running instance of the Biome daemon server. - --verbose Print additional diagnostics, and some diagnostics show more information. - --config-path=PATH Set the file path to the configuration file, or the directory path to find - `biome.json` or `biome.jsonc`. If used, it disables the default configuration - file resolution. - --max-diagnostics=> Cap the amount of diagnostics displayed. When `none` is provided, - the limit is lifted. + --verbose Print additional diagnostics, and some diagnostics show more + information. + --config-path=PATH Set the file path to the configuration file, or the directory path to + find `biome.json` or `biome.jsonc`. If used, it disables the default + configuration file resolution. + --max-diagnostics=> Cap the amount of diagnostics displayed. When `none` is + provided, the limit is lifted. [default: 20] - --skip-errors Skip over files containing syntax errors instead of emitting an error diagnostic. - --no-errors-on-unmatched Silence errors that would be emitted in case no files were processed - during the execution of the command. - --error-on-warnings Tell Biome to exit with an error code if some diagnostics emit warnings. - --reporter= Allows to change how diagnostics and summary - are reported. - --log-level= The level of logging. In order, from the most verbose - to the least verbose: debug, info, warn, error. + --skip-errors Skip over files containing syntax errors instead of emitting an error + diagnostic. + --no-errors-on-unmatched Silence errors that would be emitted in case no files were + processed during the execution of the command. + --error-on-warnings Tell Biome to exit with an error code if some diagnostics emit + warnings. + --reporter= Allows to change how diagnostics and + summary are reported. + --log-level= The level of logging. In order, from the most + verbose to the least verbose: debug, info, warn, error. The value `none` won't show any logging. [default: none] --log-kind= How the log should look like. [default: pretty] - --diagnostic-level= The level of diagnostics to show. In order, from the lowest - to the most important: info, warn, error. Passing `--diagnostic-level=error` - will cause Biome to print only diagnostics that contain only errors. + --diagnostic-level= The level of diagnostics to show. In order, from the + lowest to the most important: info, warn, error. Passing + `--diagnostic-level=error` will cause Biome to print only diagnostics + that contain only errors. [default: info] Available positional items: PATH Single file, single path or list of paths. Available options: - --json-formatter-enabled= Control the formatter for JSON (and its super languages) - files. - --json-formatter-indent-style= The indent style applied to JSON (and its super languages) - files. - --json-formatter-indent-width=NUMBER The size of the indentation applied to JSON (and its super - languages) files. Default to 2. - --json-formatter-indent-size=NUMBER The size of the indentation applied to JSON (and its super - languages) files. Default to 2. - --json-formatter-line-ending= The type of line ending applied to JSON (and its super + --json-formatter-enabled= Control the formatter for JSON (and its super + languages) files. + --json-formatter-indent-style= The indent style applied to JSON (and its super languages) files. - --json-formatter-line-width=NUMBER What's the max width of a line applied to JSON (and its super - languages) files. Defaults to 80. - --json-formatter-trailing-commas= Print trailing commas wherever possible in multi-line - comma-separated syntactic structures. Defaults to "none". + --json-formatter-indent-width=NUMBER The size of the indentation applied to JSON (and its + super languages) files. Default to 2. + --json-formatter-indent-size=NUMBER The size of the indentation applied to JSON (and its + super languages) files. Default to 2. + --json-formatter-line-ending= The type of line ending applied to JSON (and its + super languages) files. + --json-formatter-line-width=NUMBER What's the max width of a line applied to JSON (and its + super languages) files. Defaults to 80. + --json-formatter-trailing-commas= Print trailing commas wherever possible in + multi-line comma-separated syntactic structures. Defaults to "none". --stdin-file-path=PATH Use this option when you want to format code piped from `stdin`, and print the output to `stdout`. - The file doesn't need to exist on disk, what matters is the extension of - the file. Based on the extension, Biome knows how to format the code. + The file doesn't need to exist on disk, what matters is the extension + of the file. Based on the extension, Biome knows how to format the + code. Example: `echo 'let a;' | biome format --stdin-file-path=file.js` --write Writes formatted files to file system. --fix Alias of `--write`, writes formatted files to file system. - --staged When set to true, only the files that have been staged (the ones prepared - to be committed) will be linted. - --changed When set to true, only the files that have been changed compared to your - `defaultBranch` configuration will be linted. - --since=REF Use this to specify the base branch to compare against when you're using - the --changed flag and the `defaultBranch` is not set in your biome.json + --staged When set to true, only the files that have been staged (the ones + prepared to be committed) will be linted. + --changed When set to true, only the files that have been changed compared to + your `defaultBranch` configuration will be linted. + --since=REF Use this to specify the base branch to compare against when you're + using the --changed flag and the `defaultBranch` is not set in your + biome.json -h, --help Prints help information ``` diff --git a/crates/biome_cli/tests/snapshots/main_commands_format/with_invalid_semicolons_option.snap b/crates/biome_cli/tests/snapshots/main_commands_format/with_invalid_semicolons_option.snap index b2b08c5ff970..4454727e94c1 100644 --- a/crates/biome_cli/tests/snapshots/main_commands_format/with_invalid_semicolons_option.snap +++ b/crates/biome_cli/tests/snapshots/main_commands_format/with_invalid_semicolons_option.snap @@ -10,10 +10,9 @@ flags/invalid ━━━━━━━━━━━━━━━━━━━━━━ × Failed to parse CLI arguments. Caused by: - couldn't parse `asneed`: Value not supported for Semicolons. Supported values are 'as-needed' and 'always'. + couldn't parse `asneed`: Value not supported for Semicolons. Supported values are 'as-needed' and + 'always'. ``` - - diff --git a/crates/biome_cli/tests/snapshots/main_commands_lint/lint_help.snap b/crates/biome_cli/tests/snapshots/main_commands_lint/lint_help.snap index c9cbf20ab845..2a2d9524d579 100644 --- a/crates/biome_cli/tests/snapshots/main_commands_lint/lint_help.snap +++ b/crates/biome_cli/tests/snapshots/main_commands_lint/lint_help.snap @@ -7,61 +7,68 @@ expression: content ```block Run various checks on a set of files. -Usage: lint [--write] [--unsafe] [--only=]... [--skip=]... [--staged] [--changed -] [--since=REF] [PATH]... +Usage: lint [--write] [--unsafe] [--only=]... [--skip=]... [--staged] [ +--changed] [--since=REF] [PATH]... Set of properties to integrate Biome with a VCS software. --vcs-client-kind= The kind of client. --vcs-enabled= Whether Biome should integrate itself with the VCS client - --vcs-use-ignore-file= Whether Biome should use the VCS ignore file. When [true], - Biome will ignore the files specified in the ignore file. - --vcs-root=PATH The folder where Biome should check for VCS files. By default, Biome will - use the same folder where `biome.json` was found. - If Biome can't find the configuration, it will attempt to use the current - working directory. If no current working directory can't be found, Biome - won't use the VCS integration, and a diagnostic will be emitted + --vcs-use-ignore-file= Whether Biome should use the VCS ignore file. When + [true], Biome will ignore the files specified in the ignore file. + --vcs-root=PATH The folder where Biome should check for VCS files. By default, Biome + will use the same folder where `biome.json` was found. + If Biome can't find the configuration, it will attempt to use the + current working directory. If no current working directory can't be + found, Biome won't use the VCS integration, and a diagnostic will be + emitted --vcs-default-branch=BRANCH The main branch of the project The configuration of the filesystem - --files-max-size=NUMBER The maximum allowed size for source code files in bytes. Files above - this limit will be ignored for performance reasons. Defaults to 1 MiB + --files-max-size=NUMBER The maximum allowed size for source code files in bytes. Files + above this limit will be ignored for performance reasons. Defaults to + 1 MiB --files-ignore-unknown= Tells Biome to not emit diagnostics when handling files that doesn't know Linter options specific to the JavaScript linter - --javascript-linter-enabled= Control the linter for JavaScript (and its super languages) - files. + --javascript-linter-enabled= Control the linter for JavaScript (and its super + languages) files. Linter options specific to the JSON linter - --json-linter-enabled= Control the linter for JSON (and its super languages) files. + --json-linter-enabled= Control the linter for JSON (and its super languages) + files. Global options applied to all commands - --colors= Set the formatting mode for markup: "off" prints everything as plain text, - "force" forces the formatting of markup using ANSI even if the console - output is determined to be incompatible + --colors= Set the formatting mode for markup: "off" prints everything as plain + text, "force" forces the formatting of markup using ANSI even if the + console output is determined to be incompatible --use-server Connect to a running instance of the Biome daemon server. - --verbose Print additional diagnostics, and some diagnostics show more information. - --config-path=PATH Set the file path to the configuration file, or the directory path to find - `biome.json` or `biome.jsonc`. If used, it disables the default configuration - file resolution. - --max-diagnostics=> Cap the amount of diagnostics displayed. When `none` is provided, - the limit is lifted. + --verbose Print additional diagnostics, and some diagnostics show more + information. + --config-path=PATH Set the file path to the configuration file, or the directory path to + find `biome.json` or `biome.jsonc`. If used, it disables the default + configuration file resolution. + --max-diagnostics=> Cap the amount of diagnostics displayed. When `none` is + provided, the limit is lifted. [default: 20] - --skip-errors Skip over files containing syntax errors instead of emitting an error diagnostic. - --no-errors-on-unmatched Silence errors that would be emitted in case no files were processed - during the execution of the command. - --error-on-warnings Tell Biome to exit with an error code if some diagnostics emit warnings. - --reporter= Allows to change how diagnostics and summary - are reported. - --log-level= The level of logging. In order, from the most verbose - to the least verbose: debug, info, warn, error. + --skip-errors Skip over files containing syntax errors instead of emitting an error + diagnostic. + --no-errors-on-unmatched Silence errors that would be emitted in case no files were + processed during the execution of the command. + --error-on-warnings Tell Biome to exit with an error code if some diagnostics emit + warnings. + --reporter= Allows to change how diagnostics and + summary are reported. + --log-level= The level of logging. In order, from the most + verbose to the least verbose: debug, info, warn, error. The value `none` won't show any logging. [default: none] --log-kind= How the log should look like. [default: pretty] - --diagnostic-level= The level of diagnostics to show. In order, from the lowest - to the most important: info, warn, error. Passing `--diagnostic-level=error` - will cause Biome to print only diagnostics that contain only errors. + --diagnostic-level= The level of diagnostics to show. In order, from the + lowest to the most important: info, warn, error. Passing + `--diagnostic-level=error` will cause Biome to print only diagnostics + that contain only errors. [default: info] Available positional items: @@ -72,26 +79,29 @@ Available options: --unsafe Allow to do unsafe fixes, should be used with `--write` or `--fix` --fix Alias for `--write`, writes safe fixes --apply Alias for `--write`, writes safe fixes (deprecated, use `--write`) - --apply-unsafe Alias for `--write --unsafe`, writes safe and unsafe fixes (deprecated, - use `--write --unsafe`) - --only= Run only the given rule or group of rules. If the severity level of a rule - is `off`, then the severity level of the rule is set to `error` if it is - a recommended rule or `warn` otherwise. - Example: `biome lint --only=correctness/noUnusedVariables --only=suspicious` + --apply-unsafe Alias for `--write --unsafe`, writes safe and unsafe fixes + (deprecated, use `--write --unsafe`) + --only= Run only the given rule or group of rules. If the severity level of a + rule is `off`, then the severity level of the rule is set to `error` + if it is a recommended rule or `warn` otherwise. + Example: `biome lint --only=correctness/noUnusedVariables + --only=suspicious` --skip= Skip the given rule or group of rules by setting the severity level of the rules to `off`. This option takes precedence over `--only`. - Example: `biome lint --skip=correctness/noUnusedVariables --skip=suspicious` + Example: `biome lint --skip=correctness/noUnusedVariables + --skip=suspicious` --stdin-file-path=PATH Use this option when you want to format code piped from `stdin`, and print the output to `stdout`. - The file doesn't need to exist on disk, what matters is the extension of - the file. Based on the extension, Biome knows how to lint the code. + The file doesn't need to exist on disk, what matters is the extension + of the file. Based on the extension, Biome knows how to lint the code. Example: `echo 'let a;' | biome lint --stdin-file-path=file.js` - --staged When set to true, only the files that have been staged (the ones prepared - to be committed) will be linted. - --changed When set to true, only the files that have been changed compared to your - `defaultBranch` configuration will be linted. - --since=REF Use this to specify the base branch to compare against when you're using - the --changed flag and the `defaultBranch` is not set in your biome.json + --staged When set to true, only the files that have been staged (the ones + prepared to be committed) will be linted. + --changed When set to true, only the files that have been changed compared to + your `defaultBranch` configuration will be linted. + --since=REF Use this to specify the base branch to compare against when you're + using the --changed flag and the `defaultBranch` is not set in your + biome.json -h, --help Prints help information ``` diff --git a/crates/biome_cli/tests/snapshots/main_commands_lint/lint_only_missing_group.snap b/crates/biome_cli/tests/snapshots/main_commands_lint/lint_only_missing_group.snap index 7a56b8f57b08..8c1d8bfdf655 100644 --- a/crates/biome_cli/tests/snapshots/main_commands_lint/lint_only_missing_group.snap +++ b/crates/biome_cli/tests/snapshots/main_commands_lint/lint_only_missing_group.snap @@ -17,7 +17,8 @@ flags/invalid ━━━━━━━━━━━━━━━━━━━━━━ × Failed to parse CLI arguments. Caused by: - couldn't parse `noDebugger`: This group doesn't exist. Use the syntax `/` to specify a rule. + couldn't parse `noDebugger`: This group doesn't exist. Use the syntax `/` to specify a + rule. diff --git a/crates/biome_cli/tests/snapshots/main_commands_lint/lint_only_nursery_group.snap b/crates/biome_cli/tests/snapshots/main_commands_lint/lint_only_nursery_group.snap index daff144eab86..3c25a1ef419c 100644 --- a/crates/biome_cli/tests/snapshots/main_commands_lint/lint_only_nursery_group.snap +++ b/crates/biome_cli/tests/snapshots/main_commands_lint/lint_only_nursery_group.snap @@ -16,7 +16,8 @@ flags/invalid ━━━━━━━━━━━━━━━━━━━━━━ × Failed to parse CLI arguments. Caused by: - couldn't parse `nursery`: The `nursery` group cannot be selected. Select a specific nursery rule instead. + couldn't parse `nursery`: The `nursery` group cannot be selected. Select a specific nursery rule + instead. diff --git a/crates/biome_cli/tests/snapshots/main_commands_lsp_proxy/lsp_proxy_help.snap b/crates/biome_cli/tests/snapshots/main_commands_lsp_proxy/lsp_proxy_help.snap index adcfbe47e8bd..53faf62ccbe9 100644 --- a/crates/biome_cli/tests/snapshots/main_commands_lsp_proxy/lsp_proxy_help.snap +++ b/crates/biome_cli/tests/snapshots/main_commands_lsp_proxy/lsp_proxy_help.snap @@ -10,8 +10,8 @@ Acts as a server for the Language Server Protocol over stdin/stdout Usage: lsp-proxy [--config-path=PATH] Available options: - --config-path=PATH Allows to set a custom file path to the configuration file, or a custom directory - path to find `biome.json` or `biome.jsonc` + --config-path=PATH Allows to set a custom file path to the configuration file, or a custom + directory path to find `biome.json` or `biome.jsonc` [env:BIOME_CONFIG_PATH: N/A] -h, --help Prints help information diff --git a/crates/biome_cli/tests/snapshots/main_commands_migrate/migrate_help.snap b/crates/biome_cli/tests/snapshots/main_commands_migrate/migrate_help.snap index c40be164c3a7..5864bd360489 100644 --- a/crates/biome_cli/tests/snapshots/main_commands_migrate/migrate_help.snap +++ b/crates/biome_cli/tests/snapshots/main_commands_migrate/migrate_help.snap @@ -10,32 +10,36 @@ It updates the configuration when there are breaking changes Usage: migrate [--write] [COMMAND ...] Global options applied to all commands - --colors= Set the formatting mode for markup: "off" prints everything as plain text, - "force" forces the formatting of markup using ANSI even if the console - output is determined to be incompatible + --colors= Set the formatting mode for markup: "off" prints everything as plain + text, "force" forces the formatting of markup using ANSI even if the + console output is determined to be incompatible --use-server Connect to a running instance of the Biome daemon server. - --verbose Print additional diagnostics, and some diagnostics show more information. - --config-path=PATH Set the file path to the configuration file, or the directory path to find - `biome.json` or `biome.jsonc`. If used, it disables the default configuration - file resolution. - --max-diagnostics=> Cap the amount of diagnostics displayed. When `none` is provided, - the limit is lifted. + --verbose Print additional diagnostics, and some diagnostics show more + information. + --config-path=PATH Set the file path to the configuration file, or the directory path to + find `biome.json` or `biome.jsonc`. If used, it disables the default + configuration file resolution. + --max-diagnostics=> Cap the amount of diagnostics displayed. When `none` is + provided, the limit is lifted. [default: 20] - --skip-errors Skip over files containing syntax errors instead of emitting an error diagnostic. - --no-errors-on-unmatched Silence errors that would be emitted in case no files were processed - during the execution of the command. - --error-on-warnings Tell Biome to exit with an error code if some diagnostics emit warnings. - --reporter= Allows to change how diagnostics and summary - are reported. - --log-level= The level of logging. In order, from the most verbose - to the least verbose: debug, info, warn, error. + --skip-errors Skip over files containing syntax errors instead of emitting an error + diagnostic. + --no-errors-on-unmatched Silence errors that would be emitted in case no files were + processed during the execution of the command. + --error-on-warnings Tell Biome to exit with an error code if some diagnostics emit + warnings. + --reporter= Allows to change how diagnostics and + summary are reported. + --log-level= The level of logging. In order, from the most + verbose to the least verbose: debug, info, warn, error. The value `none` won't show any logging. [default: none] --log-kind= How the log should look like. [default: pretty] - --diagnostic-level= The level of diagnostics to show. In order, from the lowest - to the most important: info, warn, error. Passing `--diagnostic-level=error` - will cause Biome to print only diagnostics that contain only errors. + --diagnostic-level= The level of diagnostics to show. In order, from the + lowest to the most important: info, warn, error. Passing + `--diagnostic-level=error` will cause Biome to print only diagnostics + that contain only errors. [default: info] Available options: @@ -44,9 +48,10 @@ Available options: -h, --help Prints help information Available commands: - prettier It attempts to find the files `.prettierrc`/`prettier.json` and `.prettierignore`, - and map the Prettier's configuration into Biome's configuration file. - eslint It attempts to find the ESLint configuration file in the working directory, - and update the Biome's configuration file as a result. + prettier It attempts to find the files `.prettierrc`/`prettier.json` and + `.prettierignore`, and map the Prettier's configuration into Biome's + configuration file. + eslint It attempts to find the ESLint configuration file in the working + directory, and update the Biome's configuration file as a result. ``` diff --git a/crates/biome_cli/tests/snapshots/main_commands_rage/rage_help.snap b/crates/biome_cli/tests/snapshots/main_commands_rage/rage_help.snap index f37e9d7c0b18..860a4cedf782 100644 --- a/crates/biome_cli/tests/snapshots/main_commands_rage/rage_help.snap +++ b/crates/biome_cli/tests/snapshots/main_commands_rage/rage_help.snap @@ -10,37 +10,42 @@ Prints information for debugging Usage: rage [--daemon-logs] [--formatter] [--linter] Global options applied to all commands - --colors= Set the formatting mode for markup: "off" prints everything as plain text, - "force" forces the formatting of markup using ANSI even if the console - output is determined to be incompatible + --colors= Set the formatting mode for markup: "off" prints everything as plain + text, "force" forces the formatting of markup using ANSI even if the + console output is determined to be incompatible --use-server Connect to a running instance of the Biome daemon server. - --verbose Print additional diagnostics, and some diagnostics show more information. - --config-path=PATH Set the file path to the configuration file, or the directory path to find - `biome.json` or `biome.jsonc`. If used, it disables the default configuration - file resolution. - --max-diagnostics=> Cap the amount of diagnostics displayed. When `none` is provided, - the limit is lifted. + --verbose Print additional diagnostics, and some diagnostics show more + information. + --config-path=PATH Set the file path to the configuration file, or the directory path to + find `biome.json` or `biome.jsonc`. If used, it disables the default + configuration file resolution. + --max-diagnostics=> Cap the amount of diagnostics displayed. When `none` is + provided, the limit is lifted. [default: 20] - --skip-errors Skip over files containing syntax errors instead of emitting an error diagnostic. - --no-errors-on-unmatched Silence errors that would be emitted in case no files were processed - during the execution of the command. - --error-on-warnings Tell Biome to exit with an error code if some diagnostics emit warnings. - --reporter= Allows to change how diagnostics and summary - are reported. - --log-level= The level of logging. In order, from the most verbose - to the least verbose: debug, info, warn, error. + --skip-errors Skip over files containing syntax errors instead of emitting an error + diagnostic. + --no-errors-on-unmatched Silence errors that would be emitted in case no files were + processed during the execution of the command. + --error-on-warnings Tell Biome to exit with an error code if some diagnostics emit + warnings. + --reporter= Allows to change how diagnostics and + summary are reported. + --log-level= The level of logging. In order, from the most + verbose to the least verbose: debug, info, warn, error. The value `none` won't show any logging. [default: none] --log-kind= How the log should look like. [default: pretty] - --diagnostic-level= The level of diagnostics to show. In order, from the lowest - to the most important: info, warn, error. Passing `--diagnostic-level=error` - will cause Biome to print only diagnostics that contain only errors. + --diagnostic-level= The level of diagnostics to show. In order, from the + lowest to the most important: info, warn, error. Passing + `--diagnostic-level=error` will cause Biome to print only diagnostics + that contain only errors. [default: info] Available options: --daemon-logs Prints the Biome daemon server logs - --formatter Prints the Biome configuration that the applied formatter configuration + --formatter Prints the Biome configuration that the applied formatter + configuration --linter Prints the Biome configuration that the applied linter configuration -h, --help Prints help information