GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - pashamray/coding-standard: Coding standard rules and sniffs for PHP Code Sniffer

BranchesTags
Open more actions menu

Latest commit

 

History

1 Commit
1 Commit

Folders and files

NameName
Last commit message
Last commit date
src/Standards/Pashamray
src/Standards/Pashamray
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
composer.json
composer.json
 
 
phpcs.xml.dist
phpcs.xml.dist
 
 

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

code-qualitycode-sniffercoding-standardphp

Resources

Readme
MIT license
Activity

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.