Skip to content

mbrevda/step-phpcs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP CodeSniffer Wercker step

Verifies all *.php files specified directory

wercker status

Dependencies

  • PHP - This build-step depends on an installed php version, if it's missing, the buildstep will fail. Please either install php, or pick a box which has php already installed
  • PHPCS - Information on installing phpcs is available at https://github.com/squizlabs/PHP_CodeSniffer#installation

Options

  • directory The directory(s)/file(s) to scan. please add a pipeline variable which sets the path, or make it hardcoded in your wercker.yml
  • ignore The directory(s)/file(s) to ignore.
  • standard The coding standard used to test against; defaults to PSR2.
  • report Sets the output display format. http://pear.php.net/manual/en/package.php.php-codesniffer.reporting.php

Example

box: wercker/php
## Build definition
build:
  # The steps that will be executed on build
  steps:
  - mbrevda/phpcs:
        directory: $DIRECTORY
        standard: PSR2
        ignore: $IGNORE_DIRECTORY
        report: full
deploy:
  steps:

About

PHP CodeSniffer step for Wercker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published