Sign inSign up

quintux/phpcs-drupal

By quintux

Updated over 2 years ago

PHP Code Sniffer for Drupal

Image
Developer tools
0

358

quintux/phpcs-drupal repository overview

https://github.com/quintusl/docker-phpcs-drupal

Example usage for Gitlab CI:

phpcs:
  stage: code-quality
  only:
    - merge_requests
  allow_failure: true
  image:
    name: "quintux/phpcs-drupal"
    entrypoint: [""]
  before_script:
    - git fetch
    - php --version
    - composer global update --with-dependencies drupal/coder
  script:
    - echo -n "" > /output/filelist.txt
    - git diff --name-only origin/$CI_MERGE_REQUEST_TARGET_BRANCH_NAME | while read F; do test -f "$F" && echo "$F" >> /output/filelist.txt ; done
    - phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml --basepath=. --file-list=/output/filelist.txt --report=full --report-\\Micheh\\PhpCodeSniffer\\Report\\Gitlab=.ci/phpcs-quality-report.json
  artifacts:
    paths:
      - ".ci/phpcs-quality-report.json"
    expire_in: 14 days
    when: always
    reports:
      codequality: .ci/phpcs-quality-report.json

Tag summary

Content type

Image

Digest

sha256:fb83310a8

Size

231.3 MB

Last updated

over 2 years ago

docker pull quintux/phpcs-drupal