Skip to content
vetkitChecksChangelogDocumentation

vetkit.py.quality.assert-tuple

assert (condition, message) asserts a non-empty tuple, which is always true, so the assertion never fails.

Last updated:

Suite: Code quality

python

assert (condition, message) asserts a non-empty tuple, which is always true, so the assertion never fails.

Category: QUALITY · Engine rule severity: WARNING

How to fix it

Remove the parentheses — assert condition, message.

Rule pattern example

The engine’s matching pattern, not a confirmed exploit. Metavariables and ellipses describe matching syntax.

assert ($A, $B)

References

Source: packages/engine/rules/quality/python.yml.

Generated from shipped rule definitions at build time. Matching is a review signal, not proof of exploitability. “generic” denotes text matching, not complete language or framework coverage. Runtime configuration and available tools affect whether a rule runs.