Skip to content

Latest commit

 

History

History
45 lines (38 loc) · 979 Bytes

README.md

File metadata and controls

45 lines (38 loc) · 979 Bytes

Pasharmay code standard

This is sniffs collection for PHP_CodeSniffer

  • Pashamray.Functions.DisallowManyArguments

Install

composer req --dev pashamray/code-standard

Usage

in console:

php vendor/bin/phpcs --standard=Pashamray src

or add rules to your phpcs.xml file

all rules set

<?xml version="1.0" encoding="utf-8"?>
<ruleset name="MyRulesSet">
    <description>The MyRulesSet coding standard.</description>
    ...
    <rule ref="Pashamray"/>
    ...
</ruleset>

or concrete rule with properties

<?xml version="1.0" encoding="utf-8"?>
<ruleset name="MyRulesSet">
    <description>The MyRulesSet coding standard.</description>
    ...
    <rule ref="Pashamray.Functions.DisallowManyArguments">
        <properties>
            <!-- default value=3 -->
            <property name="maxCountArguments" value="6"/>
        </properties>
    </rule>
    ...
</ruleset>