Repository navigation
Conversation
…overy is root-relative and shared, scope is stated (#20493)
Contributor
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 51 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Contributor
… files_failed tested on the cached path (#20493)
This was referenced Nov 7, 2026
Owner
Author
|
Code review (code-reviewer pass) at 82f3c69 — APPROVE
Nits, not blocking:
|
This was referenced Nov 7, 2026
Closed
Owner
Author
1 of 5 tasks
timothybrush
pushed a commit
to timothybrush/AutoBot-AI
that referenced
this pull request
Nov 7, 2026
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.
Thinking Path
The cards and the list disagreed and the scan looked shallow. Discovery was already recursive; the divergences were the exclusion rule and counts stored apart from the list.
What Changed
Refs #20493. Code-smell results and their counts came from different sets, and the two discovery paths excluded files by different rules.
AnalysisReport.to_dictreturned storedsummary/severity_distributionwhile the endpoint replacedanti_patternsafter a severity filter, so the cards and the list described different sets. They are now counted from the returned list.is_excludedpredicate incode_intelligence/python_files.py.SKIP_DIRS, so the cached path is used only whenexclude_dirscoversSKIP_DIRS(cache_covers_exclusions); otherwise discovery walks.exclude_dirsstays authoritative and both paths return the same set. An out-of-root path is treated as excluded, asis_skipped_pathdoes.cap_appliedis a report field set by the discovery code (False), and the unreachablereport.summaryfallback in the cache writer is removed.files_examined,files_failedandcap_applied(no cap applies to discovery).Not delivered, so the issue stays open: AC3 (one defect counted once across
long_functionandcode_smell_long_method), AC4 (test files separated), AC5 (triage), and the status of a killed indexing run (stored partial findings shown as a result), which is a separate defect.Single-issue rationale: one defect (report counts and discovery scope in the code-smell analyzer) fixed in one place.
Verification
anti_pattern_scope_20493_test.py: nested fixture control, nested files scanned, cached and uncached discovery agree, root below an excluded name, summary equals list, scope stated,files_failed == 1on the cached path, customexclude_dirsagreeing across both paths, out-of-root exclusion.Model Used
Claude Sonnet 5.5