mirror of
https://github.com/ko-build/ko.git
synced 2025-11-26 22:40:38 +02:00
@@ -1,35 +1,47 @@
|
|||||||
run:
|
version: "2"
|
||||||
timeout: 5m
|
|
||||||
|
|
||||||
issues:
|
|
||||||
exclude-rules:
|
|
||||||
- path: test # Excludes /test, *_test.go etc.
|
|
||||||
linters:
|
|
||||||
- gosec
|
|
||||||
|
|
||||||
linters:
|
linters:
|
||||||
enable:
|
enable:
|
||||||
- asciicheck
|
- asciicheck
|
||||||
- errorlint
|
- errorlint
|
||||||
- gofmt
|
|
||||||
- gosec
|
- gosec
|
||||||
- goimports
|
|
||||||
- importas
|
- importas
|
||||||
|
- misspell
|
||||||
- prealloc
|
- prealloc
|
||||||
- revive
|
- revive
|
||||||
- misspell
|
- staticcheck
|
||||||
- stylecheck
|
|
||||||
- tparallel
|
- tparallel
|
||||||
- unconvert
|
- unconvert
|
||||||
- unparam
|
- unparam
|
||||||
- whitespace
|
- whitespace
|
||||||
|
|
||||||
disable:
|
disable:
|
||||||
- errcheck
|
|
||||||
- depguard
|
- depguard
|
||||||
|
- errcheck
|
||||||
linters-settings:
|
settings:
|
||||||
gosec:
|
gosec:
|
||||||
excludes:
|
excludes:
|
||||||
# TODO: Check those example in pkg/caps/caps.go:131
|
- G115
|
||||||
- G115 # Potential integer overflow when converting between integer types
|
exclusions:
|
||||||
|
generated: lax
|
||||||
|
presets:
|
||||||
|
- comments
|
||||||
|
- common-false-positives
|
||||||
|
- legacy
|
||||||
|
- std-error-handling
|
||||||
|
rules:
|
||||||
|
- linters:
|
||||||
|
- gosec
|
||||||
|
path: test
|
||||||
|
paths:
|
||||||
|
- third_party$
|
||||||
|
- builtin$
|
||||||
|
- examples$
|
||||||
|
formatters:
|
||||||
|
enable:
|
||||||
|
- gofmt
|
||||||
|
- goimports
|
||||||
|
exclusions:
|
||||||
|
generated: lax
|
||||||
|
paths:
|
||||||
|
- third_party$
|
||||||
|
- builtin$
|
||||||
|
- examples$
|
||||||
|
|||||||
Reference in New Issue
Block a user