Repository navigation
check: missing call arguments, XPath literal types, aggregate expressions (CE0115, CE0161, CE0117) - #2700
Merged
Conversation
…ions (CE0115, CE0161, CE0117) Check-gap sweep 2, f34/f37/f48: each passed check -p and exec, and MxBuild 11.16.1 rejected the project. Each closes the step a sibling check stopped short of: - A flow call that leaves out a parameter (CE0115), beside the check for an argument that names no parameter. - A retrieve constraint comparing an attribute with a literal of another type (CE0161), using the access rule's literal table, now shared as xpathLiteralTypeProblem. - The expression form of an aggregate over a non-number, or a bare attribute name (CE0117), beside the CE0016 check for the by-attribute form. All 23 measured cases agree with mx. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011oK82tETa46YQmMS58pQjL
An argument naming no parameter is usually the missing one misspelled, so the missing-argument report (CE0115) is left to the unknown-argument one (CE1613) when both would fire. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011oK82tETa46YQmMS58pQjL
ako
marked this pull request as ready for review
November 30, 2026 21:41
…xpressions # Conflicts: # CHANGELOG.md # mdl-examples/check-gap/README.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #1258. This is batch B of the gaps from the second check-gap parity sweep (#2698): f34, f37 and f48. Each passed
check -pandexec, and MxBuild 11.16.1 rejected the project. Each fix completes an existing check that stopped one step short.f34: a call that leaves out a parameter (CE0115)
missingFlowCallArgsnow reports a microflow or nanoflow call that leaves out any parameter. Measured: one left out, all left out, and a nanoflow call are each CE0115.f37: a retrieve constraint comparing an attribute with a literal of another type (CE0161)
literalTypeProblem, measured on 11.14.0) existed only for access rules. It is now shared asxpathLiteralTypeProblemand applied to database retrieves.[Qty = 'abc'],[Qty = '5'],[Qty > 'abc'],[Name = 5],[Price = 'abc'],[B = 1],[C = 'Green'](no such value).[B = 'true'],[D = '2020-01-01'],[C = 'Red'].scriptContextnow carries the script's enumeration values (enumerationValues), for the enumeration case.f48: an aggregate's expression form over something that is not a number (CE0117)
sum $L by Attr.aggregateExpressionTypenow judgessum/average/minimum/maximum $L of <expr>.of $currentObject/Name(String),maximum … of $currentObject/D(DateTime),of 'abc', and a bare attribute name,of Qty, even for an Integer attribute.of $currentObject/Qtyandof $currentObject/Price * 2.Evidence
check -pagrees withmxon all of them.check_gap_calls_expressions_test.go: 14 reported cases and 10 controls. Stubbing each fix fails exactly its own cases (3, 7 and 4).check -p.mdl-examples/bug-tests/check-gap-calls-expressions.mdlholds the accepted forms and is clean undermx check. These checks need a project, so there's no.fail.mdl.make ci-localpasses.Generated by Claude Code