chameleon 4.4.32
Fixed
-
The pre-write
reuse-before-createnudge no longer fires on test functions. A
test is authored to exercise one specific thing and is never an importable
reuse target, yet two test functions share thetestprefix plus a domain word
or two, so the semantic name-token pass paired unrelated tests
(test_validate_email_format"looks like the existing
test_validate_email_shape"). Every observed false positive of this nudge over
a long test campaign was test-on-test.The name-based passes (exact-name and semantic) now skip entirely when the
edited file is a test, and a test function is never offered as a candidate on a
production edit either. Production-to-production reuse detection — the real
signal — is unchanged, as is the body-identical class-method duplication pass
(a verbatim copied body is a genuine signal regardless of file)._is_test_file
already recognizes the test conventions of all three languages, so the gate is
language-agnostic.