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