Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 28 additions & 38 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,60 +1,50 @@
# This file contains all available configuration options
# with their default values.

# options for analysis running
run:

# output configuration options
output:
# colored-line-number|line-number|json|tab|checkstyle|code-climate, default is "colored-line-number"
format: colored-line-number

linters-settings:
funlen:
lines: 150
statements: 120
dupl:
threshold: 200
gocognit:
min-complexity: 32

version: "2"
linters:
enable:
- bodyclose
- dogsled
- errcheck
- exportloopref
- funlen
- gochecknoinits
- gocognit
- goconst
- gocritic
- gocyclo
- gofmt
- goimports
- gosec
- gosimple
- govet
- ineffassign
- misspell
- nakedret
- prealloc
- revive
- staticcheck
- stylecheck
- unconvert
- unparam
- whitespace

settings:
dupl:
threshold: 200
funlen:
lines: 150
statements: 120
gocognit:
min-complexity: 32
gosec:
excludes:
- G115
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$
issues:
# Independently from option `exclude` we use default exclude patterns,
# it can be disabled by this option. To list all
# excluded by default patterns execute `golangci-lint run --help`.
# Default value for this option is true.
exclude-use-default: false

# Maximum issues count per one linter. Set to 0 to disable. Default is 50.
max-issues-per-linter: 0

# Maximum count of issues with the same text. Set to 0 to disable. Default is 3.
max-same-issues: 0
formatters:
enable:
- gofmt
- goimports
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$