library coding-standard
Strict coding standards for our PHP projects
fiolasoft/coding-standard
Strict coding standards for our PHP projects
- Wednesday, April 25, 2018
- by vojtamares
- Repository
- 0 Watchers
- 0 Stars
- 68 Installations
- 1 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 2 Versions
- 10 % Grown
Coding standard
This is based on doctrine/coding-standard and heavily inspired by ninjify/coding-standard, (*1)
, (*2)
Install
composer require --dev fiolasoft/coding-standard
Usage
Create ruleset.xml
in root of your project., (*3)
NOTE: It is recommanded to use this with FiolaSoft/qa, (*4)
<ruleset name="YourProject">
<!-- Extending rulesets -->
<rule ref="vendor/fiolasoft/coding-standard/ruleset.xml"/>
<!-- OR (not both, since ruleset.xml is included in ruleset-nette.xml) -->
<!-- FiolaSoft [Nette] -->
<!-- <rule ref="vendor/fiolasoft/coding-standard/ruleset-nette.xml"/> -->
<!-- My rules -->
<!-- Exclude folders -->
<exclude-pattern>/tests/tmp</exclude-pattern>
</ruleset>