Skip to content

MyOnlineStore Coding Standard ๐Ÿ‘ฎ๐Ÿผโ€โ™‚๏ธ

License

Notifications You must be signed in to change notification settings

MyOnlineStore/coding-standard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

22 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

MyOnlineStore Coding Standard

Install

Install the package with composer:

composer require myonlinestore/coding-standard --dev

Configure

Add the ruleset to your phpcs.xml.dist file:

<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd"
>
    <arg name="basepath" value="."/>
    <arg name="extensions" value="php"/>
    <arg name="parallel" value="80"/>
    <arg name="cache" value=".phpcs-cache"/>
    <arg name="colors"/>
    <arg value="nps"/>

    <file>src</file>
    <file>tests</file>

    <rule ref="MyOnlineStore"/>
</ruleset>

Unused Doctrine fields

If your code has entities with fields without accessors, you could disable the unused elements inspection:

<rule ref="MyOnlineStore">
    <exclude name="SlevomatCodingStandard.Classes.UnusedPrivateElements"/>
</rule>

About

MyOnlineStore Coding Standard ๐Ÿ‘ฎ๐Ÿผโ€โ™‚๏ธ

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •