Update orb version (#170)
This commit is contained in:
parent
2629a23a05
commit
2879447b47
3 changed files with 4 additions and 14 deletions
|
@ -1,7 +1,7 @@
|
||||||
version: 2.1
|
version: 2.1
|
||||||
|
|
||||||
orbs:
|
orbs:
|
||||||
plugin-ci: mattermost/plugin-ci@0.1.6
|
plugin-ci: mattermost/plugin-ci@0.1.12
|
||||||
|
|
||||||
workflows:
|
workflows:
|
||||||
version: 2
|
version: 2
|
||||||
|
|
|
@ -7,8 +7,6 @@ linters-settings:
|
||||||
simplify: true
|
simplify: true
|
||||||
goimports:
|
goimports:
|
||||||
local-prefixes: github.com/mattermost/mattermost-starter-template
|
local-prefixes: github.com/mattermost/mattermost-starter-template
|
||||||
golint:
|
|
||||||
min-confidence: 0
|
|
||||||
govet:
|
govet:
|
||||||
check-shadowing: true
|
check-shadowing: true
|
||||||
enable-all: true
|
enable-all: true
|
||||||
|
@ -21,34 +19,26 @@ linters:
|
||||||
disable-all: true
|
disable-all: true
|
||||||
enable:
|
enable:
|
||||||
- bodyclose
|
- bodyclose
|
||||||
- deadcode
|
|
||||||
- errcheck
|
- errcheck
|
||||||
- gocritic
|
- gocritic
|
||||||
- gofmt
|
- gofmt
|
||||||
- goimports
|
- goimports
|
||||||
- golint
|
|
||||||
- gosec
|
- gosec
|
||||||
- gosimple
|
- gosimple
|
||||||
- govet
|
- govet
|
||||||
- ineffassign
|
- ineffassign
|
||||||
- misspell
|
- misspell
|
||||||
- nakedret
|
- nakedret
|
||||||
|
- revive
|
||||||
- staticcheck
|
- staticcheck
|
||||||
- structcheck
|
|
||||||
- stylecheck
|
- stylecheck
|
||||||
- typecheck
|
- typecheck
|
||||||
- unconvert
|
- unconvert
|
||||||
- unused
|
- unused
|
||||||
- varcheck
|
|
||||||
- whitespace
|
- whitespace
|
||||||
|
|
||||||
issues:
|
issues:
|
||||||
exclude-rules:
|
exclude-rules:
|
||||||
- path: server/manifest.go
|
|
||||||
linters:
|
|
||||||
- deadcode
|
|
||||||
- unused
|
|
||||||
- varcheck
|
|
||||||
- path: server/configuration.go
|
- path: server/configuration.go
|
||||||
linters:
|
linters:
|
||||||
- unused
|
- unused
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"io/ioutil"
|
"io"
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/http/httptest"
|
"net/http/httptest"
|
||||||
"testing"
|
"testing"
|
||||||
|
@ -20,7 +20,7 @@ func TestServeHTTP(t *testing.T) {
|
||||||
result := w.Result()
|
result := w.Result()
|
||||||
assert.NotNil(result)
|
assert.NotNil(result)
|
||||||
defer result.Body.Close()
|
defer result.Body.Close()
|
||||||
bodyBytes, err := ioutil.ReadAll(result.Body)
|
bodyBytes, err := io.ReadAll(result.Body)
|
||||||
assert.Nil(err)
|
assert.Nil(err)
|
||||||
bodyString := string(bodyBytes)
|
bodyString := string(bodyBytes)
|
||||||
|
|
||||||
|
|
Reference in a new issue