nepada/coding-standard

Nepada coding standard.

Installs: 8 829

Dependents: 12

Suggesters: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

Type:phpcodesniffer-standard

v6.1.0 2019-02-15 20:25 UTC

README

Build Status Downloads this Month Latest stable

Based on Consistence - Coding Standard and Slevomat - Coding Standard.

Installation

Via Composer:

$ composer require nepada/coding-standard

Usage

You can either use the ruleset as-is, or customize it to suit your needs:

<?xml version="1.0"?>
<ruleset>
    <config name="installed_paths" value="../../nepada/coding-standard/src"/><!-- relative path from PHPCS source location -->

    <arg value="ps"/><!-- show progress of the run, show sniff names -->
    <arg name="cache" value=".phpcs-cache"/>

    <file>src</file>
    <file>tests</file>

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

To check your code base for violations, run PHP CodeSniffer from the command line:

vendor/bin/phpcs