This is based on doctrine/coding-standard and heavily inspired by ninjify/coding-standard
composer require --dev fiolasoft/coding-standard
Create ruleset.xml
in root of your project.
NOTE: It is recommanded to use this with FiolaSoft/qa
<?xml version="1.0"?>
<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>