PHPackages                             kerasai/robo-phpcs - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. kerasai/robo-phpcs

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

kerasai/robo-phpcs
==================

PHPCS task for Robo PHP task runner.

1.0.5(1y ago)025.1k↓77.1%3PHPCI failing

Since Feb 15Pushed 1y agoCompare

[ Source](https://github.com/kerasai/robo-phpcs)[ Packagist](https://packagist.org/packages/kerasai/robo-phpcs)[ RSS](/packages/kerasai-robo-phpcs/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (4)Versions (16)Used By (3)

[![CircleCI](https://camo.githubusercontent.com/f78e6bda0730526fc8200faefcf1cb85bfc5fb6acd04e608a6b5657594df1a49/68747470733a2f2f636972636c6563692e636f6d2f67682f6b6572617361692f726f626f2d70687063732e7376673f7374796c653d737667)](https://circleci.com/gh/kerasai/robo-phpcs)

Robo PHPCS
==========

[](#robo-phpcs)

Installation
------------

[](#installation)

> composer require --dev kerasai/robo-phpcs

You'll also want standards to apply. For the example configruation below:

> composer require --dev drupal/coder

Usage
-----

[](#usage)

> vendor/bin/robo test:phpcs

### robo.yml

[](#roboyml)

```
phpcs:
  # Defaults to 'phpcs'.
  path: vendor/bin/phpcs
  files:
    src:
      standard: vendor/drupal/coder/coder_sniffer/Drupal
    tests:
      standard: vendor/drupal/coder/coder_sniffer/Drupal
    modules:
      path: web/modules/custom
      standard: vendor/drupal/coder/coder_sniffer/Drupal
      extensions: 'php,module,inc,install,test,profile,theme,css,info,txt,md'
      ignore: 'node_modules,bower_components,vendor'
    themes:
      path: web/themes/custom
      standard: vendor/drupal/coder/coder_sniffer/Drupal
      extensions: 'php,module,inc,install,test,profile,theme,css,info,txt,md'
      ignore: 'node_modules,bower_components,vendor'
    modules_practice:
      path: web/modules/custom
      standard: vendor/drupal/coder/coder_sniffer/DrupalPractice
      extensions: 'php,module,inc,install,test,profile,theme,css,info,txt,md'
      ignore: 'node_modules,bower_components,vendor'
    themes_practice:
      path: web/themes/custom
      standard: vendor/drupal/coder/coder_sniffer/DrupalPractice
      extensions: 'php,module,inc,install,test,profile,theme,css,info,txt,md'
      ignore: 'node_modules,bower_components,vendor'
```

### Robofile.php:

[](#robofilephp)

```
