Skip to content
This repository has been archived by the owner on Dec 15, 2024. It is now read-only.

JamesRezo/spip-coding-standards

Repository files navigation

SPIP Standard Coding Rules for PHP_CodeSniffer

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

About

SPIP Coding Standards

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages