Skip to content

Commit 2b01c85

Browse files
committed
removed linters and changed golangci path
Signed-off-by: hjoshi123 <mail@hjoshi.me>
1 parent 6796e51 commit 2b01c85

2 files changed

Lines changed: 16 additions & 4 deletions

File tree

.golangci.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ linters:
6161
- exhaustive
6262
- exptostd
6363
- forbidigo
64-
- ginkgolinter
6564
- gocheckcompilerdirectives
6665
- gochecksumtype
6766
- gocritic
@@ -105,7 +104,7 @@ formatters:
105104
gci:
106105
sections:
107106
- standard
108-
- defaul
107+
- default
109108
- prefix(github.com/apple/container-builder-shim)
110109
- blank
111110
- dot

scripts/install-tools.sh

100644100755
Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,29 @@ install_golangci() {
2828
ci_install=true
2929
fi
3030
if [[ "$ci_install" == true ]]; then
31-
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/cc3567e3127d8530afb69be1b7bd20ba9ebcc7c1/install.sh \
32-
| sh -s -- -b $(go env GOPATH)/bin "${GOLANGCI_LINTER_VERSION}"
31+
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/${GOLANGCI_LINTER_VERSION}/install.sh \
32+
| sh -s -- -b .local/bin "${GOLANGCI_LINTER_VERSION}"
3333
fi
3434
}
3535

36+
show_help() {
37+
cat << EOF
38+
tools installer
39+
40+
Usage: $(basename "$0") <options>
41+
-h, --help Display help
42+
--golangci Install golangci linter
43+
EOF
44+
}
45+
3646
function main() {
3747
case $1 in
3848
--golangci)
3949
install_golangci
4050
;;
51+
-h|--help)
52+
show_help
53+
;;
4154
*)
4255
echo "unknown command" >&2
4356
show_help

0 commit comments

Comments
 (0)