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

Enable gci, goprintffuncname, nolintlint linters #2500

Merged
merged 63 commits into from
Jul 12, 2024
Merged
Show file tree
Hide file tree
Changes from 57 commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
41261a0
Enable gocyclo linter
ankitjain235 Aug 3, 2023
118bc8a
Enable gocritic linter
ankitjain235 Aug 3, 2023
9fe8ef0
Fix typo for linters-settings, fix gocyclo lint failures
ankitjain235 Aug 3, 2023
88f1097
Add lll linter
ankitjain235 Aug 3, 2023
cf599c9
Add nakedret linter
ankitjain235 Aug 3, 2023
4c91b50
Enable dupl linter
ankitjain235 Aug 3, 2023
54d1d5e
Enable exportloopref linter
ankitjain235 Aug 3, 2023
ad04108
Enable importas linter
ankitjain235 Aug 3, 2023
953121f
Enable misspell linter
ankitjain235 Aug 3, 2023
605f039
Enable nestif linter
ankitjain235 Aug 3, 2023
31e838f
Fix minor typo
ankitjain235 Aug 7, 2023
b4cf462
Merge master, resolve conflicts
ankitjain235 Oct 3, 2023
2f1bbe4
Update new lint misses, add TODO for lint disables
ankitjain235 Oct 3, 2023
ef78a07
Merge master, resolve conflicts
ankitjain235 Oct 3, 2023
62b8959
Merge master, resolve conflicts
ankitjain235 Oct 3, 2023
41933d9
Merge master, resolve conflicts
ankitjain235 Oct 3, 2023
9c3b9a1
Merge master, resolve conflicts
ankitjain235 Oct 3, 2023
44a39cb
Fix misspell lint failure
ankitjain235 Oct 3, 2023
a874943
Merge master, resolve conflicts
ankitjain235 Nov 29, 2023
612154b
Apply linter to new changes
ankitjain235 Nov 29, 2023
0007316
Merge master, resolve conflicts
ankitjain235 Nov 29, 2023
7a3945a
Fix merge issues
ankitjain235 Nov 29, 2023
75b4f9d
Merge parent, resolve conflicts
ankitjain235 Nov 29, 2023
bc30421
Merge parent, resolve conflicts
ankitjain235 Nov 29, 2023
d0392d6
Enable gci linter
ankitjain235 Nov 29, 2023
3524aba
Enable goprintffuncname and nolintlint linters
ankitjain235 Nov 30, 2023
6695929
Merge master, resolve conflicts
ankitjain235 Dec 4, 2023
8c38dc0
Merge branch 'enable-linters-2' into enable-linters-3
ankitjain235 Dec 4, 2023
d522754
Add missing newlint
ankitjain235 Dec 4, 2023
32f0cae
Merge parent, resolve conflicts
ankitjain235 Dec 4, 2023
d9c9116
Merge parent, resolve conflicts
ankitjain235 Dec 4, 2023
fded60e
Add explanation for ignoring dupl linter
ankitjain235 Dec 4, 2023
3f68dab
Merge branch 'enable-linters-2' into enable-linters-3
ankitjain235 Dec 4, 2023
08e0240
Merge branch 'enable-linters-3' into enable-linters-4
ankitjain235 Dec 4, 2023
e30c1ce
Remove unnecessary comment
ankitjain235 Dec 4, 2023
21d4de0
Merge branch 'enable-linters-4' into enable-linters-5
ankitjain235 Dec 4, 2023
5b6234c
Merge branch 'master' into enable-linters-2
ankitjain235 Dec 6, 2023
5e97339
Address review comments
ankitjain235 Dec 18, 2023
da05972
Address review comments - move args
ankitjain235 Dec 19, 2023
a8795b2
Merge branch 'master' into enable-linters-2
ankitjain235 Dec 19, 2023
95d4b08
Merge parent, resolve conflicts
ankitjain235 Dec 19, 2023
7e7f3bf
Merge parent, resolve conflicts
ankitjain235 Dec 19, 2023
446c437
Temporarily disable depguard linter, lint fix
ankitjain235 Dec 19, 2023
8727b06
Merge branch 'enable-linters-2' into enable-linters-3
ankitjain235 Dec 19, 2023
a435fdf
Merge branch 'enable-linters-3' into enable-linters-4
ankitjain235 Dec 19, 2023
74180ac
Fix merge error
ankitjain235 Dec 19, 2023
4ab2e48
Merge parent, resolve conflicts
ankitjain235 Dec 19, 2023
7c84f68
Merge master, resolve conflicts
ankitjain235 Dec 21, 2023
d059a7f
Fix lint failure
ankitjain235 Dec 21, 2023
36aa8b0
merge conflict resolved
saima-s May 23, 2024
e9d46c7
removed non deleted file and sync with master
saima-s May 23, 2024
25bec02
run linter fix command
saima-s May 23, 2024
f51525c
reverted the generated file change acc to master
saima-s May 23, 2024
217e307
Merge branch 'master' of github.com:kanisterio/kanister into enable-l…
saima-s Jun 5, 2024
d0e82c8
Merge branch 'master' of github.com:kanisterio/kanister into enable-l…
saima-s Jun 6, 2024
d19d6ce
fix err check and gci linter
saima-s Jun 20, 2024
fae52fc
merge conflict resolved
saima-s Jul 2, 2024
23551f2
enabled default linter
saima-s Jul 5, 2024
12134dc
Merge branch 'master' into enable-linters-5
saima-s Jul 5, 2024
7571875
fix lint
saima-s Jul 9, 2024
7e1e43d
Merge branch 'enable-linters-5' of github.com:kanisterio/kanister int…
saima-s Jul 9, 2024
80d001e
fix unparam linter
saima-s Jul 9, 2024
a68ad75
Merge branch 'master' into enable-linters-5
saima-s Jul 12, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 20 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
linters:
disable-all: false # This enabled 7 default linters as of golangci-lint@v1.50.0:
disable-all: true # This enabled 7 default linters as of golangci-lint@v1.50.0:
saima-s marked this conversation as resolved.
Show resolved Hide resolved
# 1. errcheck
# 2. gosimple
# 3. govet
Expand All @@ -24,6 +24,9 @@ linters:
- importas
- misspell
- nestif
- gci
- goprintffuncname
- nolintlint

run:
timeout: 10m # golangci-lint run's timeout.
Expand All @@ -32,6 +35,7 @@ run:
- "integration"

issues:
exclude-use-default: false
exclude-rules:
- path: '_test.go'
linters:
Expand All @@ -41,7 +45,7 @@ issues:
- dupl
- misspell
- nestif

- gci
- text: "`ctx` is unused" # Context might not be in use in places, but for consistency, we pass it.
linters:
- unparam
Expand All @@ -66,3 +70,17 @@ linters-settings:
alias: crv1alpha1
nestif:
min-complexity: 6
gci:
sections:
- standard
- default
- prefix(github.com/kanisterio/kanister)
- blank
- dot
skip-generated: true

exclude-dirs:
- pkg/client/applyconfiguration/cr/v1alpha1 # generated from code-gen
- pkg/client/clientset # generated from code-gen
- pkg/client/informers # generated from code-gen
- pkg/client/listers # generated from code-gen
4 changes: 3 additions & 1 deletion cmd/reposervercontroller/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import (
utilruntime "k8s.io/apimachinery/pkg/util/runtime"
"k8s.io/client-go/discovery"
clientgoscheme "k8s.io/client-go/kubernetes/scheme"
_ "k8s.io/client-go/plugin/pkg/client/auth"
ctrl "sigs.k8s.io/controller-runtime"
"sigs.k8s.io/controller-runtime/pkg/healthz"
"sigs.k8s.io/controller-runtime/pkg/log/zap"
Expand All @@ -40,7 +39,10 @@ import (
"github.com/kanisterio/kanister/pkg/log"
"github.com/kanisterio/kanister/pkg/resource"
"github.com/kanisterio/kanister/pkg/validatingwebhook"
//nolint:gci
saima-s marked this conversation as resolved.
Show resolved Hide resolved
//+kubebuilder:scaffold:imports
saima-s marked this conversation as resolved.
Show resolved Hide resolved

_ "k8s.io/client-go/plugin/pkg/client/auth"
)

var (
Expand Down
8 changes: 4 additions & 4 deletions pkg/app/kafka.go
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ func (kc *KafkaCluster) InsertRecord(ctx context.Context, namespace string) erro
if resp.StatusCode != 200 {
return errkit.New("Error inserting records in topic")
}
defer resp.Body.Close()
defer resp.Body.Close() //nolint:errcheck
bytes, err := io.ReadAll(resp.Body)
if err != nil {
return err
Expand Down Expand Up @@ -617,7 +617,7 @@ func createConsumerGroup(uri string) error {
// we are checking if consumer is already present and if not present it should be created
return errkit.New("Error creating consumer")
}
defer resp.Body.Close()
defer resp.Body.Close() //nolint:errcheck
bytes, err := io.ReadAll(resp.Body)
if err != nil {
return err
Expand Down Expand Up @@ -650,7 +650,7 @@ func subscribe(uri string) error {
if resp.StatusCode != 204 {
return errkit.New("Error subscribing to the topic")
}
defer resp.Body.Close()
defer resp.Body.Close() //nolint:errcheck
bytes, err := io.ReadAll(resp.Body)
if err != nil {
return err
Expand All @@ -674,7 +674,7 @@ func consumeMessage(uri string) (int, error) {
if err != nil {
return 0, err
}
defer resp.Body.Close()
defer resp.Body.Close() //nolint:errcheck
bytes, err := io.ReadAll(resp.Body)
if err != nil {
return 0, err
Expand Down
3 changes: 1 addition & 2 deletions pkg/blockstorage/awsebs/awsebs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@ import (
. "gopkg.in/check.v1"

kaws "github.com/kanisterio/kanister/pkg/aws"
envconfig "github.com/kanisterio/kanister/pkg/config"

"github.com/kanisterio/kanister/pkg/blockstorage"
envconfig "github.com/kanisterio/kanister/pkg/config"
)

// Hook up gocheck into the "go test" runner.
Expand Down
2 changes: 1 addition & 1 deletion pkg/blockstorage/azure/azure_instance_metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,6 @@ func (i *InstanceMetadata) queryMetadataBytes(path, format string) ([]byte, erro
if resp.StatusCode != http.StatusOK {
return nil, errors.Errorf("Failed to get instance metadata with statusCode: %d, Path: %s", resp.StatusCode, path)
}
defer resp.Body.Close()
defer resp.Body.Close() //nolint:errcheck
return io.ReadAll(resp.Body)
}
3 changes: 0 additions & 3 deletions pkg/blockstorage/azure/azuredisk.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
// TODO: Switch to using the latest azure sdk and remove nolint.
// Related Ticket- https://github.com/kanisterio/kanister/issues/1684
//
//nolint:staticcheck

saima-s marked this conversation as resolved.
Show resolved Hide resolved
package azure

import (
Expand Down
2 changes: 0 additions & 2 deletions pkg/blockstorage/azure/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@

// TODO: Switch to using the latest azure sdk and remove nolint.
// Related Ticket- https://github.com/kanisterio/kanister/issues/168
//
//nolint:staticcheck
package azure

import (
Expand Down
3 changes: 2 additions & 1 deletion pkg/blueprint/validate/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ import (

kanister "github.com/kanisterio/kanister/pkg"
crv1alpha1 "github.com/kanisterio/kanister/pkg/apis/cr/v1alpha1"
_ "github.com/kanisterio/kanister/pkg/function"
"github.com/kanisterio/kanister/pkg/param"
"github.com/kanisterio/kanister/pkg/utils"

_ "github.com/kanisterio/kanister/pkg/function"
saima-s marked this conversation as resolved.
Show resolved Hide resolved
)

const (
Expand Down
6 changes: 3 additions & 3 deletions pkg/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import (
"strings"
"sync"

osversioned "github.com/openshift/client-go/apps/clientset/versioned"
"github.com/pkg/errors"
"github.com/prometheus/client_golang/prometheus"
"gopkg.in/tomb.v2"
Expand All @@ -40,8 +41,6 @@ import (
"k8s.io/client-go/tools/record"
"k8s.io/client-go/tools/reference"

osversioned "github.com/openshift/client-go/apps/clientset/versioned"

kanister "github.com/kanisterio/kanister/pkg"
crv1alpha1 "github.com/kanisterio/kanister/pkg/apis/cr/v1alpha1"
"github.com/kanisterio/kanister/pkg/client/clientset/versioned"
Expand All @@ -51,11 +50,12 @@ import (
"github.com/kanisterio/kanister/pkg/eventer"
"github.com/kanisterio/kanister/pkg/field"
"github.com/kanisterio/kanister/pkg/log"
_ "github.com/kanisterio/kanister/pkg/metrics"
"github.com/kanisterio/kanister/pkg/param"
"github.com/kanisterio/kanister/pkg/progress"
"github.com/kanisterio/kanister/pkg/reconcile"
"github.com/kanisterio/kanister/pkg/validate"

_ "github.com/kanisterio/kanister/pkg/metrics"
)

// Controller represents a controller object for kanister custom resources
Expand Down
3 changes: 0 additions & 3 deletions pkg/controller/controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ func (s *ControllerSuite) TestWatch(c *C) {
time.Sleep(5 * time.Second)
}

//nolint:unparam
func (s *ControllerSuite) waitOnActionSetState(c *C, as *crv1alpha1.ActionSet, state crv1alpha1.State) error {
ctx, cancel := context.WithTimeout(context.Background(), 40*time.Second)
defer cancel()
Expand All @@ -180,7 +179,6 @@ func (s *ControllerSuite) waitOnActionSetState(c *C, as *crv1alpha1.ActionSet, s
return errors.Wrapf(err, "State '%s' never reached", state)
}

//nolint:unparam
func (s *ControllerSuite) waitOnDeferPhaseState(c *C, as *crv1alpha1.ActionSet, state crv1alpha1.State) error {
ctx, cancel := context.WithTimeout(context.Background(), 1*time.Minute)
defer cancel()
Expand All @@ -206,7 +204,6 @@ func (s *ControllerSuite) waitOnDeferPhaseState(c *C, as *crv1alpha1.ActionSet,
return errors.Wrapf(err, "State '%s' never reached", state)
}

//nolint:unparam
func (s *ControllerSuite) waitOnActionSetCompleteWithRunningPhases(as *crv1alpha1.ActionSet, rp *sets.Set[string]) error {
ctx, cancel := context.WithTimeout(context.Background(), 120*time.Second)
defer cancel()
Expand Down
3 changes: 1 addition & 2 deletions pkg/customresource/customresource.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ import (
"k8s.io/client-go/kubernetes"
"k8s.io/client-go/util/retry"

// importing go check to bypass the testing flags
_ "gopkg.in/check.v1"
_ "gopkg.in/check.v1" // importing go check to bypass the testing flags
)

const serverVersionV170 = "v1.7.0"
Expand Down
3 changes: 1 addition & 2 deletions pkg/function/data_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,14 @@ import (
"fmt"
"os"

osversioned "github.com/openshift/client-go/apps/clientset/versioned"
. "gopkg.in/check.v1"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/dynamic/fake"
"k8s.io/client-go/kubernetes"
k8sscheme "k8s.io/client-go/kubernetes/scheme"

osversioned "github.com/openshift/client-go/apps/clientset/versioned"

kanister "github.com/kanisterio/kanister/pkg"
crv1alpha1 "github.com/kanisterio/kanister/pkg/apis/cr/v1alpha1"
"github.com/kanisterio/kanister/pkg/client/clientset/versioned"
Expand Down
1 change: 1 addition & 0 deletions pkg/function/delete_rds_snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ func (*deleteRDSSnapshotFunc) Name() string {
return DeleteRDSSnapshotFuncName
}

//nolint:unparam
func deleteRDSSnapshot(ctx context.Context, snapshotID string, profile *param.Profile, dbEngine RDSDBEngine) (map[string]interface{}, error) {
// Validate profile
if err := ValidateProfile(profile); err != nil {
Expand Down
3 changes: 1 addition & 2 deletions pkg/function/e2e_volume_snapshot_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import (
"os"
"strings"

osversioned "github.com/openshift/client-go/apps/clientset/versioned"
"golang.org/x/oauth2/google"
"google.golang.org/api/compute/v1"
. "gopkg.in/check.v1"
Expand All @@ -30,8 +31,6 @@ import (
"k8s.io/client-go/kubernetes"
k8sscheme "k8s.io/client-go/kubernetes/scheme"

osversioned "github.com/openshift/client-go/apps/clientset/versioned"

kanister "github.com/kanisterio/kanister/pkg"
crv1alpha1 "github.com/kanisterio/kanister/pkg/apis/cr/v1alpha1"
awsconfig "github.com/kanisterio/kanister/pkg/aws"
Expand Down
3 changes: 1 addition & 2 deletions pkg/function/kube_exec_all_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,14 @@ import (
"context"
"fmt"

osversioned "github.com/openshift/client-go/apps/clientset/versioned"
. "gopkg.in/check.v1"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/dynamic/fake"
"k8s.io/client-go/kubernetes"
k8sscheme "k8s.io/client-go/kubernetes/scheme"

osversioned "github.com/openshift/client-go/apps/clientset/versioned"

kanister "github.com/kanisterio/kanister/pkg"
crv1alpha1 "github.com/kanisterio/kanister/pkg/apis/cr/v1alpha1"
"github.com/kanisterio/kanister/pkg/client/clientset/versioned"
Expand Down
3 changes: 1 addition & 2 deletions pkg/function/kube_exec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,14 @@ import (
"fmt"
"strings"

osversioned "github.com/openshift/client-go/apps/clientset/versioned"
. "gopkg.in/check.v1"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/dynamic/fake"
"k8s.io/client-go/kubernetes"
k8sscheme "k8s.io/client-go/kubernetes/scheme"

osversioned "github.com/openshift/client-go/apps/clientset/versioned"

kanister "github.com/kanisterio/kanister/pkg"
crv1alpha1 "github.com/kanisterio/kanister/pkg/apis/cr/v1alpha1"
"github.com/kanisterio/kanister/pkg/client/clientset/versioned"
Expand Down
2 changes: 1 addition & 1 deletion pkg/function/prepare_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func prepareDataPodFunc(cli kubernetes.Interface) func(ctx context.Context, pc k
if err != nil {
return nil, errors.Wrapf(err, "Failed to fetch logs from the pod")
}
defer r.Close()
defer r.Close() //nolint:errcheck

bytes, err := io.ReadAll(r)
if err != nil {
Expand Down
4 changes: 2 additions & 2 deletions pkg/function/restore_csi_snapshot_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ package function
import (
"context"

"github.com/kanisterio/kanister/pkg/kube/snapshot"

. "gopkg.in/check.v1"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/resource"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
dynfake "k8s.io/client-go/dynamic/fake"
"k8s.io/client-go/kubernetes/fake"

"github.com/kanisterio/kanister/pkg/kube/snapshot"
)

const (
Expand Down
3 changes: 1 addition & 2 deletions pkg/function/scale_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,14 @@ import (
"context"
"fmt"

osversioned "github.com/openshift/client-go/apps/clientset/versioned"
. "gopkg.in/check.v1"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/dynamic/fake"
"k8s.io/client-go/kubernetes"
k8sscheme "k8s.io/client-go/kubernetes/scheme"

osversioned "github.com/openshift/client-go/apps/clientset/versioned"

kanister "github.com/kanisterio/kanister/pkg"
crv1alpha1 "github.com/kanisterio/kanister/pkg/apis/cr/v1alpha1"
"github.com/kanisterio/kanister/pkg/client/clientset/versioned"
Expand Down
1 change: 0 additions & 1 deletion pkg/jsonpath/jsonpath_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import (
"testing"

. "gopkg.in/check.v1"

"k8s.io/apimachinery/pkg/runtime"
"k8s.io/client-go/kubernetes/scheme"
)
Expand Down
3 changes: 2 additions & 1 deletion pkg/kancontroller/kancontroller.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,13 @@ import (
"k8s.io/client-go/rest"

"github.com/kanisterio/kanister/pkg/controller"
_ "github.com/kanisterio/kanister/pkg/function"
"github.com/kanisterio/kanister/pkg/handler"
"github.com/kanisterio/kanister/pkg/kube"
"github.com/kanisterio/kanister/pkg/log"
"github.com/kanisterio/kanister/pkg/resource"
"github.com/kanisterio/kanister/pkg/validatingwebhook"

_ "github.com/kanisterio/kanister/pkg/function"
)

const (
Expand Down
5 changes: 2 additions & 3 deletions pkg/kanctl/actionset.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2019 The Kanister Authors.
// Copyright 2024 The Kanister Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -21,6 +21,7 @@ import (
"strings"
"sync"

osversioned "github.com/openshift/client-go/apps/clientset/versioned"
"github.com/pkg/errors"
"github.com/spf13/cobra"
apierrors "k8s.io/apimachinery/pkg/api/errors"
Expand All @@ -31,8 +32,6 @@ import (
"k8s.io/client-go/kubernetes"
"sigs.k8s.io/yaml"

osversioned "github.com/openshift/client-go/apps/clientset/versioned"

crv1alpha1 "github.com/kanisterio/kanister/pkg/apis/cr/v1alpha1"
"github.com/kanisterio/kanister/pkg/client/clientset/versioned"
"github.com/kanisterio/kanister/pkg/kube"
Expand Down
Loading
Loading