mirror of
https://github.com/fumiama/go-docx.git
synced 2026-06-05 07:40:24 +08:00
chore: make lint happy
This commit is contained in:
2
.github/workflows/pull.yml
vendored
2
.github/workflows/pull.yml
vendored
@@ -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
|
# 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
|
version: v1.60.1
|
||||||
|
|
||||||
|
verify: false # https://github.com/golangci/golangci-lint-action/issues/1163
|
||||||
|
|
||||||
# Optional: working directory, useful for monorepos
|
# Optional: working directory, useful for monorepos
|
||||||
# working-directory: somedir
|
# working-directory: somedir
|
||||||
|
|
||||||
|
|||||||
@@ -18,24 +18,24 @@ linters:
|
|||||||
fast: false
|
fast: false
|
||||||
enable:
|
enable:
|
||||||
- bodyclose
|
- bodyclose
|
||||||
- copyloopvar
|
|
||||||
#- depguard
|
#- depguard
|
||||||
- dogsled
|
- dogsled
|
||||||
|
- dupl
|
||||||
- errcheck
|
- errcheck
|
||||||
#- exportloopref
|
- copyloopvar
|
||||||
- exhaustive
|
- exhaustive
|
||||||
#- funlen
|
#- funlen
|
||||||
#- goconst
|
- goconst
|
||||||
- gocritic
|
- gocritic
|
||||||
#- gocyclo
|
- gocyclo
|
||||||
- gofmt
|
#- gofumpt
|
||||||
- goimports
|
#- goimports
|
||||||
- goprintffuncname
|
- goprintffuncname
|
||||||
#- gosec
|
#- gosec
|
||||||
- gosimple
|
- gosimple
|
||||||
- govet
|
- govet
|
||||||
- ineffassign
|
- ineffassign
|
||||||
#- misspell
|
- misspell
|
||||||
- nolintlint
|
- nolintlint
|
||||||
- rowserrcheck
|
- rowserrcheck
|
||||||
- staticcheck
|
- staticcheck
|
||||||
@@ -49,7 +49,6 @@ linters:
|
|||||||
- predeclared
|
- predeclared
|
||||||
- asciicheck
|
- asciicheck
|
||||||
- revive
|
- revive
|
||||||
- forbidigo
|
|
||||||
- makezero
|
- makezero
|
||||||
|
|
||||||
run:
|
run:
|
||||||
@@ -58,20 +57,18 @@ run:
|
|||||||
deadline: 5m
|
deadline: 5m
|
||||||
issues-exit-code: 1
|
issues-exit-code: 1
|
||||||
tests: false
|
tests: false
|
||||||
skip-dirs:
|
|
||||||
- order
|
|
||||||
go: '1.20'
|
|
||||||
|
|
||||||
# output configuration options
|
# output configuration options
|
||||||
output:
|
output:
|
||||||
format: "colored-line-number"
|
formats:
|
||||||
|
- format: "colored-line-number"
|
||||||
print-issued-lines: true
|
print-issued-lines: true
|
||||||
print-linter-name: true
|
print-linter-name: true
|
||||||
uniq-by-line: true
|
uniq-by-line: true
|
||||||
|
|
||||||
issues:
|
issues:
|
||||||
# Fix found issues (if it's supported by the linter)
|
# Fix found issues (if it's supported by the linter)
|
||||||
fix: true
|
fix: false
|
||||||
exclude-use-default: false
|
exclude-use-default: false
|
||||||
exclude:
|
exclude:
|
||||||
- "Error return value of .((os.)?std(out|err)..*|.*Close|.*Seek|.*Flush|os.Remove(All)?|.*print(f|ln)?|os.(Un)?Setenv). is not check"
|
- "Error return value of .((os.)?std(out|err)..*|.*Close|.*Seek|.*Flush|os.Remove(All)?|.*print(f|ln)?|os.(Un)?Setenv). is not check"
|
||||||
|
|||||||
Reference in New Issue
Block a user