Skip to content

docs: correct mismatched godoc comment names#6976

Open
eeshsaxena wants to merge 1 commit into
devtron-labs:mainfrom
eeshsaxena:fix-godoc-comments
Open

docs: correct mismatched godoc comment names#6976
eeshsaxena wants to merge 1 commit into
devtron-labs:mainfrom
eeshsaxena:fix-godoc-comments

Conversation

@eeshsaxena

Copy link
Copy Markdown

A few exported functions had doc comments that began with a different function's name (Go convention is that a doc comment starts with the name of the symbol it documents). These look like copy/paste leftovers from renamed functions:

  • GetGrpcClientConnection (client/argocdServer/connection): comment said GetConnection
  • TriggerCiCron (client/cron): comment said UpdateCiWorkflowStatusFailedCron
  • CreateOrUpdateAppOrEnvLevelMetrics (pkg/deployment/manifest/deployedAppMetrics): comment said CheckAndUpdateAppOrEnvLevelMetrics
  • Int63nRange (util): comment said IntnRange

Comment-only change; no behavior change.

Several exported functions had doc comments that began with a different
function's name (Go convention is the doc comment starts with the name
of the thing it documents):

- GetGrpcClientConnection: comment said GetConnection
- TriggerCiCron: comment said UpdateCiWorkflowStatusFailedCron
- CreateOrUpdateAppOrEnvLevelMetrics: comment said CheckAndUpdateAppOrEnvLevelMetrics
- Int63nRange: comment said IntnRange
@bito-code-review

Copy link
Copy Markdown

Bito Review Skipped - Source Branch Not Found

Bito didn't review this change because the pull request is no longer valid. It may have been merged, or the source/target branch may no longer exist.

@sonarqubecloud

sonarqubecloud Bot commented Jul 3, 2026

Copy link
Copy Markdown

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.

1 participant