GrumPHP task to lint TYPO3 CMS TypoScript files.
This package adds a TYPO3 CMS TypoScript file linter task to grumphp based on martin-helmich/typo3-typoscript-lint of Martin Helmich.
Basic inclusion in grumphp.yml:
parameters:
tasks:
typoscriptlint: ~
extensions:
- Pluswerk\TypoScriptLinter\ExtensionLoader
composer require --dev pluswerk/grumphp-typoscript-task
The linter can be configured in the grumphp.yml file in the same way as without grumphp see TypoScript Linter configuration
parameters:
tasks:
typoscriptlint:
sniffs:
- class: Indentation
parameters:
useSpaces: true
indentPerLevel: 2
indentConditions: true
- class: DeadCode
extensions:
- Pluswerk\TypoScriptLinter\ExtensionLoader
The file extensions, which trigger the linter.
parameters:
tasks:
typoscriptlint:
triggered_by:
- 'typoscript'
Ignore file with grumphp ignore patterns.
parameters:
tasks:
typoscriptlint:
ignore_patterns:
- 'pattern'