mirror of
https://github.com/coredns/coredns.git
synced 2025-11-02 18:23:25 -05:00
perf: avoid string concatenation in loops (#7572)
* perf: avoid string concatenation in loops Apply perfpsrint linter Signed-off-by: Philippe Antoine <contact@catenacyber.fr> * ci: enable perfsprint Signed-off-by: Philippe Antoine <contact@catenacyber.fr> --------- Signed-off-by: Philippe Antoine <contact@catenacyber.fr>
This commit is contained in:
@@ -15,6 +15,7 @@ linters:
|
||||
- intrange
|
||||
- nakedret
|
||||
- nolintlint
|
||||
- perfsprint
|
||||
- prealloc
|
||||
- protogetter
|
||||
- staticcheck
|
||||
@@ -31,10 +32,17 @@ linters:
|
||||
- common-false-positives
|
||||
- legacy
|
||||
- std-error-handling
|
||||
rules:
|
||||
# Exclude some linters from running on tests files.
|
||||
- path: _test\.go
|
||||
linters:
|
||||
- perfsprint
|
||||
settings:
|
||||
govet:
|
||||
enable:
|
||||
- nilness
|
||||
perfsprint:
|
||||
error-format: false
|
||||
revive:
|
||||
rules:
|
||||
- name: blank-imports
|
||||
|
||||
Reference in New Issue
Block a user