christophlehmann / fluid-lint
Fluid模板的语法检查
0.1.1
2023-10-02 22:05 UTC
Requires
- typo3/cms-core: ^11.5 || ^12.0
- typo3/cms-extensionmanager: ^11.5 || ^12.0
- typo3/cms-fluid: ^11.5 || ^12.0
Requires (Dev)
- phpstan/phpstan: ^1.9
- typo3/coding-standards: ^0.7.1
README
TYPO3 11+ 中 Fluid 模板的语法检查器
安装
composer req --dev christophlehmann/fluid-lint
使用
# Check a single TYPO3 Extension composer exec typo3 -- fluidlint:check -e site_extension # Check all TYPO3 Extensions in a directory composer exec typo3 -- fluidlint:check -b local_packages/
没有选项时,将检查所有非系统扩展中的所有模板。
使用-vvv
,您将获得有关模板的更多详细信息。
所有选项
composer exec typo3 -- help fluidlint:check Description: Fluid Lint: Check Fluid syntax Usage: fluidlint:check [options] Options: -b, --base-dir=BASE-DIR Extensions in given directory -e, --extension[=EXTENSION] Extension key to check -p, --path[=PATH] File or folder path (if extensionKey is included, path is relative to this extension) -r, --regex=REGEX Extension key must match regular expression [default: ".*"] -x, --file-extensions=FILE-EXTENSIONS If provided, this CSV list of file extensions are considered Fluid templates [default: "html,xml,txt"] -v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
限制
它不会验证ViewHelper参数的类型,因为参数没有被使用。
致谢
此命令是从FluidTYPO3/builder中提取的,这是Clause Due的作品。