spip/coding-standards

SPIP Coding Standards

Installs: 81

Dependents: 2

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:phpcodesniffer-standard

1.2.1 2021-08-26 06:16 UTC

This package is auto-updated.

Last update: 2021-11-26 06:46:04 UTC


README

This is a set of rules for PHP CodeSniffer that checks for SPIP Coding Standard and PHP Compatibility for SPIP v4.0.

Installation

composer require --dev dealerdirect/phpcodesniffer-composer-installer spip/coding-standards

Usage

vendor/bin/phpcs --standard=SCS1 /path/to/file

or create a phpcs.xml file containing this:

<?xml version="1.0"?>
<ruleset>
    <file>/path/to/file</file>
    <rule ref="SCS1" />
</ruleset>

and run :

vendor/bin/phpcs