forked from nephio-project/nephio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
31 lines (28 loc) · 1.05 KB
/
.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
run:
timeout: 10m
issues:
exclude-dirs:
- "vendor"
exclude-files:
- ".*\\_test.go$"
linters:
# refer https://golangci-lint.run/usage/linters/
disable-all: true
enable:
# errcheck is a program for checking for unchecked errors in Go code. These unchecked errors can be critical bugs in some cases
- errcheck
# checks whether code was gofmt-ed. By default this tool runs with -s option to check for code simplification
- gofmt
# Linter for Go source code that specializes in simplifying code
- gosimple
# Vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string
- govet
# Detects when assignments to existing variables are not used
- ineffassign
# Checks for misuse of Sprintf to construct a host with port in a URL.
- nosprintfhostport
- staticcheck
# Like the front-end of a Go compiler, parses and type-checks Go code
- typecheck
# Checks Go code for unused constants, variables, functions and types
- unused