feat: verify S188 @ufct bounty — NO verdict, duplicate of S172 (#521)#332
Open
xliry wants to merge 4 commits intopeteromallet:mainfrom
Open
feat: verify S188 @ufct bounty — NO verdict, duplicate of S172 (#521)#332xliry wants to merge 4 commits intopeteromallet:mainfrom
xliry wants to merge 4 commits intopeteromallet:mainfrom
Conversation
… (#451) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…eld confirmed (#456) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
Issue: #204
Submission: #204 (comment)
Author: @ufct
Problem (in our own words)
The submission claims
_DetectorNamesCacheCompatincli.pyis dead production code — a full dict-interface class (__contains__,__getitem__,__setitem__,pop) maintained solely so legacy tests can write to and read from a_DETECTOR_NAMES_CACHEglobal. Production caching uses@lru_cacheon_get_detector_names_cached()and never reads from_DETECTOR_NAMES_CACHE.Evidence
Verified at commit
6eb2065:cli.py:28-45—_DetectorNamesCacheCompatdefines 4 dict-like methods.cli.py:47—_DETECTOR_NAMES_CACHE = _DetectorNamesCacheCompat().cli.py:50-52— Real cache:@lru_cache(maxsize=1)on_get_detector_names_cached().cli.py:55-57—_get_detector_names()calls_get_detector_names_cached(), never reads_DETECTOR_NAMES_CACHE.cli.py:64— Only production usage:.pop("names", None)— clearing unused state during invalidation.tests/commands/test_cli.py:520,530— Only actual consumers: test writes and asserts on_DETECTOR_NAMES_CACHE.Finding is factually correct, but S172 (@allornothingai, 2026-03-05T16:13:28Z) reported the identical issue ~4 hours earlier.
Fix
No fix needed — verdict is NO (duplicate).
Verdict
Final verdict: NO — duplicate of S172
Scores
Summary
The finding is valid —
_DetectorNamesCacheCompatis genuinely dead production code never read in any production path, existing only so tests can poke internals. However, S172 (@allornothingai) identified the exact same class, same files, and same issue ~4 hours earlier. S179 (@willtester007-web) and S220 (@g5n-dev) also cover this. Verdict is NO due to duplicate.Why Desloppify Missed This
Verdict Files
Generated with Lota