-
Notifications
You must be signed in to change notification settings - Fork 14
/
.golangci.yml
40 lines (35 loc) · 954 Bytes
/
.golangci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Copyright (c) Mondoo, Inc.
# SPDX-License-Identifier: BUSL-1.1
# See https://golangci-lint.run/usage/configuration/ for configuration options
run:
timeout: 5m
skip-dirs:
skip-files:
- ".*\\.pb\\.go$"
- ".*\\.lr\\.go$"
modules-download-mode: readonly
linters:
disable-all: true
enable:
- gofmt
- depguard
# deactivated for now since its slow in github actions
# - govet
linters-settings:
gofmt:
simplify: false
govet:
# enable or disable analyzers by name
# run `go tool vet help` to see all analyzers
enable:
- structtag
- lostcancel
disable-all: true
depguard:
rules:
denied-packages:
deny:
- pkg: "github.com/pkg/errors"
desc: "no longer maintained; use github.com/cockroachdb/errors instead"
- pkg: "github.com/mitchellh/mapstructure"
desc: "no longer maintained; use github.com/go-viper/mapstructure/v2 instead"