Fix SonarQube HIGH severity issues (go:S1192, go:S3776) #67
Quality Gate passed
Annotations
Check warning on line 50 in pkg/github/repository_resource.go
sonarqubecloud / SonarCloud Code Analysis
Remove the 'Get' prefix from this function name.
See more on https://sonarcloud.io/project/issues?id=COG-GTM_github-mcp-server&issues=AZrvttwapZtFjN7cLxh4&open=AZrvttwapZtFjN7cLxh4&pullRequest=67
Check warning on line 59 in pkg/github/repository_resource.go
sonarqubecloud / SonarCloud Code Analysis
Remove the 'Get' prefix from this function name.
See more on https://sonarcloud.io/project/issues?id=COG-GTM_github-mcp-server&issues=AZrvttwapZtFjN7cLxh5&open=AZrvttwapZtFjN7cLxh5&pullRequest=67
Check warning on line 191 in pkg/github/discussions.go
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=AZrvqPiwpZtFjN7cLojJ&open=AZrvqPiwpZtFjN7cLojJ&pullRequest=67
Check warning on line 263 in pkg/github/discussions.go
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=AZrvqPiwpZtFjN7cLojM&open=AZrvqPiwpZtFjN7cLojM&pullRequest=67
Check warning on line 233 in pkg/github/discussions.go
sonarqubecloud / SonarCloud Code Analysis
Remove the 'Get' prefix from this function name.
See more on https://sonarcloud.io/project/issues?id=COG-GTM_github-mcp-server&issues=AZrvqPiwpZtFjN7cLojG&open=AZrvqPiwpZtFjN7cLojG&pullRequest=67
Check warning on line 23 in pkg/github/repository_resource.go
sonarqubecloud / SonarCloud Code Analysis
Remove the 'Get' prefix from this function name.
See more on https://sonarcloud.io/project/issues?id=COG-GTM_github-mcp-server&issues=AZrvttwapZtFjN7cLxh1&open=AZrvttwapZtFjN7cLxh1&pullRequest=67
Check warning on line 113 in pkg/github/discussions.go
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=AZrvqPiwpZtFjN7cLojH&open=AZrvqPiwpZtFjN7cLojH&pullRequest=67
Check warning on line 130 in pkg/github/repository_resource.go
sonarqubecloud / SonarCloud Code Analysis
Group together these consecutive parameters of the same type.
See more on https://sonarcloud.io/project/issues?id=COG-GTM_github-mcp-server&issues=AZrvttwapZtFjN7cLxh6&open=AZrvttwapZtFjN7cLxh6&pullRequest=67
Check warning on line 262 in pkg/github/discussions.go
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=AZrvqPiwpZtFjN7cLojL&open=AZrvqPiwpZtFjN7cLojL&pullRequest=67
Check warning on line 353 in pkg/github/discussions.go
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=AZrvqPiwpZtFjN7cLojN&open=AZrvqPiwpZtFjN7cLojN&pullRequest=67
Check warning on line 197 in pkg/github/discussions.go
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=AZrvqPiwpZtFjN7cLojK&open=AZrvqPiwpZtFjN7cLojK&pullRequest=67
Check warning on line 160 in pkg/github/discussions.go
sonarqubecloud / SonarCloud Code Analysis
Remove the 'Get' prefix from this function name.
See more on https://sonarcloud.io/project/issues?id=COG-GTM_github-mcp-server&issues=AZrvqPiwpZtFjN7cLojF&open=AZrvqPiwpZtFjN7cLojF&pullRequest=67
Check warning on line 32 in pkg/github/repository_resource.go
sonarqubecloud / SonarCloud Code Analysis
Remove the 'Get' prefix from this function name.
See more on https://sonarcloud.io/project/issues?id=COG-GTM_github-mcp-server&issues=AZrvttwapZtFjN7cLxh2&open=AZrvttwapZtFjN7cLxh2&pullRequest=67
Check warning on line 72 in pkg/github/discussions.go
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=AZrvqPiwpZtFjN7cLojI&open=AZrvqPiwpZtFjN7cLojI&pullRequest=67
Check warning on line 41 in pkg/github/repository_resource.go
sonarqubecloud / SonarCloud Code Analysis
Remove the 'Get' prefix from this function name.
See more on https://sonarcloud.io/project/issues?id=COG-GTM_github-mcp-server&issues=AZrvttwapZtFjN7cLxh3&open=AZrvttwapZtFjN7cLxh3&pullRequest=67