Skip to content

nepada/coding-standard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nepada - Coding Standard

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