Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
Kiss, Tibor committed Feb 1, 2024
1 parent 1373d6e commit ae023cd
Showing 1 changed file with 15 additions and 18 deletions.
33 changes: 15 additions & 18 deletions config/lint/.golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ linters:
- lll
- maligned # deprecated (since v1.38.0)
- nlreturn # too strict and mostly code is not more readable
- nosnakecase # deprecated (since v1.48.1) and replaced by 'revive'
- nosnakecase # deprecated (since v1.48.1) and replaced by 'revive'
- scopelint # deprecated (since v1.39.0) and replaced by 'exportloopref'
- structcheck # deprecated (since v1.49.0) and replaced by 'unused'
- sqlclosecheck # not needed for this project
Expand Down Expand Up @@ -40,7 +40,6 @@ linters:
- tagliatelle
- errchkjson
- noctx


linters-settings:
gomoddirectives:
Expand All @@ -62,7 +61,7 @@ linters-settings:
- name: line-length-limit
severity: warning
disabled: true
arguments: [ 120 ]
arguments: [120]
funlen:
lines: 100
cyclop:
Expand All @@ -71,11 +70,11 @@ linters-settings:
min-complexity: 6
gci:
sections:
- standard # Standard packages.
- default # Imports that could not be matched to another section type.
- prefix(github.com/kyma-project/eventing-manager) # Imports with the specified prefix.
- blank # Blank imports.
- dot # Dot imports.
- standard # Standard packages.
- default # Imports that could not be matched to another section type.
- prefix(github.com/kyma-project/eventing-manager) # Imports with the specified prefix.
- blank # Blank imports.
- dot # Dot imports.
custom-order: true
skip-generated: true
importas:
Expand Down Expand Up @@ -109,24 +108,22 @@ linters-settings:
alias: eppapi
- pkg: github.com/kyma-project/eventing-publisher-proxy/pkg/nats
alias: eppnats
- pkg : github.com/kyma-project/eventing-manager/pkg/logger
- pkg: github.com/kyma-project/eventing-manager/pkg/logger
alias: emlogger
- pkg: github.com/kyma-project/eventing-manager/api/eventing/v1alpha1
alias: emeventingv1alpha1
- pkg: github.com/kyma-project/eventing-manager/api/eventing/v1alpha2
alias: emeventingv2alpha1
- pkg : github.com/cloudevents/sdk-go/v2
- pkg: github.com/cloudevents/sdk-go/v2
alias: ce
- pkg : github.com/cloudevents/sdk-go/v2/protocol/http
- pkg: github.com/cloudevents/sdk-go/v2/protocol/http
alias: cehttp
- pkg : github.com/cloudevents/sdk-go/v2/event
- pkg: github.com/cloudevents/sdk-go/v2/event
alias: ceevent
- pkg : github.com/cloudevents/sdk-go/v2/client
- pkg: github.com/cloudevents/sdk-go/v2/client
alias: ceclient
- pkg : github.com/kyma-project/kyma/components/central-application-gateway/pkg/apis/applicationconnector/v1alpha1
- pkg: github.com/kyma-project/kyma/components/central-application-gateway/pkg/apis/applicationconnector/v1alpha1
alias: kymaappconnv1alpha1



ireturn:
allow:
Expand All @@ -148,7 +145,7 @@ issues:
- funlen # Table driven unit and integration tests exceed function length by design
- maintidx # Table driven unit and integration tests exceed maintainability index by design
- linters:
- importas
- importas
text: has alias "" which is not part of config # Ignore false positives that emerged due to https://github.com/julz/importas/issues/15.
max-issues-per-linter: 0
max-same-issues: 0
Expand All @@ -157,4 +154,4 @@ output:
run:
timeout: 15m
skip-files:
- zz_generated.deepcopy.go
- zz_generated.deepcopy.go

0 comments on commit ae023cd

Please sign in to comment.