-
Notifications
You must be signed in to change notification settings - Fork 1
fix(CODEWIKI-005-2): CU-86akbhhru 7 review findings across 4 files #45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
35b09b2
13a760f
e4f0168
69f8a5f
beeb6d6
9eb2f2c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,6 +13,11 @@ | |
| 4. Partial path matching for complex Java packages | ||
|
|
||
| Replace the normalization loop in cluster_modules.py:212-233 with this code. | ||
|
|
||
| NOTE: This is a scratch/reference module, not imported anywhere in the | ||
| codebase. It documents a proposed patch for cluster_modules.py and should be | ||
| merged into that file (or moved to docs/ or a PR description) rather than | ||
| kept as standalone code at the repository root. | ||
| """ | ||
|
|
||
| from typing import Dict, List | ||
|
|
@@ -135,6 +140,7 @@ def normalize_component_ids_enhanced( | |
| # This handles cases where LLM includes partial path | ||
| # Example: "deps.openframe-oss-lib.src.main.java.Class" | ||
| # should match "openframe-oss-lib.different.path.java.Class" | ||
| suffix_matches: List[str] = [] | ||
| if '.' in comp_id: | ||
| # Try matching last 2-4 segments | ||
| segments = comp_id.split('.') | ||
|
Comment on lines
140
to
146
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 𦩠π΄ suffix_matches referenced outside its enclosing for-loop scope, possible NameError/UnboundLocalError or stale-value bug In π€ Prompt for AI agentsfix confidence: π’ 90 high β react π/π to teach the reviewer |
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,12 @@ | ||
| """Python AST-based dependency analyzer. | ||
|
|
||
| This module implements an AST-based analyzer for Python source files, extracting | ||
| classes, functions, and their call relationships for use in the dependency | ||
| analysis pipeline. Component IDs are generated as module::ClassName style | ||
| fully-qualified names to remain consistent with the dependency graph and | ||
| clustering system's expected FQDN format. | ||
| """ | ||
|
|
||
| import ast | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 𦩠π Missing module-level docstring in python.py analyzer Added a module-level triple-quoted docstring at the top of the file (before imports) describing the analyzer's responsibility, matching the style of the sibling php.py analyzer. π€ Prompt for AI agentsfix confidence: π’ 90 high β react π/π to teach the reviewer |
||
| import logging | ||
| import warnings | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
𦩠π Standalone proposed-fix module FQDN_NORMALIZATION_FIX.py sits at repo root, unused and undocumented as a scratch file
Added a clarifying note to the module docstring at the top of
FQDN_NORMALIZATION_FIX.pystating this is a scratch/reference module not imported anywhere and that it should be merged intocluster_modules.pyor moved to docs/PR description. This documents the issue in-file but does not remove or relocate the file itself, since deleting it or merging it intocluster_modules.pyis out of scope for a single-file fix and risks losing the proposed logic without visibility into the target file's current state β a complete fix requires editingcodewiki/src/be/cluster_modules.py(not shown) and then deleting this file, which cannot be safely done here.π€ Prompt for AI agents
fix confidence: π‘ 60 medium β react π/π to teach the reviewer