Repository navigation
📦🔥:report argument and key mismatches truly - #92
Conversation
validateArgCount checked argCount under the name maxCount, so a
non-integer argCount was reported as a bad maxCount.
objectsEqualShallow compared values only, so { a: undefined } and {}
were equal: reading the missing key gives undefined too. It now
compares the enumerable keys of both sides as well.
Signed-off-by: Derek Lewis <DerekNonGeneric@inf.is>
Assisted-by: Claude-Code:claude-opus-5
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Essentials Run ID: 📒 Files selected for processing (5)
Included review availability: This review used your included allowance. 2 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 4 reviews per hour. 📝 WalkthroughWalkthroughThe PR corrects shallow object equality when a key is missing but has an ChangesUtility correctness fixes
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to The changes address the described utility edge cases and include regression tests; no actionable merge risk is evident from the supplied context. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Requested by DerekNonGeneric
Before:
validateArgCount('f', 1, 2, 1.5)blamedmaxCountfor the non-integer argument count.objectsEqualShallow({ a: undefined }, {})returnedtrue.After: the error names
argCount. Two objects count as shallowly equal only when they have the same enumerable keys as well as the same values.How: one wrong string literal is corrected, and
objectsEqualShallownow compares the key sets alongside the values. Each fix comes with a test that fails on main.Summary by CodeRabbit
undefinedvalue.