* fix: fix and adjust tests to new api * fix: add missing testdata file * fix: add missing docs * fix: ignore docs flow for now * fix: fix linting
83 lines
1.5 KiB
YAML
83 lines
1.5 KiB
YAML
version: "2"
|
|
run:
|
|
concurrency: 4
|
|
linters:
|
|
enable:
|
|
- bodyclose
|
|
- depguard
|
|
- errorlint
|
|
- forcetypeassert
|
|
- gochecknoinits
|
|
- gocritic
|
|
- gosec
|
|
- misspell
|
|
- nakedret
|
|
- revive
|
|
- sqlclosecheck
|
|
- wastedassign
|
|
disable:
|
|
- noctx
|
|
- unparam
|
|
settings:
|
|
depguard:
|
|
rules:
|
|
main:
|
|
list-mode: lax
|
|
deny:
|
|
- pkg: github.com/stretchr/testify
|
|
desc: Do not use a testing framework
|
|
gocritic:
|
|
disabled-checks:
|
|
- wrapperFunc
|
|
- typeDefFirst
|
|
- ifElseChain
|
|
- dupImport
|
|
- hugeParam
|
|
enabled-tags:
|
|
- performance
|
|
- style
|
|
- experimental
|
|
gosec:
|
|
excludes:
|
|
- G104
|
|
- G102
|
|
- G304
|
|
- G307
|
|
misspell:
|
|
locale: US
|
|
nakedret:
|
|
max-func-lines: 0
|
|
revive:
|
|
severity: error
|
|
rules:
|
|
- name: errorf
|
|
- name: context-as-argument
|
|
- name: error-return
|
|
- name: increment-decrement
|
|
- name: indent-error-flow
|
|
- name: superfluous-else
|
|
- name: unused-parameter
|
|
- name: unreachable-code
|
|
- name: atomic
|
|
- name: empty-lines
|
|
- name: early-return
|
|
exclusions:
|
|
generated: lax
|
|
paths:
|
|
- third_party$
|
|
- builtin$
|
|
- examples$
|
|
formatters:
|
|
enable:
|
|
- gofmt
|
|
- goimports
|
|
settings:
|
|
goimports:
|
|
local-prefixes:
|
|
- github.com/freiheit-com/nmww
|
|
exclusions:
|
|
generated: lax
|
|
paths:
|
|
- third_party$
|
|
- builtin$
|
|
- examples$
|