christophlehmann/fluid-lint

Fluid模板的语法检查

安装次数: 1,376

依赖: 0

建议者: 0

安全: 0

星星: 0

关注者: 2

分支: 0

开放问题: 0

类型:typo3-cms-extension

0.1.1 2023-10-02 22:05 UTC

This package is auto-updated.

Last update: 2024-08-31 00:41:36 UTC


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的作品。