carthage-software/mago
Mago is an extremely fast PHP linter, formatter, and static analyzer written in Rust. It helps teams catch issues early, enforce consistent style, and improve code quality across projects, with multiple install options like script, Homebrew, Composer, and Cargo.
+++ title = "Linter 集成" description = "可按项目启用的框架专属规则集。" nav_order = 30 nav_section = "工具" nav_subsection = "Linter" +++
Mago 内置了针对主流 PHP 框架、库和测试工具的规则集。当某项集成被启用时,Mago 会激活与之关联的规则。各条规则仍可在 [linter.rules] 中单独调整或禁用。
其中部分集成是为未来的规则预留的占位。当前已有规则的集成列表见规则页面。
在 mago.toml 中,把要启用的集成列在 [linter].integrations 下:
[linter]
integrations = ["symfony", "phpunit"]
完整的配置项见配置参考。
How can I help you explore Laravel packages today?