Closed balu-ertl closed 5 years ago
This package will not overwrite any existing grumphp.yml files. The old one has to be removed or renamed and this package has to be reinstalled. Note: Currently there should be around 8 checks configured, the copied CLI output shows 3. Note2: #2
Thanks for pointing to the right direction. Indeed, now it works. Steps how I managed to install:
grumphp.yml
file (not deleted, kept there).wodby@php.container:/var/www/html $ composer require brainsum/drupal-dev-tools:'0.2.0' --dev
grumphp.yml
to automatically appear beside the original one, but by some reason it did not happen. So I manually downloaded the grumphp.dist.yml from the repo and placed it there.
GrumPHP detected a pre-commit command.
GrumPHP is sniffing your code!
Running task 1/8: Composer... ✔
Running task 2/8: BranchName... ✔
Running task 3/8: Phpcs... ✔
Running task 4/8: PhpLint... ✔
Running task 5/8: PhpParser... ✔
Running task 6/8: PhpVersion... ✔
Running task 7/8: SecurityChecker... ✔
Running task 8/8: YamlLint... ✔
GrumPHP detected a commit-msg command.
GrumPHP is sniffing your code!
Running task 1/1: CommitMessage... ✘```
After installation with Composer within a project (EL) I wanted to test how the checks run by trying to commit with an obviously fault message:
$ git commit -m "DAM-00 - Ez most nem lenne szabad beengednie"
However I stumbled upon into an issue when checking process arrives toPhpcs
(occuring both in- and outside of the Docker container):After reading about how GrumPHP utilizes Git hooks and how to configure Code_Sniffer to handle warnings, I managed to track back the source of the message which is probably sent by Symfony's OptionsResolver component.
But from this point I can't proceed further with figuring out how to make it properly working.