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

chore: linter settings for nats-manager #92

Merged
merged 5 commits into from
Feb 28, 2024
Merged
Changes from all commits
Commits
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
52 changes: 51 additions & 1 deletion config/lint/.golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ linters-settings:
- name: line-length-limit
severity: warning
disabled: true
arguments: [ 120 ]
arguments: [120]
funlen:
lines: 100
cyclop:
Expand Down Expand Up @@ -153,6 +153,56 @@ linters-settings:
- pkg: sigs.k8s.io/controller-runtime/pkg/log
alias: kpkglog

######
### The following imports are used by github.com/kyma-project/nats-manager repository.
######
- pkg: k8s.io/api/apps/v1
alias: kappsv1
- pkg: k8s.io/apimachinery/pkg/types
alias: ktypes
- pkg: sigs.k8s.io/controller-runtime/pkg/log/zap
alias: klogzap
- pkg: github.com/kyma-project/nats-manager/pkg/k8s/mocks
alias: nmkmocks
- pkg: k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1
alias: kapiextv1
- pkg: k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset
alias: kapiextclientset
- pkg: github.com/kyma-project/nats-manager/internal/controller/nats
alias: nmctrl
- pkg: github.com/kyma-project/nats-manager/api/v1alpha1
alias: nmapiv1alpha1
- pkg: k8s.io/api/policy/v1
alias: kapipolicyv1
- pkg: github.com/kyma-project/nats-manager/pkg/k8s/chart/mocks
alias: nmkchartmocks
- pkg: k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/fake
alias: kapiextclientsetfake
- pkg: k8s.io/apimachinery/pkg/util/yaml
alias: kutilyaml
- pkg: github.com/kyma-project/nats-manager/pkg/manager/mocks
alias: nmmgrmocks
- pkg: github.com/kyma-project/nats-manager/internal/controller/nats/mocks
alias: nmctrlmocks
- pkg: github.com/kyma-project/nats-manager/pkg/manager
alias: nmmgr
- pkg: github.com/kyma-project/nats-manager/internal/controller/nats/url
alias: nmctrlurl
- pkg: github.com/kyma-project/nats-manager/testutils/matchers/nats
alias: nmtsmatchers
- pkg: k8s.io/api/events/v1
alias: keventsv1
- pkg: github.com/kyma-project/nats-manager/pkg/nats
alias: nmnats
- pkg: k8s.io/api/rbac/v1
alias: krbacv1
- pkg: k8s.io/api/autoscaling/v1
alias: kautoscalingv1
- pkg: github.com/kyma-project/nats-manager/internal/controller/cache
alias: nmctrlcache
- pkg: github.com/kyma-project/nats-manager/pkg/labels
alias: nmlabels

ireturn:
allow:
- anon
Expand Down
Loading