We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4439531 commit 7ebf5ffCopy full SHA for 7ebf5ff
Makefile
@@ -40,7 +40,7 @@ format:
40
41
.PHONY: lint
42
lint:
43
- golangci-lint run
+ ./scripts/lint.sh
44
45
# For more details about integration test, see https://github.com/jesseduffield/lazygit/blob/master/pkg/integration/README.md.
46
.PHONY: integration-test-tui
scripts/lint.sh
@@ -0,0 +1,12 @@
1
+#!/bin/sh
2
+
3
+set -e
4
5
+if [ ! -x ./.bin/golangci-lint ]; then
6
+ echo 'You need to install golangci-lint into .bin'
7
+ echo 'One way to do this is to run'
8
+ echo ' GOBIN=$(pwd)/.bin go install github.com/golangci/golangci-lint/v2/cmd/[email protected]'
9
+ exit 1
10
+fi
11
12
+./.bin/golangci-lint run
0 commit comments