micheh / phpcs-gitlab

Gitlab Report for PHP_CodeSniffer (display the violations in the Gitlab CI/CD Code Quality Report)
BSD 3-Clause "New" or "Revised" License
38 stars 3 forks source link

another usage: convert after phpcs #65

Open sinkcup opened 4 hours ago

sinkcup commented 4 hours ago

now:

phpcs:
  script: vendor/bin/phpcs --report=full --report-\\Micheh\\PhpCodeSniffer\\Report\\Gitlab=phpcs-quality-report.json
  artifacts:
    reports:
      codequality: phpcs-quality-report.json

expect:

phpcs:
  script:
    - ./vendor/bin/phpcs --report=json --report-file=phpcs.json --standard=PSR12 src/
    - ./vendor/bin/phpcs-gitlab phpcs.json phpcs-quality-report.json
  artifacts:
    reports:
      codequality: phpcs-quality-report.json
micheh commented 1 hour ago

Why do you want to split it up?