2017 © Pedro Peláez
 

library sugared-php_codesniffer

PHP_CodeSniffer sweetened with ease

image

schnittstabil/sugared-php_codesniffer

PHP_CodeSniffer sweetened with ease

  • Monday, September 26, 2016
  • by schnittstabil
  • Repository
  • 1 Watchers
  • 1 Stars
  • 246 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

SugaredRim\PHP_CodeSniffer

Build Status Coverage Status Scrutinizer Code Quality Code Climate, (*1)

SensioLabsInsight, (*2)

PHP_CodeSniffer sweetened with ease :cherries:, (*3)

SugaredRim\PHP_CodeSniffer takes an opinionated view of code style checking with PHP_CodeSniffer, it is preconfigured to get you up and running as quickly as possible., (*4)

Install

$ composer require --dev sugared-rim/php_codesniffer

Usage

Instead of running phpcs with all its options, just run sugared-rim-phpcs - that's it:, (*5)

{
    ...
    "require-dev": {
        "sugared-rim/php_codesniffer": ...
    },
    "scripts": {
        "lint": "sugared-rim-phpcs"
    }
}

Configuration

You may overwrite some options by putting it in your composer.json., (*6)

See schnittstabil/finder-by-config for details of the files options., (*7)

Some of the default settings:, (*8)

{
    ...
    "scripts": {
        "lint": "sugared-rim-phpcs"
    },
    "extra": {
        "sugared-rim/php_codesniffer": {
            "default_standard": ["PSR1", "PSR2"],
            "files": {
                "in": ["."],
                "name": ["*.php"],
                "files": true,
                "exclude": [
                    "build",
                    "bower_components",
                    "node_modules",
                    "vendor"
                ],
                "ignoreDotFiles": true,
                "ignoreVCS": true
            }
        }
    }
}

All extra.sugared-rim/php_codesniffer options are passed through PHP_CodeSniffer::setConfigData, except:, (*9)

  • files: Array of files and/or directories to check.

License

MIT © Michael Mayer, (*10)

The Versions

26/09 2016

dev-master

9999999-dev

PHP_CodeSniffer sweetened with ease

  Sources   Download

MIT

The Requires

 

The Development Requires

phpcs php_codesniffer standards sugared preconfigured

26/09 2016

1.0.0

1.0.0.0

PHP_CodeSniffer sweetened with ease

  Sources   Download

MIT

The Requires

 

The Development Requires

phpcs php_codesniffer standards sugared preconfigured

15/04 2016

0.2.0

0.2.0.0

PHP_CodeSniffer sweetened with ease

  Sources   Download

MIT

The Requires

 

The Development Requires

phpcs php_codesniffer standards sugared preconfigured