1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-04 12:06:45 +00:00

fix: golangci-lint config

This commit is contained in:
Oleksandr Redko
2026-01-08 10:14:07 +02:00
parent 5eb2edf1cd
commit f1de7ffd18
2 changed files with 28 additions and 23 deletions

View File

@@ -1,7 +1,7 @@
# golangci-lint configuration for Mole
# https://golangci-lint.run/usage/configuration/
version: 2
version: "2"
run:
timeout: 5m
@@ -17,26 +17,27 @@ linters:
- ineffassign
- unused
linters-settings:
govet:
enable-all: true
disable:
- fieldalignment # struct field alignment optimization is noisy
errcheck:
exclude-functions:
- (io.Closer).Close
- (*os/exec.Cmd).Run
- (*os/exec.Cmd).Start
staticcheck:
checks: ["all", "-QF1003", "-SA9003"]
settings:
govet:
enable-all: true
disable:
- shadow
- fieldalignment # struct field alignment optimization is noisy
errcheck:
exclude-functions:
- (io.Closer).Close
- (*os/exec.Cmd).Run
- (*os/exec.Cmd).Start
staticcheck:
checks: ["all", "-QF1003", "-SA9003"]
issues:
exclude-rules:
# Ignore certain patterns in test files
- path: _test\.go
linters:
- errcheck
# Ignore errors from os.Remove in cleanup code
- text: "os.Remove"
linters:
- errcheck
exclusions:
rules:
# Ignore certain patterns in test files
- path: _test\.go
linters:
- errcheck
# Ignore errors from os.Remove in cleanup code
- text: "os.Remove"
linters:
- errcheck