Repository navigation
Fix/dependency cycles by file - #4634
Conversation
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Add friend and part_of edge usages analysis/treeSitterExcavationSite/..., analysis/analysers/parsers/DependencyParser/..., sample-projects/regression/cpp/..., sample-projects/regression/rust/..., sample-projects/regression/sql/... |
C++ friend declarations are extracted as FRIEND and mapped to the friend usage. Edges from implementation parts to their declarations receive part_of. Regression expectations, usage descriptions, and visualization styles include the new kinds. |
Detect cycles between declaration copies analysis/analysers/parsers/DependencyParser/..., sample-projects/c/FINDINGS.md, sample-projects/cpp/FINDINGS.md, sample-projects/csharp/FINDINGS.md |
Cycle analysis uses file-qualified declaration keys and maps implementation parts to matching declarations. File-level and logical projections use the resulting declaration-cycle data. Tests cover same-named declarations, cross-file cycles, and return paths. |
Delphi conditional routine body fixture
| Layer / File(s) | Summary |
|---|---|
Record the conditional routine-body gap analysis/analysers/parsers/DependencyParser/docs/name-resolution/delphi.md, sample-projects/regression/delphi/... |
Documentation and a sample fixture record the case where conditional begin and asm branches share a later end;. The expected result marks the syntax unsupported and documents its effect on later routines. |
Priority:
Estimated code review effort: 4 (Complex) | ~45 minutes
Change: Bug fix
Possibly related PRs
- MaibornWolff/codecharta#4617: It adds file-specific declaration copies used by this change to key cycle analysis by file and logical path.
Merge Risk: 
Minimal · up to 07333
-
No actionable issue was established in the reviewed changes; the PR is mergeable after normal checks.
Pre-merge checks: 
3 · 
2
-
Failed checks: 2 warnings Passed checks: 3 passed-
Full details: Title check
-
Explanation
The title "Fix/dependency cycles by file" refers to a real aspect of the changeset. The main change makes cycle detection use file plus logical path, so same-named declarations in different files no longer form false cycles. The title is brief and specific, but it omits the other parts of the change, such as the new friend and part_of edge kinds. It also uses a branch-style "Fix/" prefix rather than a plain sentence. That makes it partially related rather than fully descriptive.
-
Full details: Description check
-
Explanation
The description is the unfilled repository template. The title placeholder "{Meaningful title}" remains, and "Closes: #" has no issue number. The Description section still contains the template prompt "Descriptive pull request text" and no text explaining the problem or the implementation. Every Definition of Done box is unchecked, and the Screenshots section is empty. The PR objectives confirm that the description has no summary or implementation details. Although the changeset is substantial, the description is largely incomplete.
Resolution
Replace the template placeholder title with a meaningful title. Add the linked issue number to "Closes: #". In the Description section, state the problem: dependency cycles between same-named declarations in different files were falsely reported, and cycles through split types were missed. Explain the approach: declarations are keyed by file and logical path, implementation parts map to their declarations, and new
friendandpart_ofusage kinds are added. State the manual and automated testing performed. Check off the Definition of Done items that apply, including the CHANGELOG update. Add screenshots of the new visualization edge styles, or state that none apply.
Full details: Docstring Coverage
-
Explanation
Docstring coverage is 15.38% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 13 functions across 23 files. (32 skipped: 32 unsupported.)
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
-
Finishing Touches: 💡 1
-
📝 Generate docstrings: 💡
-
- Commit to this branch
- Create a new PR
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
Comment @coderabbitai help to get the list of available commands.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013vfKZQ4nJJyhVg7K5q6GcX
… as part_of Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013vfKZQ4nJJyhVg7K5q6GcX
Declarations sharing a logical path in different files no longer close fake cycles, and an implementation part counts as the declaration it implements, so cycles through a split type are found and can be followed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013vfKZQ4nJJyhVg7K5q6GcX
… friend Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013vfKZQ4nJJyhVg7K5q6GcX
…e style Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013vfKZQ4nJJyhVg7K5q6GcX
…s as a known gap Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013vfKZQ4nJJyhVg7K5q6GcX
… friend kinds Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013vfKZQ4nJJyhVg7K5q6GcX
8cd7dab to
073336c
Compare
|
|



{Meaningful title}
Please read the CONTRIBUTING.md before opening a PR.
Closes: #
Description
Descriptive pull request text, answering:
Definition of Done
A PR is only ready for merge once all the following acceptance criteria are fulfilled:
Screenshots or gifs
Summary by CodeRabbit