Uploaded image for project: 'Cert Manager support for Red Hat OpenShift'
  1. Cert Manager support for Red Hat OpenShift
  2. CM-841

Fix issues reported by the golangci-lint tool

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • None
    • 2
    • False
    • Hide

      None

      Show
      None
    • False
    • Not Selected
    • OAPE Sprint 281, OAPE Sprint 282
    • 2

      In the previous task  CM-824, the tool was updated from v1 to v2 and number of new linters were added, which reported below number of issues, which should be addressed as part of this tracker.

      131 issues:
      * contextcheck: 1
      * depguard: 50
      * errcheck: 1
      * errname: 2
      * forcetypeassert: 6
      * goconst: 4
      * gocritic: 7
      * godot: 2
      * gosec: 3
      * makezero: 2
      * nestif: 3
      * prealloc: 1
      * predeclared: 4
      * recvcheck: 1
      * staticcheck: 7
      * unparam: 4
      * wrapcheck: 33 

      Make use of `make lint-fix` to leverage the tool provided automation for fixing the issues where all and remaining will be a manual task.

      Acceptance Criteria:

      • All the issues are resolved
      • Disabled linters in the golanci-lint config file are enabled and a new tracker is created for the reported issues.

              anankuma Anand Kumar
              bhb@redhat.com Bharath B
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: