2017 © Pedro Peláez
 

library phpcs-novastandards

Novactive PHP_CodeSniffer coding standards for eZ Publish, Symfony2, ...

image

novactive/phpcs-novastandards

Novactive PHP_CodeSniffer coding standards for eZ Publish, Symfony2, ...

  • Friday, October 16, 2015
  • by NovaDT
  • Repository
  • 4 Watchers
  • 2 Stars
  • 769 Installations
  • PHP
  • 7 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 4 Versions
  • 16 % Grown

The README.md

Novactive PHP_CodeSniffer custom standards

About

This package provides some PHP_CodeSniffer compliant coding standards, used at Novactive., (*1)

Build Status, (*2)

Requirements

Note: the eZ Publish standard, from eZ Systems engineering team, had to be integrated to our package, as we are relying on it for our extended eZ Publish standard (there is no smart way to extend a custom standard for now), (*3)

Installation

With Composer

Add the dependency to your composer.json file :, (*4)

"require-dev": {
    ...,
    "novactive/phpcs-novastandards": "~1.2"
}

Install it :, (*5)

composer update novactive/phpcs-novastandards

Usage

CLI

From the sources ROOT directory of your project :, (*6)

./vendor/bin/phpcs --standard=vendor/novactive/phpcs-novastandards/src/NovaPSR2" src

PHPStorm

Configure CodeSniffer

Open the PHPStorm Preferences / settings panel and go to the Code Sniffer section. You should define the value for parameter "PHP Code Sniffer (phpcs) path" for instance :, (*7)

  • "wwwroot/bin/phpcs" for eZ Publish
  • "wwwroot/vendor/bin/phpcs" for other techno using composer
  • "~/.composer/vendor/bin/phpcs" if you installed CodeSniffer globally on your system using the command:, (*8)

    php composer.phar global require squizlabs/php_codesniffer, (*9)

PHP Code Sniffer path configuration window, (*10)

Configure which standard to use

Open the PHPStorm Preferences / settings panel and go to the Inspections section. You should enable "PHP > PHP Code Sniffer validation" and fill in the path to required standard, for instance :, (*11)

  • "vendor/novactive/phpcs-novastandards/src/NovaEZ" for eZ Publish
  • "vendor/novactive/phpcs-novastandards/src/NovaPSR2" for Symfony 2 and PSR2 compliant apps

PHP Code Sniffer standard configuration window, (*12)

Bug and issues

The standards are still under active development. Expect bugs and "false negatives" when checking code. Feel free to report them on the issues section., (*13)

Credits

Thanks to :, (*14)

The Versions

16/10 2015

dev-develop

dev-develop https://github.com/Novactive/phpcs-novastandards

Novactive PHP_CodeSniffer coding standards for eZ Publish, Symfony2, ...

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

by Novactive Team

codesniffer standards checkstyle ez publish psr2

16/10 2015

dev-master

9999999-dev https://github.com/Novactive/phpcs-novastandards

Novactive PHP_CodeSniffer coding standards for eZ Publish, Symfony2, ...

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

by Novactive Team

codesniffer standards checkstyle ez publish psr2

27/02 2015

1.3.1

1.3.1.0 https://github.com/Novactive/phpcs-novastandards

Novactive PHP_CodeSniffer coding standards for eZ Publish, Symfony2, ...

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

by Novactive Team

codesniffer standards checkstyle ez publish psr2

20/02 2015

1.3.0

1.3.0.0 https://github.com/Novactive/phpcs-novastandards

Novactive PHP_CodeSniffer coding standards for eZ Publish, Symfony2, ...

  Sources   Download

BSD-2.0

The Requires

 

The Development Requires

by Novactive Team

codesniffer standards checkstyle ez publish psr2