Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix failing golanci-lint #1344

Merged
merged 3 commits into from
Nov 22, 2023
Merged

Conversation

MichaelMraka
Copy link
Collaborator

Secure Coding Practices Checklist GitHub Link

Secure Coding Checklist

  • Input Validation
  • Output Encoding
  • Authentication and Password Management
  • Session Management
  • Access Control
  • Cryptographic Practices
  • Error Handling and Logging
  • Data Protection
  • Communication Security
  • System Configuration
  • Database Security
  • File Management
  • Memory Management
  • General Coding Practices

Copy link

jira-linking bot commented Nov 21, 2023

Commits missing Jira IDs:
efee9c1
77f5cb1
b98068e

@MichaelMraka MichaelMraka force-pushed the pr1 branch 2 times, most recently from 15eab3a to 79a937c Compare November 21, 2023 10:25
manager/controllers/baseline_delete.go:37:60: string `Invalid baseline_id: ` has 3 occurrences, make it a constant (goconst)
                c.JSON(http.StatusBadRequest, utils.ErrorResponse{Error: "Invalid baseline_id: " + baselineIDstr})

tasks/vmaas_sync/advisory_sync_test.go:17:15: unused-parameter: parameter 't' seems to be unused, consider removing or renaming it as _ (revive)
func TestInit(t *testing.T) {
              ^
base/utils/http.go:23:43: response body must be closed (bodyclose)
                outDataPtr, resp, callErr := httpCallFun()
                                                        ^
listener/common_test.go:23:15: unused-parameter: parameter 't' seems to be unused, consider removing or renaming it as _ (revive)
func TestInit(t *testing.T) {
              ^
listener/common_test.go:80:28: unused-parameter: parameter 'rhAccountID' seems to be unused, consider removing or renaming it as _ (revive)
func createTestUploadEvent(rhAccountID, orgID, inventoryID, reporter string, packages, yum bool) HostEvent {
                           ^
evaluator/evaluate_test.go:23:15: unused-parameter: parameter 't' seems to be unused, consider removing or renaming it as _ (revive)
func TestInit(t *testing.T) {
              ^
manager/controllers/advisory_systems_v3.go:104:41: G601: Implicit memory aliasing in for loop. (gosec)
                if err = parseSystemItems(as.TagsStr, &as.AdvisorySystemItemAttributes.Tags); err != nil {
                                                      ^
manager/controllers/advisory_systems_v3.go:107:43: G601: Implicit memory aliasing in for loop. (gosec)
                if err = parseSystemItems(as.GroupsStr, &as.AdvisorySystemItemAttributes.Groups); err != nil {
                                                        ^
manager/controllers/package_systems.go:242:46: G601: Implicit memory aliasing in for loop. (gosec)
                if err := parseSystemItems(system.TagsStr, &system.PackageSystemItemV3.Tags); err != nil {
                                                           ^
manager/controllers/utils.go:477:28: unused-parameter: parameter 'code' seems to be unused, consider removing or renaming it as _ (revive)
func Csv(ctx *gin.Context, code int, res interface{}) {
                           ^
@MichaelMraka MichaelMraka changed the title DEBUG: remove kafka output filtering fix failing golanci-lint Nov 21, 2023
@MichaelMraka MichaelMraka marked this pull request as ready for review November 21, 2023 14:42
@MichaelMraka MichaelMraka requested a review from psegedy November 21, 2023 14:43
@MichaelMraka MichaelMraka merged commit f276b83 into RedHatInsights:master Nov 22, 2023
4 checks passed
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.

2 participants