Skip to content

Commit

Permalink
added linting to the build target and fmt target
Browse files Browse the repository at this point in the history
  • Loading branch information
stikkireddy committed Apr 20, 2020
1 parent 90cbd31 commit 36022ef
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,16 @@ coverage-int: int

int-build: int build

build:
build: fmt
@echo "==> Building source code with go build..."
@go build -mod vendor -v -o terraform-provider-databricks

fmt:
lint:
@echo "==> Linting source code with golint..."
@golint -set_exit_status ./databricks/...
@golint -set_exit_status ./client/...

fmt: lint
@echo "==> Formatting source code with gofmt..."
@go fmt ./...

Expand Down Expand Up @@ -54,7 +59,7 @@ terraform-acc: fmt build
@echo "==> Running Terraform Acceptance Tests..."
@TF_ACC=1 go test -v -short ./databricks/...

terraform-setup: fmt build
terraform-setup: build
@echo "==> Initializing Terraform..."
@terraform init

Expand Down

0 comments on commit 36022ef

Please sign in to comment.