Skip to content

Commit

Permalink
Codesniffer: modernize
Browse files Browse the repository at this point in the history
  • Loading branch information
f3l1x committed Jul 17, 2023
1 parent 8817890 commit 529eb52
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions ruleset.xml
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="Contributte">
<!-- Contributte Coding Standard -->
<rule ref="./vendor/ninjify/coding-standard/contributte.xml">
<exclude name="SlevomatCodingStandard.Operators.DisallowIncrementAndDecrementOperators.DisallowedPostDecrementOperator"/>
</rule>
<?xml version="1.0"?>
<ruleset>
<rule ref="./vendor/contributte/qa/ruleset.xml">
<exclude name="SlevomatCodingStandard.PHP.DisallowReference.DisallowedAssigningByReference"/>
<exclude name="SlevomatCodingStandard.PHP.DisallowReference.DisallowedReturningReference"/>
</rule>

<!-- Specific rules -->
<rule ref="SlevomatCodingStandard.Files.TypeNameMatchesFileName">
<properties>
<property name="rootNamespaces" type="array" value="
src=>Contributte\FormMultiplier
"/>
</properties>
</rule>
<!-- Package specific rules -->
<rule ref="SlevomatCodingStandard.Files.TypeNameMatchesFileName">
<properties>
<property name="rootNamespaces" type="array">
<element key="src" value="Contributte\FormMultiplier"/>
<element key="tests" value="Tests"/>
</property>
<property name="extensions" type="array" value="php,phpt"/>
</properties>
</rule>

<!-- Exclude folders -->
<exclude-pattern>/tests/</exclude-pattern>
<!-- Exclude folders -->
<exclude-pattern>/tests</exclude-pattern>
</ruleset>

0 comments on commit 529eb52

Please sign in to comment.