2017 © Pedro Peláez
 

phpcodesniffer-standard coding-standard

My ruleset for PHP CodeSniffer

image

nicwortel/coding-standard

My ruleset for PHP CodeSniffer

  • Thursday, April 19, 2018
  • by nicwortel
  • Repository
  • 1 Watchers
  • 0 Stars
  • 132 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 13 % Grown

The README.md

Coding standard

Build status License Packagist version PHP version from Packagist, (*1)

This is my ruleset for PHP CodeSniffer. It's based on the PSR-12 Extended Coding Style, enhanced with sniffs from the Slevomat Coding Standard., (*2)

Installation

composer require --dev squizlabs/php_codesniffer nicwortel/coding-standard

Usage

Create a phpcs.xml file:, (*3)


<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd">
    <arg name="basepath" value="."/>
    <arg name="cache" value=".phpcs-cache"/>
    <arg name="colors"/>
    <arg name="extensions" value="php"/>

    <!-- Show progress and sniff names -->
    <arg value="ps" />

    <file>src/</file>

    <rule ref="NicWortel"/>
</ruleset>

Then you can run vendor/bin/phpcs., (*4)

The Versions

19/04 2018

dev-master

9999999-dev

My ruleset for PHP CodeSniffer

  Sources   Download

MIT

The Requires

 

The Development Requires

12/03 2018

v1.1.0

1.1.0.0

My ruleset for PHP CodeSniffer

  Sources   Download

MIT

The Requires

 

The Development Requires

20/02 2018

v1.0.1

1.0.1.0

My ruleset for PHP CodeSniffer

  Sources   Download

MIT

The Requires

 

The Development Requires