Skip to content

Commit a5a2590

Browse files
committed
fix(lint): --disable-all flags not found
1 parent 3cc2851 commit a5a2590

2 files changed

Lines changed: 20 additions & 10 deletions

File tree

rootfs/root/.golangci.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
version: "2"
2+
run:
3+
timeout: 600s
4+
linters:
5+
default: none
6+
enable:
7+
- misspell
8+
- unused
9+
- ineffassign
10+
- staticcheck
11+
- govet
12+
- revive
13+
formatters:
14+
enable:
15+
- gci
16+
- gofmt
17+
- gofumpt
18+
- goimports

rootfs/usr/local/bin/lint

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,7 @@ mandatory=$?
44

55
# Mandatory tests
66
echo -e "\033[0;31mManadatory Linters: These must pass\033[0m"
7-
golangci-lint --disable-all \
8-
-E=misspell \
9-
-E=unused \
10-
-E=ineffassign \
11-
-E=gosimple \
12-
-E=govet \
13-
-E=gofmt \
14-
-E=revive \
15-
--timeout=600s \
16-
run ./...
7+
golangci-lint fmt --config /root/.golangci.yml ./...
8+
golangci-lint run --config /root/.golangci.yml ./...
179

1810
exit $mandatory

0 commit comments

Comments
 (0)