Skip to main content

Module external

Module external 

Source
Expand description

External static-analysis tool integration (PHPStan / PHPCS).

These run as child processes against a single saved file and their findings are merged into the diagnostics the built-in mir-backed analyzer already produces — see crate::lang::config::ExternalToolsConfig for why both default off.

Modules§

phpcs
Runs PHPCS against a single file via --report=json and maps its findings onto LSP diagnostics.
phpstan
Runs PHPStan against a single file via --error-format=json and maps its findings onto LSP diagnostics.

Functions§

run_external_diagnostics
Run every enabled external tool against path and return their combined diagnostics. Tools run one after another rather than concurrently so a single caller gets one complete Vec back instead of having to merge two independently-arriving results.