Skip to content

Coding standard rules and sniffs for PHP Code Sniffer

License

Notifications You must be signed in to change notification settings

pashamray/coding-standard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>

About

Coding standard rules and sniffs for PHP Code Sniffer

Topics

Resources

License

Stars

Watchers

Forks

Languages