christophlehmann / fluid-lint
Syntax check for Fluid templates
Installs: 96
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:typo3-cms-extension
Requires
- typo3/minimal: ^11.5 || ^12.0
Requires (Dev)
- phpstan/phpstan: ^1.9
- typo3/coding-standards: ^0.7.1
This package is auto-updated.
Last update: 2023-05-14 15:32:07 UTC
README
A syntax checker for Fluid templates in TYPO3 11+
Installation
composer req --dev christophlehmann/fluid-lint
Usage
typo3/sysext/core/bin/typo3 fluidlint:check --extension=site_extension
The command outputs errors and warnings. When errors occur, then it exits with exit code 1.
When you run the command without options, then all templates in all non-system extensions are checked.
In verbose mode you get more details about the templates.
Limitations
It does not verify the types of ViewHelper arguments since arguments are not used.
Options
-e, --extension[=EXTENSION] Extension key to check, if not specified will check all extensions containing Fluid templates -p, --path[=PATH] File or folder path (if extensionKey is included, path is relative to this extension) -x, --extensions[=EXTENSIONS] If provided, this CSV list of file extensions are considered Fluid templates [default: "html,xml,txt"] -v|vv|vvv, --verbose Verbose output
Credits
The command was extracted from FluidTYPO3/builder which is the work of Clause Due.