-
Notifications
You must be signed in to change notification settings - Fork 13
/
.golangci.yml
48 lines (42 loc) · 1.17 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# https://golangci-lint.run/usage/configuration/
run:
concurrency: 4
timeout: 15m
# include test files or not, default is true
tests: true
linters-settings:
gofmt:
# simplify code: gofmt with `-s` option, true by default
simplify: true
goimports:
# put imports beginning with prefix after 3rd-party packages;
# it's a comma-separated list of prefixes
local-prefixes: lepton.ai/lepton
misspell:
# Correct spellings using locale preferences for US or UK.
# Default is to use a neutral variety of English.
# Setting locale to US will correct the British spelling of 'colour' to 'color'.
locale: US
custom:
# ref. https://github.com/uber-go/nilaway
nilaway:
type: "module"
description: Static analysis tool to detect potential nil panics in Go code.
settings:
include-pkgs: "github.com/leptonai/gpud"
exclude-pkgs: "github.com/leptonai/gpud/third_party"
experimental-anonymous-function: "true"
linters:
fast: false
disable-all: true
enable:
- errcheck
- gosimple
- govet
- ineffassign
- staticcheck
- unused
- gofmt
- goimports
- misspell
- unconvert