Uploaded image for project: 'Red Hat Developer Hub Bugs'
  1. Red Hat Developer Hub Bugs
  2. RHDHBUGS-599

[Tech debt][Operator] Bump golangci-lint to the latest v2

XMLWordPrintable

    • 3
    • False
    • Hide

      None

      Show
      None
    • False
    • Release Note Not Required
    • RHDH Install 3280, RHDH Install 3281

      This is a follow-up issue to RHIDP-5963.

      As commented out in https://github.com/redhat-developer/rhdh-operator/pull/1222#pullrequestreview-2893747231 , we needed to bump golangci-lint to make it run using Go 1.23, but we couldn't update it to its latest v2 version. So it was updated to the latest v1 at that time because v2 reported several errors which might require further investigation, which was outside of the scope of RHIDP-5963. See the attached file for an overview of the errors reported right after bumping golang-ci-lint to v2.

      So the goal of this issue is to update golangci-lint to the latest available version (v2.1.6 at the time of writing) and address the errors reported.

      Acceptance Criteria

      • It should bump golangci-lint to the latest available version
      • It should fix the errors reported or provide justification (comment in the code) for the ones ignored (if any)
      • `make lint` should pass

              lahern Leanne Ahern
              rh-ee-asoro Armel Soro
              RHIDP - Install
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: