Skip to content

chore: add @see test annotations to satisfy rector#18

Merged
erikfrerejean merged 1 commit into
6from
chore/add-see-test-annotations
Jun 22, 2026
Merged

chore: add @see test annotations to satisfy rector#18
erikfrerejean merged 1 commit into
6from
chore/add-see-test-annotations

Conversation

@erikfrerejean

Copy link
Copy Markdown
Member

What

Adds @see class-level annotations to Menu and MenuItem pointing at their respective test classes:

  • Menu@see \WeDevelop\Menustructure\Tests\Model\MenuTest
  • MenuItem@see \WeDevelop\Menustructure\Tests\Model\MenuItemTest

Why

make rector-dry was failing on 6 via AddSeeTestAnnotationRector (part of the configured rector preset), which requires model classes that have a corresponding test to carry an @see annotation linking to it. This is the canonical output of make rector — it's a pre-existing failure unrelated to any feature change, surfaced by a rector version drift since the last green run.

This restores a green static-analysis CI job.

Verification

  • make rector-dryRector is done! (no changes)
  • make analyse (silverstan, level max) → No errors

AddSeeTestAnnotationRector (part of the configured rector set) requires
model classes with corresponding tests to carry an @see annotation
pointing at their test class. This restores a green `make rector-dry`.

Verified with `make rector-dry` (Rector is done!) and `make analyse`
(no errors).
@erikfrerejean erikfrerejean merged commit 7ba6e5d into 6 Jun 22, 2026
3 of 4 checks passed
@erikfrerejean erikfrerejean deleted the chore/add-see-test-annotations branch June 22, 2026 13:48
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.

1 participant