2

I cannot get grumphp to work in a subdirectory.

My directory structure is below :

/api/grumphp.yml

/api/composer.json

/api/src/

grumphp.yml contents:

parameters:
    git_dir: ../.
    bin_dir: vendor/bin
    ascii:
        failed: ~
        succeeded: ~
    tasks:
        phplint: ~
        phpcsfixer2: ~
        xmllint:
            ignore_patterns: []
            load_from_net: true
            x_include: false
            dtd_validation: true
            scheme_validation: true
            triggered_by: [xml]

My composer.json file contains:

  "extra": {
    "grumphp": {
      "config-default-path": "./grumphp.yml"
    }

Output

GrumPHP detected a pre-commit command.
GrumPHP is sniffing your code!
Running task 1/3: PhpCsFixerV2... ✔
Running task 2/3: PhpLint... ✔
Running task 3/3: XmlLint... ✔

GrumPHP detected a commit-msg command.
GrumPHP is sniffing your code!

Running the command vendor/bin/grumphp run does give me the expected PHPCS errors

kuba
  • 3,670
  • 3
  • 31
  • 41

0 Answers0