-
Notifications
You must be signed in to change notification settings - Fork 1
fix(CODEWIKI-005-2): CU-86akn96pk 2 review findings in csharp.py #110
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
base: main
Are you sure you want to change the base?
Changes from all commits
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 |
|---|---|---|
|
|
@@ -53,7 +53,7 @@ def _get_relative_path(self) -> str: | |
|
|
||
| def _get_component_id(self, name: str) -> str: | ||
| module_path = self._get_module_path() | ||
| return f"{module_path}::{name}" if module_path else name | ||
| return f"{module_path}::{name}" | ||
|
|
||
| def _analyze(self): | ||
| language_capsule = tree_sitter_c_sharp.language() | ||
|
|
@@ -304,3 +304,4 @@ def analyze_csharp_file(file_path: str, content: str, repo_path: str = None) -> | |
| return analyzer.nodes, analyzer.call_relationships | ||
|
|
||
|
|
||
|
|
||
|
Comment on lines
304
to
+307
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. 𦩠π codewiki/src/be/dependency_analyzer/analyzers/csharp#analyze_csharp_file duplicates an existing definition The π€ Prompt for AI agentsfix confidence: π΄ 30 low β review closely β react π/π to teach the reviewer |
||
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.
𦩠π΄ csharp analyzer generates component IDs without
::separator when repo_path is emptyIn
TreeSitterCSharpAnalyzer._get_component_id(line ~54), removed the falsy-module_pathfallback so the method now always returnsf"{module_path}::{name}", guaranteeing the::separator is present in the FQDN as required by CODEWIKI-005-2/CODEWIKI-008, matching the suggested fix exactly.π€ Prompt for AI agents
fix confidence: π’ 90 high β react π/π to teach the reviewer