Repository navigation
fix: clear Sonar maintainability findings - #56
Conversation
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Define shared post association src/main/java/xyz/subho/clone/twitter/entity/PostAssociation.java |
PostAssociation extends Auditable and defines the lazy Posts association, its column mapping, and public accessors. |
Use shared association src/main/java/xyz/subho/clone/twitter/entity/HashtagPosts.java, src/main/java/xyz/subho/clone/twitter/entity/Likes.java |
HashtagPosts and Likes now extend PostAssociation. Both entities remove their local posts relationship and accessors. |
Security method signatures
| Layer / File(s) | Summary |
|---|---|
Update security method signatures src/main/java/xyz/subho/clone/twitter/security/SecurityConfig.java |
securityFilterChain and authenticationManager no longer declare throws Exception. Their method bodies remain unchanged. |
Sonar coverage exclusions
| Layer / File(s) | Summary |
|---|---|
Configure coverage exclusions .github/workflows/sonar-fork.yml |
The Sonar workflow excludes entity and model paths, mapper implementations, the application entry point, Mockito mock classes, and auxiliary classes from coverage. |
UUID test cleanup
| Layer / File(s) | Summary |
|---|---|
Reuse UUID string in test src/test/java/xyz/subho/clone/twitter/controller/UserControllerTest.java |
The UUID lookup stubs and not-found assertion use a stored UUID string. The expected exception remains ResourceNotFoundException. |
Priority:
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Refactor
Possibly related PRs
- ohbus/twitter-backend-java#55: Adds the
lookupRejectsMalformedAndUnknownIdentitiestest that this change edits, and also updates Sonar coverage exclusions.
Merge Risk: 
Minimal · up to 99a1f
-
No concrete defect or unresolved merge risk is established by this change.
Pre-merge checks: 
5
-
Full details: Docstring Coverage
-
Explanation
No eligible functions found in the changed files. Skipping docstring coverage check. 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 0 functions across 5 files. (1 skipped: 1 unsupported.)
-
Finishing Touches
-
📝 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.
|


Exceptiondeclarations fromSecurityConfig.LikesandHashtagPosts.Summary by CodeRabbit