An open API service indexing awesome lists of open source software.

https://github.com/texthtml/docker-phpcs

docker image for PHP_CodeSniffer
https://github.com/texthtml/docker-phpcs

docker-image lint linter php php-cs-fixer sniffer

Last synced: 3 months ago
JSON representation

docker image for PHP_CodeSniffer

Awesome Lists containing this project

README

          

# PHPCS

This is a docker image for [PHP_CodeSniffer](https://github.com/PHPCSStandards/PHP_CodeSniffer)

## Usage

Detect code standard violations

```
docker run -v /path/to/php/files/:/scripts/ texthtml/phpcs phpcs --standard=PSR2 /scripts/
```

and fix them

```
docker run -v /path/to/php/files/:/scripts/ texthtml/phpcs phpcbf --standard=PSR2 /scripts/
```