-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.golang-ci.toml
36 lines (32 loc) · 1.35 KB
/
.golang-ci.toml
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
[output]
format = "colored-line-number"
[linters]
enable = [
"deadcode", # Finds unused code
"errcheck", # Detect unchecked errors
"gosimple", # Suggest code simplifications
"govet", # Reports suspicious constructs
"ineffassign", # Detects unused variable assignments
"staticcheck", # go vet on steroids
"structcheck", # Find unused struct fields
"typecheck", # Standard Go type checks
"unused", # Detect unused constants, variables, functions and types
"varcheck", # Find unused global variables and constants
"gocyclo", # or "cyclop", # Detect cyclomatic complexity
"goconst", # Detect repeated values that can be made constants
"gofumpt", # Or "gofmt", # Enforce standard formatting
"goimports", # Ensure standard import formatting/ordering
"misspell", # Fix spelling errors
"revive", # General purpose linter
"unconvert", # Detect unnecessary type conversions
"unparam", # Detect unused function parameters
"bodyclose", # Check whether HTTP response bodies are closed
"goerr113", # Enforce standard error handling practices
"depguard", # Forbid certain package imports
"dupl", # Detect duplicate code
"errchkjson", # some JSON-specific checks
"nakedret", # Detect naked returns
"tparallel", # Detects inappropriate use of t.Parallel()
]
[issues]
exclude-use-default = false