This commit is contained in:
2022-01-13 18:41:03 +01:00
commit 0fb9f639da
159 changed files with 13183 additions and 0 deletions

28
ruleset.xml Normal file
View File

@@ -0,0 +1,28 @@
<?xml version="1.0"?>
<ruleset name="Contributte">
<!-- Extending rulesets -->
<rule ref="./vendor/ninjify/coding-standard/ruleset.xml">
<exclude name="Squiz.Commenting.FunctionComment.InvalidTypeHint"/>
<exclude name="SlevomatCodingStandard.ControlStructures.RequireTernaryOperator.TernaryOperatorNotUsed"/>
</rule>
<!-- Specific rules -->
<rule ref="SlevomatCodingStandard.Files.TypeNameMatchesFileName">
<properties>
<property name="rootNamespaces" type="array">
<element key="app/model" value="App\Model"/>
<element key="app/domain" value="App\Domain"/>
<element key="app/ui" value="App\UI"/>
<element key="app/modules" value="App\Modules"/>
<element key="tests/toolkit" value="Tests\Toolkit"/>
<element key="tests/cases" value="Tests\Cases"/>
</property>
</properties>
</rule>
<!-- Exclude folders -->
<exclude-pattern>/app/bootstrap.php</exclude-pattern>
<exclude-pattern>/tests/tmp</exclude-pattern>
<exclude-pattern>*.phtml</exclude-pattern>
</ruleset>