Skip to content

Commit

Permalink
go/lint: print STARTING statements before tool install
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdecaf committed Mar 14, 2024
1 parent 057eab2 commit 676d84d
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions go/lint-project.sh
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ if [[ "$SKIP_LINTERS" != "" ]]; then
run_govulncheck=false
fi
if [[ "$run_govulncheck" == "true" ]]; then
echo "STARTING govulncheck check"

# Install the latest govulncheck release
go install golang.org/x/vuln/cmd/govulncheck@latest

Expand All @@ -160,7 +162,6 @@ if [[ "$run_govulncheck" == "true" ]]; then
# Run govulncheck
if [[ "$bin" != "" ]];
then
echo "STARTING govulncheck check"
"$bin" -test ./...
echo "FINISHED govulncheck check"
else
Expand Down Expand Up @@ -193,6 +194,8 @@ if [[ "$SKIP_LINTERS" != "" ]]; then
run_xmlencoderclose=false
fi
if [[ "$run_xmlencoderclose" == "true" ]]; then
echo "STARTING xmlencoderclose check"

# Install xmlencoderclose
go install github.com/adamdecaf/xmlencoderclose@latest

Expand All @@ -218,7 +221,6 @@ if [[ "$run_xmlencoderclose" == "true" ]]; then
# Run xmlencoderclose
if [[ "$bin" != "" ]];
then
echo "STARTING xmlencoderclose check"
"$bin" -test ./...
echo "FINISHED xmlencoderclose check"
else
Expand All @@ -232,6 +234,7 @@ then
# however this linter is useful so we offer it.
#
# https://github.com/golangci/golangci-lint/issues/4045
echo "STARTING nilaway check"

# Install nilaway
go install go.uber.org/nilaway/cmd/nilaway@latest
Expand Down Expand Up @@ -259,6 +262,7 @@ then
if [[ "$bin" != "" ]];
then
"$bin" -test=false ./...
echo "FINISHED nilaway check"
fi
fi

Expand All @@ -275,9 +279,11 @@ if [[ "$OS_NAME" != "windows" ]]; then
then
echo "SKIPPING golangci-lint"
else
echo "STARTING golangci-lint checks"

# Download golangci-lint
wget -q -O - -q https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s "$golangci_version"
echo "STARTING golangci-lint checks"

./bin/golangci-lint version

# Create a temporary filepath for the config file
Expand Down

0 comments on commit 676d84d

Please sign in to comment.