8000 CI: add gofmt + golangci-lint gates · Issue #41 · dominikzorgnotti/esx-hcl-check · GitHub
[go: up one dir, main page]

Skip to content

CI: add gofmt + golangci-lint gates #41

Closed

Description

@dominikzorgnotti

Add automated lint gates to CI (the final review item, S3).

golangci-lint flagged 5 errcheck issues, now fixed in the same PR:

  • queryBroadcomAPI: a malformed JSON response now returns CertError (undetermined) instead of silently proceeding.
  • saveRawInventory: the temp-file write error is now propagated.
  • Two client.Logout and one test json.Unmarshal marked explicitly ignored (_ =).

Acceptance criteria

  • CI has a lint job running gofmt + golangci-lint, both green.
  • No behavior change beyond the two error paths above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0