rmx351/coding-standard

Rmx351 Coding Standard

Maintainers

Package info

github.com/rmx351041/coding-standard

pkg:composer/rmx351/coding-standard

Statistics

Installs: 8

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

v1.0.1 2021-05-12 07:06 UTC

This package is auto-updated.

Last update: 2026-03-12 19:39:11 UTC


README

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"
}