Skip to content

Commit

Permalink
Merge pull request #19 from stellarwp/fix/exclude-snapshots
Browse files Browse the repository at this point in the history
Add an exclude for snapshot folders to prevent auto-fixing them.
  • Loading branch information
Camwyn authored Jan 19, 2024
2 parents 9343d73 + 12aa281 commit 8da2e49
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions StellarWP/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,12 @@
<rule ref="SlevomatCodingStandard.PHP.UselessSemicolon"/>
<rule ref="SlevomatCodingStandard.Variables.UselessVariable"/>

<!-- Don't check test-generated files. -->
<exclude-pattern>*/tests/_support/_generated/*</exclude-pattern>

<!-- Don't check snapshots - "fixing" them breaks them. -->
<exclude-pattern>*/tests/**/_snapshots/*</exclude-pattern>

<!-- Don't check vendor files whose standards may be different. -->
<exclude-pattern>*/vendor/*</exclude-pattern>
</ruleset>

0 comments on commit 8da2e49

Please sign in to comment.