File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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+
3646function 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
You can’t perform that action at this time.
0 commit comments