We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3cc2851 commit a5a2590Copy full SHA for a5a2590
2 files changed
rootfs/root/.golangci.yml
@@ -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
15
+ - gci
16
+ - gofmt
17
+ - gofumpt
18
+ - goimports
rootfs/usr/local/bin/lint
@@ -4,15 +4,7 @@ mandatory=$?
# Mandatory tests
echo -e "\033[0;31mManadatory Linters: These must pass\033[0m"
-golangci-lint --disable-all \
- -E=misspell \
- -E=unused \
- -E=ineffassign \
- -E=gosimple \
- -E=govet \
- -E=gofmt \
- -E=revive \
- --timeout=600s \
- run ./...
+golangci-lint fmt --config /root/.golangci.yml ./...
+golangci-lint run --config /root/.golangci.yml ./...
exit $mandatory
0 commit comments