-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.golangci.yml
More file actions
35 lines (30 loc) · 890 Bytes
/
.golangci.yml
File metadata and controls
35 lines (30 loc) · 890 Bytes
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
# golangci-lint configuration file
# More information: https://golangci-lint.run/usage/configuration/
run:
timeout: 5m
# Removed modules-download-mode to allow flexible module operations
linters:
enable:
- govet # Reports suspicious constructs
- errcheck # Check for unhandled errors
- gosimple # Simplify your Go code
- staticcheck # Comprehensive static analysis
- ineffassign # Detects ineffective assignments
- unused # Finds unused variables
# Settings for specific linters
linters-settings:
errcheck:
check-type-assertions: true
check-blank: false
issues:
# Exclude specific warning types
exclude-rules:
- linters:
- gocyclo
text: "(?i)cyclomatic complexity"
exclude-use-default: false
# Files and folders to ignore
skip-dirs:
- vendor
- build
- tmp