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 uses: golangci/golangci-lint-action@v2
with: with:
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version # 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 args: --timeout=5m

View File

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

View File

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