Skip to content

Commit 0cfea7e

Browse files
committed
Update .golangci.yml for linting configuration
- Removed Go version specification to allow flexibility. - Replaced 'unused' linter with 'deadcode' for better code analysis. - Adjusted linters settings for 'gosec' and 'errcheck' to maintain existing exclusions while improving clarity.
1 parent 09ec106 commit 0cfea7e

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

.golangci.yml

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,29 @@
11
run:
22
timeout: 5m
3-
go: "1.22"
43

54
linters:
65
enable:
76
- errcheck
87
- govet
98
- staticcheck
109
- gofmt
11-
- unused
10+
- deadcode
1211
- gosec
1312
- gocritic
1413
- misspell
1514
- unconvert
16-
17-
linters-settings:
18-
gosec:
19-
excludes:
20-
# G304: File path provided as taint input — expected for a wordlist tool
21-
- G304
22-
errcheck:
23-
# These write to stdout/files in hot paths; errors are intentionally ignored
24-
exclude-functions:
25-
- fmt.Printf
26-
- fmt.Fprintln
27-
- fmt.Fprintf
28-
- fmt.Println
15+
settings:
16+
gosec:
17+
excludes:
18+
# G304: File path provided as taint input — expected for a wordlist tool
19+
- G304
20+
errcheck:
21+
# These write to stdout/files in hot paths; errors are intentionally ignored
22+
exclude-functions:
23+
- fmt.Printf
24+
- fmt.Fprintln
25+
- fmt.Fprintf
26+
- fmt.Println
2927

3028
issues:
3129
exclude-rules:

0 commit comments

Comments
 (0)