I'm using PhpCsFixer on a project using Composer and Git for the version control.
When I launch PhpCsFixer, the tool updates all files. I'm searching solutions :
- to limit fixes on the modified files,
- to limit fixes on the staged files.
I already tried to create a command via composer composer fix-staged-files
but it affects all files.
...
"scripts": {
...
"fix-staged-files": "php-cs-fixer fix --config=quality/.php_cs.dist --allow-risky yes ",
...
}