forked from symfony-cli/symfony-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.golangci.yml
More file actions
46 lines (43 loc) · 1.27 KB
/
.golangci.yml
File metadata and controls
46 lines (43 loc) · 1.27 KB
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
version: "2"
run:
issues-exit-code: 1
formatters:
enable:
- gofmt
- gci
linters:
enable:
- wrapcheck
settings:
wrapcheck:
ignore-package-globs:
# We already make sure your own packages wrap errors properly
- github.com/symfony-cli/*
errcheck:
exclude-functions:
- github.com/symfony-cli/terminal.Print
- github.com/symfony-cli/terminal.Printf
- github.com/symfony-cli/terminal.Println
- github.com/symfony-cli/terminal.Printfln
- github.com/symfony-cli/terminal.Eprint
- github.com/symfony-cli/terminal.Eprintf
- github.com/symfony-cli/terminal.Eprintln
- github.com/symfony-cli/terminal.Eprintfln
- github.com/symfony-cli/terminal.Eprint
- github.com/symfony-cli/terminal.SetLogLevel
- fmt.Fprintln
- fmt.Fprintf
- fmt.Fprint
exclusions:
presets:
- std-error-handling
- common-false-positives
rules:
- path: _test\.go
linters:
- errcheck
text: "(?i)Error return value of .(os\\.(Chdir|Rename)|io\\.Copy). is not checked"
- path: _test\.go
linters:
- errcheck
text: "(?i)Error return value of .flags\\.Set. is not checked"