Skip to content

Commit

Permalink
Deactivate PHPCompatibility.Classes.NewClasses for throwing false neg…
Browse files Browse the repository at this point in the history
…atives (#27)
  • Loading branch information
rdss-sknott authored Mar 25, 2024
1 parent 98496e5 commit 7566f68
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion config/phpcs/ZooRoyal/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
<exclude name="PSR1.Files.SideEffects.FoundWithSymbols" />
</rule>

<rule ref="PHPCompatibility"/>
<rule ref="PHPCompatibility">
<!-- Sniff generates false positives if classname is used in another namespace -->
<exclude name="PHPCompatibility.Classes.NewClasses.attributeFound"/>
</rule>

<!-- Custom Rule-->
<rule ref="../../../src/main/php/Sniffs/PHPCodeSniffer/Standards/ZooRoyal"/>
Expand Down

0 comments on commit 7566f68

Please sign in to comment.