From 2879447b477825ab35b387f23b4001eef7dc0bf1 Mon Sep 17 00:00:00 2001 From: Ben Schumacher Date: Fri, 7 Oct 2022 20:24:44 +0200 Subject: [PATCH] Update orb version (#170) --- .circleci/config.yml | 2 +- .golangci.yml | 12 +----------- server/plugin_test.go | 4 ++-- 3 files changed, 4 insertions(+), 14 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 23c8537..3ac9a09 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,7 +1,7 @@ version: 2.1 orbs: - plugin-ci: mattermost/plugin-ci@0.1.6 + plugin-ci: mattermost/plugin-ci@0.1.12 workflows: version: 2 diff --git a/.golangci.yml b/.golangci.yml index 231873a..5682ada 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -7,8 +7,6 @@ linters-settings: simplify: true goimports: local-prefixes: github.com/mattermost/mattermost-starter-template - golint: - min-confidence: 0 govet: check-shadowing: true enable-all: true @@ -21,34 +19,26 @@ linters: disable-all: true enable: - bodyclose - - deadcode - errcheck - gocritic - gofmt - goimports - - golint - gosec - gosimple - govet - ineffassign - misspell - nakedret + - revive - staticcheck - - structcheck - stylecheck - typecheck - unconvert - unused - - varcheck - whitespace issues: exclude-rules: - - path: server/manifest.go - linters: - - deadcode - - unused - - varcheck - path: server/configuration.go linters: - unused diff --git a/server/plugin_test.go b/server/plugin_test.go index 1d3a474..9f35579 100644 --- a/server/plugin_test.go +++ b/server/plugin_test.go @@ -1,7 +1,7 @@ package main import ( - "io/ioutil" + "io" "net/http" "net/http/httptest" "testing" @@ -20,7 +20,7 @@ func TestServeHTTP(t *testing.T) { result := w.Result() assert.NotNil(result) defer result.Body.Close() - bodyBytes, err := ioutil.ReadAll(result.Body) + bodyBytes, err := io.ReadAll(result.Body) assert.Nil(err) bodyString := string(bodyBytes)