mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
6c394abb32
* test: add make commands and dependencies Signed-off-by: Francisco <francisco.moral@suse.com> * fix: fix issue on logic for using external dbs and dependencies Signed-off-by: Francisco <francisco.moral@suse.com> --------- Signed-off-by: Francisco <francisco.moral@suse.com>
80 lines
1.8 KiB
YAML
80 lines
1.8 KiB
YAML
linters:
|
|
enable:
|
|
- gofmt
|
|
- govet
|
|
- revive
|
|
- gosec
|
|
- megacheck
|
|
- misspell
|
|
- unparam
|
|
- exportloopref
|
|
- nlreturn
|
|
- nestif
|
|
- dupl
|
|
- gci
|
|
- ginkgolinter
|
|
|
|
linters-settings:
|
|
govet:
|
|
check-shadowing: true
|
|
check-tests: true
|
|
|
|
nestif:
|
|
min-complexity: 4
|
|
|
|
revive:
|
|
confidence: 0.8
|
|
severity: warning
|
|
ignore-generated-header: true
|
|
rules:
|
|
- name: line-length-limit
|
|
arguments: [100]
|
|
- name: cognitive-complexity
|
|
arguments: [10]
|
|
- name: empty-lines
|
|
- name: empty-block
|
|
- name: bare-return
|
|
- name: blank-imports
|
|
- name: confusing-naming
|
|
- name: confusing-results
|
|
- name: context-as-argument
|
|
- name: duplicated-imports
|
|
- name: early-return
|
|
- name: empty-block
|
|
- name: empty-lines
|
|
- name: error-naming
|
|
- name: error-return
|
|
- name: error-strings
|
|
- name: errorf
|
|
- name: exported
|
|
- name: flag-parameter
|
|
- name: get-return
|
|
- name: if-return
|
|
- name: increment-decrement
|
|
- name: indent-error-flow
|
|
- name: import-shadowing
|
|
- name: modifies-parameter
|
|
- name: modifies-value-receiver
|
|
- name: range
|
|
- name: range-val-in-closure
|
|
- name: range-val-address
|
|
- name: receiver-naming
|
|
- name: string-of-int
|
|
- name: struct-tag
|
|
- name: superfluous-else
|
|
- name: time-naming
|
|
- name: var-declaration
|
|
- name: unconditional-recursion
|
|
- name: unexported-naming
|
|
- name: unexported-return
|
|
- name: unhandled-error
|
|
arguments: ["fmt.Printf", "builder.WriteString"]
|
|
- name: unnecessary-stmt
|
|
- name: unreachable-code
|
|
- name: unused-parameter
|
|
- name: unused-receiver
|
|
|
|
issues:
|
|
exclude-rules:
|
|
- linters: [typecheck]
|
|
text: "command-line-arguments" |