mirror of
https://github.com/hanzoai/dashscopego.git
synced 2026-11-02 22:21:03 +00:00
56 lines
1.3 KiB
YAML
56 lines
1.3 KiB
YAML
linters:
|
|
presets:
|
|
- bugs
|
|
- comment
|
|
- complexity
|
|
- error
|
|
- format
|
|
- import
|
|
- metalinter
|
|
- module
|
|
- performance
|
|
- sql
|
|
- style
|
|
- test
|
|
- unused
|
|
disable:
|
|
- gosmopolitan
|
|
- godox # We allow TODO lines.
|
|
- tagliatelle # As we're dealing with third parties we must accept snake case.
|
|
- wsl # We don't agree with wsl's style rules
|
|
- exhaustruct
|
|
- lll
|
|
- varnamelen
|
|
- nlreturn
|
|
- gomnd
|
|
- goerr113
|
|
- wrapcheck # TODO: we should probably enable this one (at least for new code).
|
|
- testpackage
|
|
- nolintlint # see https://github.com/golangci/golangci-lint/issues/3228.
|
|
- depguard # disabling temporarily
|
|
- ireturn # disabling temporarily
|
|
# - copyloopvar
|
|
|
|
linters-settings:
|
|
funlen:
|
|
lines: 90
|
|
depguard:
|
|
list-type: denylist
|
|
packages:
|
|
- github.com/samber/lo # Use exp packages or internal utilities instead.
|
|
additional-guards:
|
|
- list-type: denylist
|
|
include-go-root: false
|
|
packages:
|
|
- github.com/stretchr/testify
|
|
# Specify rules by which the linter ignores certain files for consideration.
|
|
ignore-file-rules:
|
|
- "**/*_test.go"
|
|
- "**/mock/**/*.go"
|
|
# run:
|
|
# skip-dirs:
|
|
# - 'exp'
|
|
|
|
issues:
|
|
exclude-dirs:
|
|
- exp |