Repository navigation
Conversation
…ntation for all analyzers (#21004)
|
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 18 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. |
Code review (code-reviewer pass) at 8f65271Verdict: CHANGES. The consolidation is sound and the three items I could verify as safe are listed below, but there is one behaviour regression (F1) and one symlink-handling regression (F2) to fix in this PR.
Checked and fine:
Issue ACs: AC1 ("one discovery function and one exclusion predicate") is only partly met, since |
… test exclusion, wider guard (#21004)
|
Review fixes pushed at 441853c.
CI: the failures on 8f65271 were cancellations by the one-PR-CI queue gate ("not admitted" / parked), not code failures. The jobs ran no steps and have no runner. Local checks: touched tests 279 passed plus the new guard tests, flake8 and the file-size check clean. |
Code review (code-reviewer pass) at 441853cDelta review of 8f65271..441853c. Verdict: APPROVE. F1 to F6 are all fixed in the code; the remaining items are low and non-blocking. I read the code and tests; I did not run them. Previous findings:
New-code checks on
Remaining non-blocking items:
The PR body's CI note (failures were queue-gate cancellations, no steps ran) is the coordinator's statement; I did not verify it on this head. Keep |
…en guard look-alikes (#21004)
|
Delta findings fixed at 053bc0a.
N3: Local checks: 98 tests passed (new guard test, bug_predictor, shared_caches, anti_pattern scope); flake8 clean. |
|
Code review (code-reviewer pass) at 053bc0a Verdict: APPROVE. I read the diff and the code; I did not run the tests. Scope: 20 changed files, 17 commits behind main (merge main before the train, no conflict check done). Author self-approval not counted.
Threads: no inline review threads exist. The only conversation is a rate-limited bot notice and the author's own earlier review comments, whose findings F1 to F6 and N1 to N3 are fixed in the code at this head. |
✅ SSOT Configuration Compliance: Passing🎉 No new hardcoded values of either class — Known backlog in |
Thinking Path
The analyzers each walked the tree and excluded directories by their own rules (15 bare walk sites, 11 exclusion definitions). #21002 landed the root-relative
is_excludedincode_intelligence/python_files.py. This PR makes that module the single home: onediscover_files()walk and oneANALYSIS_EXCLUDE_DIRSset (derived fromSKIP_DIRSplus the analysis-only extras the copies used to add individually), and migrates every analyzer to them.What Changed
python_files.py: addANALYSIS_EXCLUDE_DIRSanddiscover_files(root, patterns, exclude_dirs);collect_python_filesdelegates to it.discover_files: testing_pattern_analyzer, shared/analysis_base, redis_optimizer, llm_pattern_analyzer, bug_predictor (sync and async), merge_conflict_resolver, cross_language_patterns/detector, pattern_analysis (analyzer, complexity, regex), shared/file_cache, base_analyzer.EXCLUDE_DIRSx3,_SKIP_DIRSx3,_COCHANGE_SKIP_DIRS, per-class default lists in fingerprinting/testing_pattern/redis/llm/base_analyzer);DEFAULT_IGNORE_PATTERNSandDEFAULT_EXCLUDE_PATTERNSnow derive from the canonical set. File-name patterns (tests, bytecode, migrations) stay with their analyzers.archive/backup/third_partyare now skipped by every analyzer, not only some.code_intelligence/analyzer_discovery_one_home_21004_test.py(AST guard for barerglob/os.walkand local exclusion-set copies, planted-violation control, root-under-skipped-name regression).conftest.py: real-loadpython_filesbeforemerge_conflict_resolver(it now imports it). Size ceilings lowered inscripts/python_file_size_known_large.py.Verification
pyteston the touched analyzers' tests plus the new test: 100 + 219 + 117 passed;repo_tests/file_type_sets_one_home_19339_test.py34 passed.scripts/check_python_file_size.pyclean.Refs #21004
Model Used
Claude Sonnet 5.5