Public | Automated Build

Last pushed: 4 months ago
Short Description
Lightweight PHP Code Sniffer image.
Full Description

phpcs

Lightweight PHP Code Sniffer image.

Usage

Considering your .php files are in ./src directory.

To run phpcs:

docker run --rm -v "$PWD":/app hypnoglow/phpcs phpcs \
    --standard=PSR2 --colors -p \
    --extensions=php --ignore=/vendor \
    /app/

To fix possible issues:

docker run --rm -v "$PWD":/app hypnoglow/phpcs phpcbf \
    --standard=PSR2 -p \
    --extensions=php --ignore=/vendor \
    /app/
Docker Pull Command
Owner
hypnoglow
Source Repository

Comments (0)