Skip to content

Fix range of 'key ordering' error#1177

Merged
datho7561 merged 2 commits intoredhat-developer:mainfrom
datho7561:keyordering-range
Feb 10, 2026
Merged

Fix range of 'key ordering' error#1177
datho7561 merged 2 commits intoredhat-developer:mainfrom
datho7561:keyordering-range

Conversation

@datho7561
Copy link
Contributor

What does this PR do?

Instead of reporting the range of the key and value, just report the range of the key. This helps to reduce visual clutter in the IDE due to the errors.

What issues does this PR fix or reference?

Fixes #1172

Is it tested? How?

Existing and new unit tests

Instead of reporting the range of the key and value, just report the
range of the key.
This helps to reduce visual clutter in the IDE due to the errors.

Fixes redhat-developer#1172

Signed-off-by: David Thompson <davthomp@redhat.com>
@coveralls
Copy link

coveralls commented Feb 10, 2026

Coverage Status

coverage: 84.671% (+0.04%) from 84.633%
when pulling 19d9472 on datho7561:keyordering-range
into 9543805 on redhat-developer:main.

Signed-off-by: Morgan Chang <shin19991207@gmail.com>
Copy link
Member

@shin19991207 shin19991207 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, and the fixes make the highlighted error clearer. Thanks, David.

I changed the loop to stop after the first match so it only highlights the first out of order element. Let me know if that makes sense.

@datho7561 datho7561 marked this pull request as ready for review February 10, 2026 21:30
@datho7561
Copy link
Contributor Author

Yes, that makes sense to me. Thanks for the review, Morgan!

@datho7561 datho7561 merged commit 2aca934 into redhat-developer:main Feb 10, 2026
4 checks passed
@datho7561 datho7561 deleted the keyordering-range branch February 10, 2026 21:33
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.

Weird range on key ordering errors

3 participants