Skip to content

Commit

Permalink
ci: disable nolintlint linter (#21707)
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandre Gaudreault <[email protected]>
  • Loading branch information
agaudreault authored Jan 29, 2025
1 parent b9f49df commit e147247
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ linters:
- importas
- ineffassign
- misspell
- nolintlint
# Disabled because of https://github.com/argoproj/argo-cd/issues/21705
# - nolintlint
- perfsprint
- revive
- staticcheck
Expand All @@ -29,12 +30,12 @@ linters:
- unparam
- unused
- usestdlibvars
- whitespace
- whitespace
linters-settings:
gocritic:
disabled-checks:
- appendAssign
- assignOp # Keep it disabled for readability
- assignOp # Keep it disabled for readability
- exitAfterDefer
- mapKey
- typeSwitchVar
Expand All @@ -49,23 +50,23 @@ linters-settings:
- github.com/imdario/mergo:
recommendations:
- dario.cat/mergo
reason: "`github.com/imdario/mergo` has been renamed."
reason: '`github.com/imdario/mergo` has been renamed.'
- github.com/pkg/errors:
recommendations:
- errors
importas:
alias:
- alias: jwtgo
- alias: jwtgo
pkg: github.com/golang-jwt/jwt/v5
- alias: appsv1
pkg: k8s.io/api/apps/v1
- alias: corev1
pkg: k8s.io/api/core/v1
- alias: rbacv1
pkg: k8s.io/api/rbac/v1
- alias: apierrors
- alias: apierrors
pkg: k8s.io/apimachinery/pkg/api/errors
- alias: metav1
- alias: metav1
pkg: k8s.io/apimachinery/pkg/apis/meta/v1
- alias: informersv1
pkg: k8s.io/client-go/informers/core/v1
Expand All @@ -92,15 +93,15 @@ linters-settings:
disabled: true
- name: context-as-argument
arguments:
- allowTypesBefore: "*testing.T,testing.TB"
- allowTypesBefore: '*testing.T,testing.TB'
- name: context-keys-type
disabled: true
- name: dot-imports
disabled: true
- name: duplicated-imports
- name: early-return
arguments:
- "preserveScope"
- 'preserveScope'
- name: empty-block
disabled: true
- name: error-naming
Expand All @@ -114,7 +115,7 @@ linters-settings:
- name: increment-decrement
- name: indent-error-flow
arguments:
- "preserveScope"
- 'preserveScope'
- name: modifies-parameter
- name: optimize-operands-order
- name: range
Expand All @@ -124,7 +125,7 @@ linters-settings:
- name: redundant-import-alias
- name: superfluous-else
arguments:
- "preserveScope"
- 'preserveScope'
- name: time-equal
- name: time-naming
disabled: true
Expand Down

0 comments on commit e147247

Please sign in to comment.