Skip to content

fix: resolve SonarQube S1192 and S3776 High severity issues in discussions.go - #147

Open
devin-ai-integration[bot] wants to merge 2 commits into
mainfrom
devin/1779230148-fix-sonarqube-discussions
Open

devin-ai-integration[bot] wants to merge 2 commits into
mainfrom
devin/1779230148-fix-sonarqube-discussions

fix: preserve nil-slice behavior for empty discussion results

d6b592a
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded May 19, 2026 in 21s

Annotations

Check warning on line 253 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=AZ5CYwyeLyiN3yWpu4_7&open=AZ5CYwyeLyiN3yWpu4_7&pullRequest=147

Check warning on line 349 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=AZ5CYwyeLyiN3yWpu4_8&open=AZ5CYwyeLyiN3yWpu4_8&pullRequest=147

Check warning on line 54 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=AZ5CYwyeLyiN3yWpu4_2&open=AZ5CYwyeLyiN3yWpu4_2&pullRequest=147

Check warning on line 252 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=AZ5CYwyeLyiN3yWpu4_6&open=AZ5CYwyeLyiN3yWpu4_6&pullRequest=147

Check warning on line 73 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=AZ5CYwyeLyiN3yWpu4_3&open=AZ5CYwyeLyiN3yWpu4_3&pullRequest=147

Check warning on line 187 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=AZ5CYwyeLyiN3yWpu4_5&open=AZ5CYwyeLyiN3yWpu4_5&pullRequest=147

Check warning on line 181 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=AZ5CYwyeLyiN3yWpu4_4&open=AZ5CYwyeLyiN3yWpu4_4&pullRequest=147