coredns/plugin
Miek Gieben dbd1c047cb
Run gostaticheck (#3325)
* Run gostaticheck

Run gostaticcheck on the codebase and fix almost all flagged items.

Only keep

* coremain/run.go:192:2: var appVersion is unused (U1000)
* plugin/chaos/setup.go:54:3: the surrounding loop is unconditionally terminated (SA4004)
* plugin/etcd/setup.go:103:3: the surrounding loop is unconditionally terminated (SA4004)
* plugin/pkg/replacer/replacer.go:274:13: argument should be pointer-like to avoid allocations (SA6002)
* plugin/route53/setup.go:124:28: session.New is deprecated: Use NewSession functions to create sessions instead. NewSession has the same functionality as New except an error can be returned when the func is called instead of waiting to receive an error until a request is made.  (SA1019)
* test/grpc_test.go:25:69: grpc.WithTimeout is deprecated: use DialContext and context.WithTimeout instead.  Will be supported throughout 1.x.  (SA1019)

The first one isn't true, as this is set via ldflags. The rest is
minor. The deprecation should be fixed at some point; I'll file some
issues.

Signed-off-by: Miek Gieben <miek@miek.nl>

* Make sure to plug in the plugins

import the plugins, that file that did this was removed, put it in the
reload test as this requires an almost complete coredns server.

Signed-off-by: Miek Gieben <miek@miek.nl>
2019-10-01 07:41:29 +01:00
..
acl Run gostaticheck (#3325) 2019-10-01 07:41:29 +01:00
any all: simply registering plugins (#3287) 2019-09-20 08:02:30 +01:00
auto Run gostaticheck (#3325) 2019-10-01 07:41:29 +01:00
autopath fix mis-spelling (#3310) 2019-09-26 13:19:45 +01:00
azure all: simply registering plugins (#3287) 2019-09-20 08:02:30 +01:00
bind plugin register (#3321) 2019-09-28 10:40:43 +01:00
cache fix mis-spelling (#3310) 2019-09-26 13:19:45 +01:00
cancel Run gostaticheck (#3325) 2019-10-01 07:41:29 +01:00
chaos all: simply registering plugins (#3287) 2019-09-20 08:02:30 +01:00
clouddns all: simply registering plugins (#3287) 2019-09-20 08:02:30 +01:00
debug plugin register (#3321) 2019-09-28 10:40:43 +01:00
deprecated all: simply registering plugins (#3287) 2019-09-20 08:02:30 +01:00
dnssec Run gostaticheck (#3325) 2019-10-01 07:41:29 +01:00
dnstap Run gostaticheck (#3325) 2019-10-01 07:41:29 +01:00
erratic cleanup: remove redundant return statement (#3297) 2019-09-23 14:40:14 +01:00
errors all: simply registering plugins (#3287) 2019-09-20 08:02:30 +01:00
etcd Run gostaticheck (#3325) 2019-10-01 07:41:29 +01:00
file plugin: cleanup code based on staticcheck warnings (#3302) 2019-09-25 13:23:43 +01:00
forward Run gostaticheck (#3325) 2019-10-01 07:41:29 +01:00
grpc plugins: calling Dispenser itself is a mistake (#3323) 2019-09-28 10:41:12 +01:00
health cleanup: remove redundant return statement (#3297) 2019-09-23 14:40:14 +01:00
hosts plugin: cleanup code based on staticcheck warnings (#3302) 2019-09-25 13:23:43 +01:00
import Making README consistent with other plugins' READMEs (#3248) 2019-09-08 08:25:17 +01:00
k8s_external cleanup: remove redundant return statement (#3297) 2019-09-23 14:40:14 +01:00
kubernetes cleanup code by lint (#3312) 2019-09-27 11:10:34 +01:00
loadbalance fix mis-spelling (#3310) 2019-09-26 13:19:45 +01:00
log all: simply registering plugins (#3287) 2019-09-20 08:02:30 +01:00
loop all: simply registering plugins (#3287) 2019-09-20 08:02:30 +01:00
metadata all: simply registering plugins (#3287) 2019-09-20 08:02:30 +01:00
metrics all: simply registering plugins (#3287) 2019-09-20 08:02:30 +01:00
nsid all: simply registering plugins (#3287) 2019-09-20 08:02:30 +01:00
pkg pkg/log: remove timestamp (#3218) 2019-08-28 09:41:11 -04:00
pprof all: simply registering plugins (#3287) 2019-09-20 08:02:30 +01:00
ready fix mis-spelling (#3310) 2019-09-26 13:19:45 +01:00
reload plugin/reload: reflow documentation (#3313) 2019-09-27 11:10:47 +01:00
rewrite Run gostaticheck (#3325) 2019-10-01 07:41:29 +01:00
root plugin register (#3321) 2019-09-28 10:40:43 +01:00
route53 all: simply registering plugins (#3287) 2019-09-20 08:02:30 +01:00
secondary fix mis-spelling (#3310) 2019-09-26 13:19:45 +01:00
sign all: simply registering plugins (#3287) 2019-09-20 08:02:30 +01:00
template Run gostaticheck (#3325) 2019-10-01 07:41:29 +01:00
test cleanup: remove redundant return statement (#3297) 2019-09-23 14:40:14 +01:00
tls plugin register (#3321) 2019-09-28 10:40:43 +01:00
trace Run gostaticheck (#3325) 2019-10-01 07:41:29 +01:00
whoami all: simply registering plugins (#3287) 2019-09-20 08:02:30 +01:00
backend.go Remove context.Context from request.Request (#2726) 2019-03-26 14:37:30 +00:00
backend_lookup.go plugin/kubernetes: Handle multiple local IPs and bind (#3208) 2019-09-05 09:07:55 -04:00
done.go go report card fixes (#3182) 2019-08-24 18:14:25 +00:00
log_test.go Clean up tests logging (#1979) 2018-07-19 16:23:06 +01:00
normalize.go typo fixes (#3169) 2019-08-21 16:08:55 -04:00
normalize_test.go Stop importing testing in the main binary (#2479) 2019-01-19 11:23:13 +00:00
plugin.go typo fixes (#3169) 2019-08-21 16:08:55 -04:00
register.go all: simply registering plugins (#3287) 2019-09-20 08:02:30 +01:00