I am using this PHP Library here https://github.com/bruli/php-git-hooks, this library uses phpcs (https://github.com/squizlabs/PHP_CodeSniffer)
I have a php-git-hooks.yml
config file like this
pre-commit:
enabled: true
execute:
phpcs:
enabled: true
standard: my-custom-cs.xml
I am trying to use a custom standards file. I get this error
[PhpGitHooks\Module\Configuration\Contract\Exception\InvalidPhpCsStandardException]
Invalid phpcs standard <my-custom-cs.xml>
Specifying a built in standard such as standard: PSR2
does work.
How can I specify a custom file? Judging by the libraries code at https://github.com/bruli/php-git-hooks/blob/528a9a4c5905e9f5ca7bdb55f5111dd4fe22ca9c/src/PhpGitHooks/Module/Configuration/Domain/PhpCsStandard.php#L22 this may not even be possible?