nepada/coding-standard

Nepada coding standard.

Installs: 266 832

Dependents: 24

Suggesters: 0

Security: 0

Stars: 2

Watchers: 3

Forks: 0

Open Issues: 0

Type:phpcodesniffer-standard

v7.14.1 2024-10-27 13:11 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