Skip to content

fix(ruleset): resolve contradictory and duplicate rule declarations - #69

Merged
pekral merged 1 commit into
masterfrom
fix/66-ruleset-declarations
Nov 12, 2026
Merged

pekral merged 1 commit into
masterfrom
fix/66-ruleset-declarations

Conversation

@pekral

@pekral pekral commented Nov 12, 2026

Copy link
Copy Markdown
Owner

Summary

  • DisallowMultiConstantDefinition and DisallowMultiPropertyDefinition stay enabled; their top-level <exclude> entries, which marked them as intentionally unused at the same time, are removed. check-unused-sniffs reads both <rule ref> and <exclude>, so both sniffs remain accounted for.
  • ForbiddenPublicProperty is declared once, carrying all four path exclusions from the two former declarations (app/Livewire/**, app/Models/**, */Livewire/**/*.php, */Models/**/*.php), so behaviour is unchanged.
  • CHANGELOG entry under Unreleased.

Closes #66

Verification

ruleset.xml parses as XML. Tests, PHPCS, PHPStan and the unused-sniffs check run in CI on PHP 8.4 and 8.5.

@pekral
pekral merged commit 166dac9 into master Nov 12, 2026
2 checks passed
@pekral
pekral deleted the fix/66-ruleset-declarations branch November 12, 2026 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Resolve contradictory and duplicate rule declarations in ruleset.xml

1 participant