fix: fix ci tool (#1803)

* fix: fix ci tool
pull/1808/head
haiyux 3 years ago committed by GitHub
parent 34d0cccefd
commit 86b8b6c366
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      .golangci.yml
  2. 4
      contrib/config/apollo/watcher.go
  3. 1
      hack/.lintcheck_failures

@ -57,10 +57,11 @@ linters-settings:
lll:
line-length: 160
gomnd:
settings:
mnd:
# don't include the "operation", "argument" and "assign"
checks: case,condition,return
# don't include the "operation", "argument" and "assign"
checks:
- case
- condition
- return
goconst:
ignore-tests: true
gocyclo:

@ -21,9 +21,7 @@ type customChangeListener struct {
logger log.Logger
}
func (c *customChangeListener) onChange(
namespace string, changes map[string]*storage.ConfigChange,
) []*config.KeyValue {
func (c *customChangeListener) onChange(namespace string, changes map[string]*storage.ConfigChange) []*config.KeyValue {
kv := make([]*config.KeyValue, 0, 2)
next := make(map[string]interface{})

@ -1,2 +1 @@
./contrib/config/apollo

Loading…
Cancel
Save