forked from RHEnVision/provisioning-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
42 lines (41 loc) · 838 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
41
42
---
# https://golangci-lint.run/usage/configuration/
run:
go: '1.19'
timeout: 5m
linters:
presets:
- bugs
- error
- performance
- sql
- module
- format
- import
enable:
- predeclared
disable:
- maligned # deprecated by fieldalignment
- scopelint # deprecated by exportloopref
- gci # too strict
- contextcheck # too restrictive
- depguard # too verbose
- tagalign # cleanenv is unreadable
- exhaustive
linters-settings:
govet:
check-shadowing: true
gosec:
excludes:
- G112 # slowloris attack - TODO (easyfix)
issues:
exclude-rules:
# Makes easier to write test code.
- path: '(.+)_test\.go'
linters:
- forcetypeassert
# Exclude generated files.
- path: \.gen\.go
linters:
- typecheck
- errcheck