Skip to content

Commit

Permalink
add lint check to makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
harp-intel committed Nov 6, 2024
1 parent 1bb67b5 commit fb2c8f8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,14 @@ check_license:
if ! grep -E 'Copyright \(C\) [0-9]{4}-[0-9]{4} Intel Corporation' "$$f" >/dev/null; then echo "Error: license not found: $$f"; fail=1; fi; \
done; if [ -n "$$fail" ]; then exit 1; fi

.PHONY: check_lint
check_lint:
@echo "Running golangci-lint..."
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
golangci-lint run

.PHONY: check
check: check_format check_vet check_static check_license
check: check_format check_vet check_static check_license check_lint

.PHONY: clean
clean:
Expand Down

0 comments on commit fb2c8f8

Please sign in to comment.