You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds two identically named cpp files (foo/alpha.cpp and bar/alpha.cpp) to repro Claude Code action review bug where one file is missed or comments apply to removed code.
Read both alpha.cpp files (bar/alpha.cpp and foo/alpha.cpp)
Analyze the PR changes with git diff
Review both files for code quality and standards
Post comprehensive review feedback
Review Findings
✅ Both files successfully reviewed - bar/alpha.cpp and foo/alpha.cpp
File 1: bar/alpha.cpp
Lines reviewed: 1-2
// alpha.cpp in barintbar_value() { return2; }
Issues identified:
Missing header guards - C++ source files in a library context should typically have corresponding headers
Missing documentation - Per CLAUDE.md, functions should have Javadoc-style comments
Code style violation - Braces should be on their own line for functions (CLAUDE.md requirement)
Missing namespace - No namespace encapsulation; global scope pollution risk
Expected format per CLAUDE.md:
/** Return the bar value. @return The integer value 2.*/intbar_value()
{
return2;
}
File 2: foo/alpha.cpp
Lines reviewed: 1-2
// alpha.cpp in foointfoo_value() { return1; }
Issues identified:
Missing header guards - C++ source files in a library context should typically have corresponding headers
Missing documentation - Per CLAUDE.md, functions should have Javadoc-style comments
Code style violation - Braces should be on their own line for functions (CLAUDE.md requirement)
Missing namespace - No namespace encapsulation; global scope pollution risk
Expected format per CLAUDE.md:
/** Return the foo value. @return The integer value 1.*/intfoo_value()
{
return1;
}
Summary
Both bar/alpha.cpp and foo/alpha.cpp were successfully reviewed. The files are structurally identical (aside from their content), and both violate the same coding standards defined in CLAUDE.md:
Brace placement: Functions should have opening braces on their own line
Documentation: Missing Javadoc-style comments
Namespace usage: Functions are in global scope
Since this PR is explicitly labeled as a reproduction case for testing Claude's ability to handle identically-named files in different directories, I can confirm: Both files were properly identified and reviewed. No coverage gaps detected.
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
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.
Adds two identically named cpp files (foo/alpha.cpp and bar/alpha.cpp) to repro Claude Code action review bug where one file is missed or comments apply to removed code.