rustc-dev-guide icon indicating copy to clipboard operation
rustc-dev-guide copied to clipboard

add section about how rustdoc uses static analysis

Open lolbinarycat opened this issue 7 months ago • 1 comments

inspired by https://github.com/rust-lang/rustc-dev-guide/pull/2298#discussion_r2121786725 and my own confusion with eslint

rustdoc currently uses two tools for linting, eslint and tsc (as well as universal tidy checks, like line length), and we don't currently explain how to use them in much detail, it would be nice to have a separate section for this, instead of mixing this info in with other stuff.

lolbinarycat avatar Jun 02 '25 20:06 lolbinarycat

es-check is another static analysis tool we use.

I think "run all the rustdoc static analysis stuff" should be split into a separate "testsuite" under bootstrap, instead of just grouping it under ./x test tidy.

lolbinarycat avatar Jun 04 '25 16:06 lolbinarycat