Skip to content

rmx351041/coding-standard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

coding-standard

composer require --dev rmx351/coding-standard

phpcs.xml

<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd">
    <description>Rmx351 coding standard.</description>

    <arg name="colors" />
    <arg name="extensions" value="php" />
    <arg name="parallel" value="80" />

    <!-- Show progress -->
    <arg value="p" />
    <file>application/crm/model/Contract.php</file>

    <!-- Include all rules from the Rmx351 Coding Standard -->
    <rule ref="vendor/rmx351/coding-standard" />
</ruleset>

composer.json

"scripts": {
   "cs-check": "phpcs --standard=./phpcs.xml",
   "cs-fix": "phpcbf --standard=./phpcs.xml"
}

About

A phpcodesniffer-standard

Resources

Stars

Watchers

Forks

Packages

No packages published