File: lint.sh

package info (click to toggle)
lazygit 0.53.0%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,016 kB
  • sloc: sh: 136; makefile: 76
file content (12 lines) | stat: -rwxr-xr-x 289 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

set -e

if [ ! -x ./.bin/golangci-lint ]; then
  echo 'You need to install golangci-lint into .bin'
  echo 'One way to do this is to run'
  echo '  GOBIN=$(pwd)/.bin go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.2.1'
  exit 1
fi

./.bin/golangci-lint run