1
0
mirror of https://github.com/fumiama/go-onebot-agent.git synced 2026-06-26 23:20:24 +08:00

doc: add more docs

This commit is contained in:
源文雨
2025-09-21 14:52:52 +08:00
parent 6f4ee04e55
commit fd19fda4fd
4 changed files with 19 additions and 5 deletions

View File

@@ -1,11 +1,15 @@
linters-settings:
errcheck:
ignore: fmt:.*,io/ioutil:^Read.*
ignoretests: true
goimports:
local-prefixes: github.com/fumiama/go-onebot-agent
forbidigo:
# Forbid the following identifiers
forbid:
- ^fmt\.Errorf$ # consider errors.Errorf in github.com/pkg/errors
linters:
# please, do not use `enable-all`: it's deprecated and will be removed soon.
# inverted configuration with `enable-all` and `disable` is not scalable during updates of golangci-lint
@@ -46,7 +50,6 @@ linters:
- forbidigo
- makezero
run:
# default concurrency is a available CPU number.
# concurrency: 4 # explicitly omit this value to fully utilize available resources.
@@ -66,3 +69,7 @@ output:
issues:
# Fix found issues (if it's supported by the linter)
fix: true
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"
- 'identifier ".*" contain non-ASCII character: U\+.*'