bonsai-lint for VS CodeFlags functions that are hard to read, across PHP, JavaScript and TypeScript. Powered by bonsai-lint — a single Rust binary, with no PHP runtime and no Node runtime involved in the analysis.
What it doesReports one warning per function that scores above the threshold, on the declaration line. Cognitive complexity measures how hard code is to read, where cyclomatic complexity measures how hard it is to test. It analyses the buffer as you type, not the file on disk, so a diagnostic appears before you save. Analysis is debounced, and each file is scored in a single short-lived process. It sees code other tools missProcedural scripts, templates, route files and module-level bootstrap are scored too, reported
as
It agrees with CI, by designThe extension deliberately does not pass a threshold unless you set one. Your repository's
Anything that goes wrong — a broken Settings
RequirementsVS Code 1.90 or newer. Install the CLI with LicenseMIT |

