Skip to content

PHP Coding Sniffer (phpcs) rules for Piwigo.

Notifications You must be signed in to change notification settings

samwilson/piwigo-coding-standards

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Piwigo Coding Standards

This is a PHP Code Sniffer (phpcs) ruleset for enforcing the coding standards of Piwigo.

Installation

composer require --dev samwilson/piwigo-coding-standards

Usage

Create a .phpcs.xml file such as the following:

<?xml version="1.0"?>
<ruleset>
    <rule ref="vendor/samwilson/piwigo-coding-standards/Piwigo/ruleset.xml" />
    <file>.</file>
    <exclude-pattern>./vendor</exclude-pattern>
</ruleset>

Then run:

./vendor/bin/phpcs

About

PHP Coding Sniffer (phpcs) rules for Piwigo.

Topics

Resources

Stars

Watchers

Forks

Languages