Files
codebase-memory-mcp/tests
Martin Vogel 24871eed7b test(lint-mem): an unwhitelisted suffixed finding must fail the gate
The test only covered a whitelisted finding. The defect in #2442 is
the other direction: on main clang-tidy reported findings that carry
the ,-warnings-as-errors suffix, the old FINDING_RE matched none of
them, and the gate reported clean. Pin that direction too: a second
fixture function with no whitelist entry, a suffixed finding inside
it, and the gate must exit 1 and report the finding under its plain
check name ([clang-analyzer-core.NullDereference], the whitelist key
form) as an entry missing for unlisted().

With the suffix group of FINDING_RE reverted, this case exits 0 with
"memory gate clean" and the test fails, naming all three assertions.
A parser that accepts the line but keeps the suffix inside the check
name fails it as well. The negative assertion is a maintainer
decision (R1).

Refs #2442

Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
2026-11-02 01:11:51 +01:00
..