Skip to main content

Crate mago_wasm

Crate mago_wasm 

Source
Expand description

§Mago WASM Bindings

This crate provides WebAssembly bindings for Mago’s linting, static analysis, and formatting functionality, designed to work in browser environments.

Functions§

analyze
Runs static analysis on PHP code and returns issues as a JavaScript array.
format
Formats PHP code and returns the formatted result.
get_plugins
Returns metadata for all available analyzer plugins.
get_rules
Returns metadata for all available linter rules.
lint
Lints PHP code and returns issues as a JavaScript array.
run