spip/coding-standards

This package is abandoned and no longer maintained. The author suggests using the spip-league/easy-coding-standard package instead.

SPIP Coding Standards

Installs: 9 768

Dependents: 2

Suggesters: 0

Security: 0

Stars: 1

Watchers: 3

Forks: 1

Open Issues: 1

Type:phpcodesniffer-standard

1.3.4 2024-09-29 16:45 UTC

This package is auto-updated.

Last update: 2024-12-15 10:48:59 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