about summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-07-22 10:26:13 +0200
committerGitHub <noreply@github.com>2025-07-22 10:26:13 +0200
commit73305e22403fe71874478d478cd63d9b6c9a96b5 (patch)
tree87442a5a73c026d635fe486cce2a561c92d71e40 /src/bootstrap
parented92e53803ba78dc435c79e7b2debfb843dd0642 (diff)
parentc6d50eaa497ef0c3013d21f23cd85e6e97c32c2c (diff)
downloadrust-73305e22403fe71874478d478cd63d9b6c9a96b5.tar.gz
rust-73305e22403fe71874478d478cd63d9b6c9a96b5.zip
Rollup merge of #142924 - lolbinarycat:tidy-js-extra-checks, r=Kobzol
tidy: move rustdoc js stuff into a tidy extra check

Most of these were factored out of CI scripts, but `eslint` in particular was previously implemented with its own special cased logic.

A new option has been added to bootstrap, `build.tidy-extra-checks`, which serves as a default value for the `--extra-checks` flag.  This is mostly for the benefit of rustdoc js maintainers, but should also help bootstrap py maintainers.

Additionally, `--extra-checks=cpp` has been documented.

I'm not super happy with how long the extra check names are in comparison to the others (in particular `typecheck`), but I couldn't think of anything better (I didn't want to name it `tsc` on the off chance we want to switch to a different typechecking engine in the future).

It would be nice to convert the extra checks arg into a proper enum, both for warning on unknown values and to provide better shell completion.

r? ```@GuillaumeGomez```

Fixes: https://github.com/rust-lang/rust/issues/144093
Diffstat (limited to 'src/bootstrap')
-rw-r--r--src/bootstrap/src/core/config/flags.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bootstrap/src/core/config/flags.rs b/src/bootstrap/src/core/config/flags.rs
index 1547ca44494..31a427f9ffa 100644
--- a/src/bootstrap/src/core/config/flags.rs
+++ b/src/bootstrap/src/core/config/flags.rs
@@ -386,7 +386,7 @@ pub enum Subcommand {
         bless: bool,
         #[arg(long)]
         /// comma-separated list of other files types to check (accepts py, py:lint,
-        /// py:fmt, shell, shell:lint, cpp, cpp:fmt, spellcheck)
+        /// py:fmt, shell, cpp, cpp:fmt, js, js:lint, js:typecheck, spellcheck)
         ///
         /// Any argument can be prefixed with "auto:" to only run if
         /// relevant files are modified (eg. "auto:py").