1
0
mirror of https://github.com/fumiama/go-docx.git synced 2026-06-04 23:30:25 +08:00

chore: make lint happy

This commit is contained in:
源文雨
2025-05-06 17:40:20 +09:00
parent bcb49d9c62
commit 4dea62ceaa
2 changed files with 12 additions and 13 deletions

View File

@@ -19,6 +19,8 @@ jobs:
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
version: v1.60.1
verify: false # https://github.com/golangci/golangci-lint-action/issues/1163
# Optional: working directory, useful for monorepos
# working-directory: somedir

View File

@@ -18,24 +18,24 @@ linters:
fast: false
enable:
- bodyclose
- copyloopvar
#- depguard
- dogsled
- dupl
- errcheck
#- exportloopref
- copyloopvar
- exhaustive
#- funlen
#- goconst
- goconst
- gocritic
#- gocyclo
- gofmt
- goimports
- gocyclo
#- gofumpt
#- goimports
- goprintffuncname
#- gosec
- gosimple
- govet
- ineffassign
#- misspell
- misspell
- nolintlint
- rowserrcheck
- staticcheck
@@ -49,7 +49,6 @@ linters:
- predeclared
- asciicheck
- revive
- forbidigo
- makezero
run:
@@ -58,20 +57,18 @@ run:
deadline: 5m
issues-exit-code: 1
tests: false
skip-dirs:
- order
go: '1.20'
# output configuration options
output:
format: "colored-line-number"
formats:
- format: "colored-line-number"
print-issued-lines: true
print-linter-name: true
uniq-by-line: true
issues:
# Fix found issues (if it's supported by the linter)
fix: true
fix: false
exclude-use-default: false
exclude:
- "Error return value of .((os.)?std(out|err)..*|.*Close|.*Seek|.*Flush|os.Remove(All)?|.*print(f|ln)?|os.(Un)?Setenv). is not check"