Sign inSign up

nbgrp/auditor

By nbgrp

•Updated 10 months ago

The Auditor allows you to run PHP code quality tools with help of GrumPHP.

Image
Developer tools
0

6.5K

nbgrp/auditor repository overview

⁠Auditor

The Auditor is a toolbox based on the awesome GrumPHP⁠ utility which allows to run several code quality tools parallel.

Currently, the Auditor supports the following code quality tools:

  • Phan
  • PHP CS Fixer
  • PHP_CodeSniffer
  • PHP Mess Detector
  • PHP Magic Number Detector
  • PHPStan
  • Psalm

⁠Usage

To use the Auditor tool container just run the following command in directory with your grumphp.yml:

docker run -it --rm -v $PWD:/app --workdir /app nbgrp/auditor:latest

It passes your current working directory ($PWD) into the Auditor's container and execute grumphp run for all files from this directory with applying settings from grumphp.yml.

When using the Auditor with GitHub Actions, you may need to specify the working directory (that contains grumphp.yml) inside a repository. To do this, you can use the with.working_dir step parameter:

- name: Audit
  uses: docker://nbgrp/auditor:latest
  with:
    working_dir: inner_directory_with_grumphp_config

Tag summary

Content type

Image

Digest

sha256:17dd4b612…

Size

145 MB

Last updated

10 months ago

docker pull nbgrp/auditor