From c2c10ff747510a798d18c2d0406d7a358d5ca7d8 Mon Sep 17 00:00:00 2001 From: Marcus Young Date: Thu, 25 Aug 2022 13:58:40 -0500 Subject: [PATCH] Use revive instead of golint --- .golangci.yml | 2 +- main.go | 2 +- sider.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 6353b22..42e2361 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,6 +1,6 @@ linters: enable: - - golint + - revive issues: exclude: - "Error return value of .* is not checked" diff --git a/main.go b/main.go index d7d2fcf..be9fbc8 100644 --- a/main.go +++ b/main.go @@ -106,7 +106,7 @@ func callEmitter(funcName string, payload tilt.Payload, emitterConfig interface{ in := make([]reflect.Value, 2) in[0] = reflect.ValueOf(payload) in[1] = reflect.ValueOf(emitterConfig) - var res []reflect.Value = f.Call(in) + var res = f.Call(in) result = res[0].Interface() return } diff --git a/sider.yml b/sider.yml index fea293a..77dc443 100644 --- a/sider.yml +++ b/sider.yml @@ -5,7 +5,7 @@ linter: target: ./... config: .golangci.yml enable: - - golint + - revive - gosec fast: true no-config: false