Skip to content

Fix SonarQube nested comment issues in autogenerated protobuf files#71

Open
ReshmaJS wants to merge 3 commits into
cdacmasterfrom
codequality_sq
Open

Fix SonarQube nested comment issues in autogenerated protobuf files#71
ReshmaJS wants to merge 3 commits into
cdacmasterfrom
codequality_sq

Conversation

@ReshmaJS

@ReshmaJS ReshmaJS commented May 27, 2026

Copy link
Copy Markdown

What type of PR is this?

/kind cleanup
/kind enhancement

What this PR does / why we need it:
This PR addresses SonarQube issues reported in autogenerated protobuf Go files (.pb.go) where empty stub functions do not contain proper nested comments explaining why the functions are intentionally empty. These issues affect static analysis and code quality checks during CI/CD execution.

To handle this consistently for regenerated protobuf files, a post-generation script has been added to automatically insert the required comments into targeted autogenerated empty methods after protobuf generation.

Which issue(s) this PR fixes:

Fixes #70

Test Report Added?:

/kind TESTED

Test Report:
NA

Special notes for your reviewer:
Nil

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SonarQube reports nested comment issues in autogenerated protobuf files

1 participant