Commit fadf83f
committed
ci(lint): enable comprehensive Go linting and code quality checks
- Add .golangci.yml configuration file
- Enable various linters including asciicheck, dogsled, durationcheck, errcheck, errorlint, exportloopref, gci, gofmt, goimports, gosec, misspell, nakedret, nilerr, perfsprint, revive, testifylint, usestdlibvars, and wastedassign
- Configure gosec linter to exclude rule G402
- Configure perfsprint linter with specific settings for error handling, error formatting, integer conversion, sprintf optimization, and string concatenation
- Enable all settings for testifylint linter
Signed-off-by: appleboy <[email protected]>1 parent aa4ae84 commit fadf83f
1 file changed
+41
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 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 | + | |
0 commit comments