Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update rust crate bpaf to 0.9.12 #3506

Merged
merged 2 commits into from
Jul 23, 2024
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
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
213 changes: 114 additions & 99 deletions crates/biome_cli/tests/snapshots/main_commands_check/check_help.snap

Large diffs are not rendered by default.

204 changes: 109 additions & 95 deletions crates/biome_cli/tests/snapshots/main_commands_ci/ci_help.snap

Large diffs are not rendered by default.

164 changes: 88 additions & 76 deletions crates/biome_cli/tests/snapshots/main_commands_format/format_help.snap

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -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'.



```


108 changes: 59 additions & 49 deletions crates/biome_cli/tests/snapshots/main_commands_lint/lint_help.snap
Original file line number Diff line number Diff line change
Expand Up @@ -7,61 +7,68 @@ expression: content
```block
Run various checks on a set of files.

Usage: lint [--write] [--unsafe] [--only=<GROUP|RULE>]... [--skip=<GROUP|RULE>]... [--staged] [--changed
] [--since=REF] [PATH]...
Usage: lint [--write] [--unsafe] [--only=<GROUP|RULE>]... [--skip=<GROUP|RULE>]... [--staged] [
--changed] [--since=REF] [PATH]...

Set of properties to integrate Biome with a VCS software.
--vcs-client-kind=<git> The kind of client.
--vcs-enabled=<true|false> Whether Biome should integrate itself with the VCS client
--vcs-use-ignore-file=<true|false> 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=<true|false> 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=<true|false> Tells Biome to not emit diagnostics when handling files
that doesn't know

Linter options specific to the JavaScript linter
--javascript-linter-enabled=<true|false> Control the linter for JavaScript (and its super languages)
files.
--javascript-linter-enabled=<true|false> Control the linter for JavaScript (and its super
languages) files.

Linter options specific to the JSON linter
--json-linter-enabled=<true|false> Control the linter for JSON (and its super languages) files.
--json-linter-enabled=<true|false> Control the linter for JSON (and its super languages)
files.

Global options applied to all commands
--colors=<off|force> 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=<off|force> 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=<none|<NUMBER>> 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=<none|<NUMBER>> 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=<json|json-pretty|github|junit|summary> Allows to change how diagnostics and summary
are reported.
--log-level=<none|debug|info|warn|error> 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=<json|json-pretty|github|junit|summary> Allows to change how diagnostics and
summary are reported.
--log-level=<none|debug|info|warn|error> 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=<pretty|compact|json> How the log should look like.
[default: pretty]
--diagnostic-level=<info|warn|error> 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=<info|warn|error> 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:
Expand All @@ -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=<GROUP|RULE> 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=<GROUP|RULE> 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=<GROUP|RULE> 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

```
Original file line number Diff line number Diff line change
Expand Up @@ -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 `<group>/<rule>` to specify a rule.
couldn't parse `noDebugger`: This group doesn't exist. Use the syntax `<group>/<rule>` to specify a
rule.



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,32 +10,36 @@ It updates the configuration when there are breaking changes
Usage: migrate [--write] [COMMAND ...]

Global options applied to all commands
--colors=<off|force> 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=<off|force> 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=<none|<NUMBER>> 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=<none|<NUMBER>> 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=<json|json-pretty|github|junit|summary> Allows to change how diagnostics and summary
are reported.
--log-level=<none|debug|info|warn|error> 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=<json|json-pretty|github|junit|summary> Allows to change how diagnostics and
summary are reported.
--log-level=<none|debug|info|warn|error> 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=<pretty|compact|json> How the log should look like.
[default: pretty]
--diagnostic-level=<info|warn|error> 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=<info|warn|error> 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:
Expand All @@ -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.

```
Loading