andersundsehr/grumphp-fractor-task
GrumPHP task for running Fractor (TYPO3 Fractor) in your Git hooks. Configure fractor.php path, file extensions, ignore patterns, cache clearing, and diff output to enforce automated refactoring checks on commit.
Add tasks for fractor https://github.com/andreaswolf/fractor-typo3-fractor
composer require --dev andersundsehr/grumphp-fractor-task
# grumphp.yml
grumphp:
tasks:
fractor:
config: null
triggered_by: ['php']
ignore_patterns: []
clear_cache: true
no_diffs: false
extensions:
- Andersundsehr\GrumPHPFractorTask\ExtensionLoader
config
Default: null
With this parameter you can specify the path your project's configuration file. When 'null' fractor will run with the default file: fractor.php
triggered_by
Default: [php]
This is a list of extensions to be sniffed.
ignore_patterns
Default: []
This is a list of patterns that will be ignored by Fractor. With this option you can skip files like tests. Leave this option blank to run Fractor for every php file/directory specified in your configuration.
clear_cache
Default: true
With this parameter you can run Fractor without using the cache.
no_diffs
Default: false
With this parameter you can run Fractor without showing file diffs.
How can I help you explore Laravel packages today?