Skip to content

fix(lint): extract "starting server" log message into a constant#124

Open
basebandit wants to merge 1 commit into
mainfrom
fix/sonar-starting-server-literal
Open

fix(lint): extract "starting server" log message into a constant#124
basebandit wants to merge 1 commit into
mainfrom
fix/sonar-starting-server-literal

Conversation

@basebandit
Copy link
Copy Markdown
Owner

Summary

  • Extracts the duplicated "starting server" log message in cmd/kai/main.go into a package-level startingServerMsg constant.

Why

SonarCloud flagged the string as duplicated 3× in the transport-dispatch switch (one per transport). A constant keeps the call sites aligned and removes the duplication. See SonarCloud issue.

Test plan

  • go build ./...
  • go vet ./...

@sonarqubecloud
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