mirror of
https://github.com/OJ/gobuster.git
synced 2025-09-23 06:37:40 +02:00
182 lines
4.2 KiB
YAML
182 lines
4.2 KiB
YAML
# based on https://gist.github.com/maratori/47a4d00457a92aa426dbd48a18776322
|
|
version: "2"
|
|
run:
|
|
relative-path-mode: gomod
|
|
linters:
|
|
default: none
|
|
enable:
|
|
- asasalint
|
|
- asciicheck
|
|
- bidichk
|
|
- bodyclose
|
|
- canonicalheader
|
|
- copyloopvar
|
|
- depguard
|
|
- durationcheck
|
|
- errcheck
|
|
- errname
|
|
- errorlint
|
|
- exhaustive
|
|
- exptostd
|
|
- fatcontext
|
|
- forbidigo
|
|
- gocheckcompilerdirectives
|
|
- gochecknoinits
|
|
- gochecksumtype
|
|
- goconst
|
|
- gocritic
|
|
- gomoddirectives
|
|
- goprintffuncname
|
|
- gosec
|
|
- govet
|
|
- iface
|
|
- ineffassign
|
|
- intrange
|
|
- loggercheck
|
|
- makezero
|
|
- mirror
|
|
- musttag
|
|
- nakedret
|
|
- nilerr
|
|
- nilnesserr
|
|
- nilnil
|
|
- noctx
|
|
- nonamedreturns
|
|
- nosprintfhostport
|
|
- perfsprint
|
|
- predeclared
|
|
- promlinter
|
|
- protogetter
|
|
- recvcheck
|
|
- revive
|
|
- rowserrcheck
|
|
- sloglint
|
|
- spancheck
|
|
- sqlclosecheck
|
|
- staticcheck
|
|
- testableexamples
|
|
- testifylint
|
|
- tparallel
|
|
- unconvert
|
|
- unparam
|
|
- unused
|
|
- usestdlibvars
|
|
- usetesting
|
|
- wastedassign
|
|
- whitespace
|
|
settings:
|
|
depguard:
|
|
rules:
|
|
deprecated:
|
|
files:
|
|
- $all
|
|
deny:
|
|
- pkg: github.com/golang/protobuf
|
|
desc: Use google.golang.org/protobuf instead, see https://developers.google.com/protocol-buffers/docs/reference/go/faq#modules
|
|
- pkg: github.com/satori/go.uuid
|
|
desc: Use github.com/google/uuid instead, satori's package is not maintained
|
|
- pkg: github.com/gofrs/uuid$
|
|
desc: Use github.com/gofrs/uuid/v5 or later, it was not a go module before v5
|
|
non-main files:
|
|
files:
|
|
- "!**/main.go"
|
|
deny:
|
|
- pkg: log$
|
|
desc: Use log/slog instead, see https://go.dev/blog/slog
|
|
non-test files:
|
|
files:
|
|
- "!$test"
|
|
deny:
|
|
- pkg: math/rand$
|
|
desc: Use math/rand/v2 instead, see https://go.dev/blog/randv2
|
|
errcheck:
|
|
check-type-assertions: true
|
|
exhaustive:
|
|
check:
|
|
- switch
|
|
- map
|
|
exhaustruct:
|
|
exclude:
|
|
- ^net/http.Client$
|
|
- ^net/http.Cookie$
|
|
- ^net/http.Request$
|
|
- ^net/http.Response$
|
|
- ^net/http.Server$
|
|
- ^net/http.Transport$
|
|
- ^net/url.URL$
|
|
- ^os/exec.Cmd$
|
|
- ^reflect.StructField$
|
|
- ^github.com/Shopify/sarama.Config$
|
|
- ^github.com/Shopify/sarama.ProducerMessage$
|
|
- ^github.com/mitchellh/mapstructure.DecoderConfig$
|
|
- ^github.com/prometheus/client_golang/.+Opts$
|
|
- ^github.com/spf13/cobra.Command$
|
|
- ^github.com/spf13/cobra.CompletionOptions$
|
|
- ^github.com/stretchr/testify/mock.Mock$
|
|
- ^github.com/testcontainers/testcontainers-go.+Request$
|
|
- ^github.com/testcontainers/testcontainers-go.FromDockerfile$
|
|
- ^golang.org/x/tools/go/analysis.Analyzer$
|
|
- ^google.golang.org/protobuf/.+Options$
|
|
- ^gopkg.in/yaml.v3.Node$
|
|
gocognit:
|
|
min-complexity: 20
|
|
gochecksumtype:
|
|
default-signifies-exhaustive: false
|
|
gocritic:
|
|
settings:
|
|
captLocal:
|
|
paramsOnly: false
|
|
underef:
|
|
skipRecvDeref: false
|
|
govet:
|
|
disable:
|
|
- fieldalignment
|
|
- shadow
|
|
enable-all: true
|
|
inamedparam:
|
|
skip-single-param: true
|
|
perfsprint:
|
|
strconcat: false
|
|
rowserrcheck:
|
|
packages:
|
|
- github.com/jmoiron/sqlx
|
|
sloglint:
|
|
no-global: all
|
|
context: ""
|
|
usetesting:
|
|
os-temp-dir: true
|
|
exclusions:
|
|
generated: lax
|
|
presets:
|
|
- comments
|
|
- common-false-positives
|
|
- legacy
|
|
- std-error-handling
|
|
rules:
|
|
- linters:
|
|
- gocritic
|
|
source: //noinspection
|
|
- linters:
|
|
- bodyclose
|
|
- errcheck
|
|
- goconst
|
|
- gosec
|
|
- noctx
|
|
- wrapcheck
|
|
path: _test\.go
|
|
paths:
|
|
- third_party$
|
|
- builtin$
|
|
- examples$
|
|
issues:
|
|
max-same-issues: 50
|
|
formatters:
|
|
enable:
|
|
- goimports
|
|
exclusions:
|
|
generated: lax
|
|
paths:
|
|
- third_party$
|
|
- builtin$
|
|
- examples$
|