build(be):update golangci-lint action config

This commit is contained in:
teaser 2021-03-20 21:57:07 +08:00 committed by dushixiang
parent c31b3c8359
commit 0bef7d3040
3 changed files with 4 additions and 6 deletions

View File

@ -18,5 +18,5 @@ jobs:
uses: golangci/golangci-lint-action@v2
with:
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
version: v1.29
version: latest
args: --timeout=5m

View File

@ -1,6 +1,6 @@
linters-settings:
goimports:
local-prefixes: uqingtech.com
local-prefixes: next-terminal
linters:
disable-all: true
@ -19,8 +19,5 @@ linters:
- varcheck
run:
skip-dirs:
- api/
- module/
skip-files:
- test_ssh.go

View File

@ -3,12 +3,13 @@ package log
import (
"fmt"
"io"
"next-terminal/server/global"
"os"
"path"
"strconv"
"time"
"next-terminal/pkg/global"
"github.com/labstack/echo/v4"
"github.com/sirupsen/logrus"
)