Skip to content

fix(#954): ignore auto-named objects in wrong-test-order#1033

Open
ext11n7 wants to merge 4 commits into
objectionary:masterfrom
ext11n7:954-wrong-test-order
Open

fix(#954): ignore auto-named objects in wrong-test-order#1033
ext11n7 wants to merge 4 commits into
objectionary:masterfrom
ext11n7:954-wrong-test-order

Conversation

@ext11n7

@ext11n7 ext11n7 commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

This closes #954.

The wrong-test-order lint currently inspects only the immediately following sibling after a test object. After �ars-float-up, anonymous helper objects can be appended to the end of the parent object with auto-generated names like �??18-4, which makes correctly placed tests look as if they are followed by a non-test object.

This patch skips those auto-named siblings when searching for the first meaningful object after a test. A regression test was added with a minimal XMIR document where +tests-filtered-with-bools is followed only by �??18-4; master reports a false positive there, while the patch keeps the defect list empty.

@ext11n7

ext11n7 commented Jul 12, 2026

Copy link
Copy Markdown
Contributor Author

@yegor256

@ext11n7 ext11n7 force-pushed the 954-wrong-test-order branch from 0dae66e to 40beaa3 Compare July 12, 2026 14:45
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.

wrong-test-order false positive when anonymous >> objects from the main body are floated past tests by vars-float-up

1 participant