Skip to content

feat: custom quality checks - #1703

Merged
jschoedl merged 10 commits into
mainfrom
feat/custom-quality-checks
Oct 6, 2026
Merged

jschoedl merged 10 commits into
mainfrom
feat/custom-quality-checks

Conversation

@jschoedl

@jschoedl jschoedl commented Oct 6, 2026

Copy link
Copy Markdown
Collaborator

Adds custom quality checks: parameterised SQL checks defined once in a folder (--custom-quality-checks) and used by name from a contract's type: custom, engine: datacontract-cli quality rules, run by datacontract test.

… the query, so a contract cannot break out of a quoted string
…ments before they reach SQL, and say how to fix each error
# Conflicts:
#	CHANGELOG.md
#	datacontract/engines/checks/create_checks.py
…round names on every server, and explain errors more clearly

- An argument declared `type: number` becomes a number literal, also when its value comes from a variable
- Backticks around a name quote it for any server; a value in backticks is an error
- An ansi query that does not parse reports the problem and line, without terminal codes or stand-in text
- An unknown check lists all checks up to seven, otherwise suggests similar names
- Rows that fail before the arguments are checked are named in call form, like the others
@jschoedl
jschoedl merged commit 00b1bba into main Oct 6, 2026
19 checks passed
@jschoedl
jschoedl deleted the feat/custom-quality-checks branch October 6, 2026 19:05
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