mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-18 08:15:16 +01:00
57 lines
894 B
YAML
57 lines
894 B
YAML
|
linters-settings:
|
||
|
gofmt:
|
||
|
# Simplify code: gofmt with `-s` option.
|
||
|
# Default: true
|
||
|
simplify: false
|
||
|
misspell:
|
||
|
locale: US,UK
|
||
|
|
||
|
linters:
|
||
|
disable-all: true
|
||
|
enable:
|
||
|
- gofmt
|
||
|
- goheader
|
||
|
- misspell
|
||
|
# - typecheck
|
||
|
# - dogsled
|
||
|
# - dupl
|
||
|
# - depguard
|
||
|
# - funlen
|
||
|
# - goconst
|
||
|
# - gocritic
|
||
|
# - gocyclo
|
||
|
# - goimports
|
||
|
# - goprintffuncname
|
||
|
# - ineffassign
|
||
|
# - nakedret
|
||
|
# - nolintlint
|
||
|
# - revive
|
||
|
# - whitespace
|
||
|
# - bodyclose
|
||
|
# - deadcode
|
||
|
# - errcheck
|
||
|
# - gosec
|
||
|
# - gosimple
|
||
|
# - govet
|
||
|
# - noctx
|
||
|
# - rowserrcheck
|
||
|
# - staticcheck
|
||
|
# - structcheck
|
||
|
# - stylecheck
|
||
|
# - unconvert
|
||
|
# - unparam
|
||
|
# - unused
|
||
|
# - varcheck
|
||
|
|
||
|
run:
|
||
|
skip-files:
|
||
|
- ".*_test.go"
|
||
|
- ".*test.go"
|
||
|
skip-dir:
|
||
|
- "./testing/"
|
||
|
timeout: 5m
|
||
|
|
||
|
issue:
|
||
|
max-same-issues: 0
|
||
|
max-per-linter: 0
|