Skip to content

fix: extract constant for duplicated GQL client error string (go:S1192) - #140

Open
devin-ai-integration[bot] wants to merge 1 commit into
mainfrom
devin/1776698078-fix-duplicated-string-literal
Open

devin-ai-integration[bot] wants to merge 1 commit into
mainfrom
devin/1776698078-fix-duplicated-string-literal

fix: extract constant for duplicated GQL client error string

758ece1
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Apr 20, 2026 in 21s

Quality Gate failed

Failed conditions
D Maintainability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Annotations

Check warning on line 72 in pkg/github/discussions.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested anonymous struct into a named type for better readability and reusability.

See more on https://sonarcloud.io/project/issues?id=COG-GTM_github-mcp-server&issues=AZ2reBGQSJzgaFLOAzss&open=AZ2reBGQSJzgaFLOAzss&pullRequest=140

Check warning on line 197 in pkg/github/discussions.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested anonymous struct into a named type for better readability and reusability.

See more on https://sonarcloud.io/project/issues?id=COG-GTM_github-mcp-server&issues=AZ2reBGQSJzgaFLOAzsu&open=AZ2reBGQSJzgaFLOAzsu&pullRequest=140

Check warning on line 113 in pkg/github/discussions.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested anonymous struct into a named type for better readability and reusability.

See more on https://sonarcloud.io/project/issues?id=COG-GTM_github-mcp-server&issues=AZ2reBGQSJzgaFLOAzst&open=AZ2reBGQSJzgaFLOAzst&pullRequest=140

Check warning on line 268 in pkg/github/discussions.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested anonymous struct into a named type for better readability and reusability.

See more on https://sonarcloud.io/project/issues?id=COG-GTM_github-mcp-server&issues=AZ2reBGQSJzgaFLOAzsw&open=AZ2reBGQSJzgaFLOAzsw&pullRequest=140

Check warning on line 269 in pkg/github/discussions.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested anonymous struct into a named type for better readability and reusability.

See more on https://sonarcloud.io/project/issues?id=COG-GTM_github-mcp-server&issues=AZ2reBGQSJzgaFLOAzsx&open=AZ2reBGQSJzgaFLOAzsx&pullRequest=140

Check warning on line 365 in pkg/github/discussions.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested anonymous struct into a named type for better readability and reusability.

See more on https://sonarcloud.io/project/issues?id=COG-GTM_github-mcp-server&issues=AZ2reBGQSJzgaFLOAzsy&open=AZ2reBGQSJzgaFLOAzsy&pullRequest=140

Check warning on line 203 in pkg/github/discussions.go

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested anonymous struct into a named type for better readability and reusability.

See more on https://sonarcloud.io/project/issues?id=COG-GTM_github-mcp-server&issues=AZ2reBGQSJzgaFLOAzsv&open=AZ2reBGQSJzgaFLOAzsv&pullRequest=140