build(be):update golangci-lint action config
This commit is contained in:
parent
c31b3c8359
commit
0bef7d3040
2
.github/workflows/golangci-lint.yml
vendored
2
.github/workflows/golangci-lint.yml
vendored
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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"
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user