From ba879873673c5fa185e5b98fe5e9fa15d6b8d10a Mon Sep 17 00:00:00 2001 From: John <51100181+jwmza@users.noreply.github.com> Date: Sat, 26 Aug 2023 17:14:23 -0400 Subject: [PATCH] Fix "performance reason" typo --- .../tests/snapshots/main_commands_check/check_help.snap | 2 +- .../tests/snapshots/main_commands_ci/ci_help.snap | 2 +- .../tests/snapshots/main_commands_format/format_help.snap | 2 +- .../tests/snapshots/main_commands_lint/check_help.snap | 2 +- crates/rome_service/src/configuration/mod.rs | 2 +- editors/vscode/configuration_schema.json | 2 +- npm/backend-jsonrpc/src/workspace.ts | 2 +- npm/rome/configuration_schema.json | 2 +- website/src/pages/cli.md | 8 ++++---- website/src/pages/configuration.mdx | 2 +- website/src/pages/formatter/index.mdx | 2 +- website/src/pages/linter/index.mdx | 2 +- 12 files changed, 15 insertions(+), 15 deletions(-) diff --git a/crates/rome_cli/tests/snapshots/main_commands_check/check_help.snap b/crates/rome_cli/tests/snapshots/main_commands_check/check_help.snap index d940f2f87a4..ca51e3ee14a 100644 --- a/crates/rome_cli/tests/snapshots/main_commands_check/check_help.snap +++ b/crates/rome_cli/tests/snapshots/main_commands_check/check_help.snap @@ -20,7 +20,7 @@ The configuration that is contained inside the file `rome.json` working directory. If no current working directory can't be found, Rome won't use the VCS integration, and a diagnostic will be emitted --files-max-size=NUMBER The maximum allowed size for source code files in bytes. Files above - this limit will be ignored for performance reason. Defaults to 1 MiB + this limit will be ignored for performance reasons. Defaults to 1 MiB --files-ignore-unknown= Tells Rome to not emit diagnostics when handling files that doesn't know --indent-style= The indent style. diff --git a/crates/rome_cli/tests/snapshots/main_commands_ci/ci_help.snap b/crates/rome_cli/tests/snapshots/main_commands_ci/ci_help.snap index 1059bc2f7d6..ce82b4001fa 100644 --- a/crates/rome_cli/tests/snapshots/main_commands_ci/ci_help.snap +++ b/crates/rome_cli/tests/snapshots/main_commands_ci/ci_help.snap @@ -21,7 +21,7 @@ The configuration that is contained inside the file `rome.json` working directory. If no current working directory can't be found, Rome won't use the VCS integration, and a diagnostic will be emitted --files-max-size=NUMBER The maximum allowed size for source code files in bytes. Files above - this limit will be ignored for performance reason. Defaults to 1 MiB + this limit will be ignored for performance reasons. Defaults to 1 MiB --files-ignore-unknown= Tells Rome to not emit diagnostics when handling files that doesn't know --indent-style= The indent style. diff --git a/crates/rome_cli/tests/snapshots/main_commands_format/format_help.snap b/crates/rome_cli/tests/snapshots/main_commands_format/format_help.snap index c3596856de3..843b5b27a9b 100644 --- a/crates/rome_cli/tests/snapshots/main_commands_format/format_help.snap +++ b/crates/rome_cli/tests/snapshots/main_commands_format/format_help.snap @@ -27,7 +27,7 @@ Set of properties to integrate Rome with a VCS software. 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 reason. Defaults to 1 MiB + this limit will be ignored for performance reasons. Defaults to 1 MiB --files-ignore-unknown= Tells Rome to not emit diagnostics when handling files that doesn't know diff --git a/crates/rome_cli/tests/snapshots/main_commands_lint/check_help.snap b/crates/rome_cli/tests/snapshots/main_commands_lint/check_help.snap index 131a7a4bd93..589fc58ee0c 100644 --- a/crates/rome_cli/tests/snapshots/main_commands_lint/check_help.snap +++ b/crates/rome_cli/tests/snapshots/main_commands_lint/check_help.snap @@ -20,7 +20,7 @@ The configuration that is contained inside the file `rome.json` working directory. If no current working directory can't be found, Rome won't use the VCS integration, and a diagnostic will be emitted --files-max-size=NUMBER The maximum allowed size for source code files in bytes. Files above - this limit will be ignored for performance reason. Defaults to 1 MiB + this limit will be ignored for performance reasons. Defaults to 1 MiB --files-ignore-unknown= Tells Rome to not emit diagnostics when handling files that doesn't know --indent-style= The indent style. diff --git a/crates/rome_service/src/configuration/mod.rs b/crates/rome_service/src/configuration/mod.rs index 48f312733f1..15ec090cf70 100644 --- a/crates/rome_service/src/configuration/mod.rs +++ b/crates/rome_service/src/configuration/mod.rs @@ -247,7 +247,7 @@ impl MergeWith> for Configuration { #[serde(rename_all = "camelCase", default, deny_unknown_fields)] pub struct FilesConfiguration { /// The maximum allowed size for source code files in bytes. Files above - /// this limit will be ignored for performance reason. Defaults to 1 MiB + /// this limit will be ignored for performance reasons. Defaults to 1 MiB #[bpaf(long("files-max-size"), argument("NUMBER"))] pub max_size: Option, diff --git a/editors/vscode/configuration_schema.json b/editors/vscode/configuration_schema.json index 2838d5f0ac2..2f844690f16 100644 --- a/editors/vscode/configuration_schema.json +++ b/editors/vscode/configuration_schema.json @@ -595,7 +595,7 @@ "type": ["boolean", "null"] }, "maxSize": { - "description": "The maximum allowed size for source code files in bytes. Files above this limit will be ignored for performance reason. Defaults to 1 MiB", + "description": "The maximum allowed size for source code files in bytes. Files above this limit will be ignored for performance reasons. Defaults to 1 MiB", "default": null, "type": ["integer", "null"], "format": "uint64", diff --git a/npm/backend-jsonrpc/src/workspace.ts b/npm/backend-jsonrpc/src/workspace.ts index 6d5c367b7e1..a7a9469d2f0 100644 --- a/npm/backend-jsonrpc/src/workspace.ts +++ b/npm/backend-jsonrpc/src/workspace.ts @@ -74,7 +74,7 @@ export interface FilesConfiguration { */ ignoreUnknown?: boolean; /** - * The maximum allowed size for source code files in bytes. Files above this limit will be ignored for performance reason. Defaults to 1 MiB + * The maximum allowed size for source code files in bytes. Files above this limit will be ignored for performance reasons. Defaults to 1 MiB */ maxSize?: number; } diff --git a/npm/rome/configuration_schema.json b/npm/rome/configuration_schema.json index 2838d5f0ac2..2f844690f16 100644 --- a/npm/rome/configuration_schema.json +++ b/npm/rome/configuration_schema.json @@ -595,7 +595,7 @@ "type": ["boolean", "null"] }, "maxSize": { - "description": "The maximum allowed size for source code files in bytes. Files above this limit will be ignored for performance reason. Defaults to 1 MiB", + "description": "The maximum allowed size for source code files in bytes. Files above this limit will be ignored for performance reasons. Defaults to 1 MiB", "default": null, "type": ["integer", "null"], "format": "uint64", diff --git a/website/src/pages/cli.md b/website/src/pages/cli.md index 32690a62963..c81096d4665 100644 --- a/website/src/pages/cli.md +++ b/website/src/pages/cli.md @@ -163,7 +163,7 @@ Run various checks on a set of files. If Rome can't find the configuration, it will attempt to use the current working directory. If no current working directory can't be found, Rome won't use the VCS integration, and a diagnostic will be emitted - **` --files-max-size`**=_`NUMBER`_ — - The maximum allowed size for source code files in bytes. Files above this limit will be ignored for performance reason. Defaults to 1 MiB + 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 Rome to not emit diagnostics when handling files that doesn't know - **` --indent-style`**=_``_ — @@ -248,7 +248,7 @@ Run various checks on a set of files. If Rome can't find the configuration, it will attempt to use the current working directory. If no current working directory can't be found, Rome won't use the VCS integration, and a diagnostic will be emitted - **` --files-max-size`**=_`NUMBER`_ — - The maximum allowed size for source code files in bytes. Files above this limit will be ignored for performance reason. Defaults to 1 MiB + 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 Rome to not emit diagnostics when handling files that doesn't know - **` --indent-style`**=_``_ — @@ -343,7 +343,7 @@ Run the formatter on a set of files. **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 reason. Defaults to 1 MiB + 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 Rome to not emit diagnostics when handling files that doesn't know @@ -412,7 +412,7 @@ Command to use in CI environments. Run various checks of a set of files. If Rome can't find the configuration, it will attempt to use the current working directory. If no current working directory can't be found, Rome won't use the VCS integration, and a diagnostic will be emitted - **` --files-max-size`**=_`NUMBER`_ — - The maximum allowed size for source code files in bytes. Files above this limit will be ignored for performance reason. Defaults to 1 MiB + 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 Rome to not emit diagnostics when handling files that doesn't know - **` --indent-style`**=_``_ — diff --git a/website/src/pages/configuration.mdx b/website/src/pages/configuration.mdx index 91ae6454624..7a2ae7cc58a 100644 --- a/website/src/pages/configuration.mdx +++ b/website/src/pages/configuration.mdx @@ -96,7 +96,7 @@ If you have problems with resolving the physical file, you can use the one publi ### `files.maxSize` The maximum allowed size for source code files in bytes. Files above -this limit will be ignored for performance reason. +this limit will be ignored for performance reasons. > Default: 1024*1024 (1MB) diff --git a/website/src/pages/formatter/index.mdx b/website/src/pages/formatter/index.mdx index c28694e3956..5b32f7a894d 100644 --- a/website/src/pages/formatter/index.mdx +++ b/website/src/pages/formatter/index.mdx @@ -58,7 +58,7 @@ Available options: configuration, it will attempt to use the current working directory. If no current working directory can't be found, Rome won't use the VCS integration. --files-max-size The maximum allowed size for source code files in bytes. Files - above this limit will be ignored for performance reason. Defaults to 1 MiB + above this limit will be ignored for performance reasons. Defaults to 1 MiB --stdin-file-path A file name with its extension to pass when reading from standard in, e.g. echo 'let a;' | rome format --stdin-file-path=file.js" --colors Set the formatting mode for markup: "off" prints everything as plain diff --git a/website/src/pages/linter/index.mdx b/website/src/pages/linter/index.mdx index 35df4ef3df4..ad97e0de778 100644 --- a/website/src/pages/linter/index.mdx +++ b/website/src/pages/linter/index.mdx @@ -42,7 +42,7 @@ Available options: configuration, it will attempt to use the current working directory. If no current working directory can't be found, Rome won't use the VCS integration. --files-max-size The maximum allowed size for source code files in bytes. Files - above this limit will be ignored for performance reason. Defaults to 1 MiB + above this limit will be ignored for performance reasons. Defaults to 1 MiB --indent-style The indent style. --indent-size The size of the indentation, 2 by default --line-width What's the max width of a line. Defaults to 80.