Refactor kafka to pure Go (franz-go), fix DBC stubs, update Dockerfile
This commit is contained in:
16
pkg/can-go/tools/commitlint/rules.mk
Normal file
16
pkg/can-go/tools/commitlint/rules.mk
Normal file
@@ -0,0 +1,16 @@
|
||||
commitlint_cwd := $(abspath $(dir $(lastword $(MAKEFILE_LIST))))
|
||||
commitlint := $(commitlint_cwd)/node_modules/.bin/commitlint
|
||||
|
||||
$(commitlint): $(commitlint_cwd)/package.json
|
||||
$(info [commitlint] installing package...)
|
||||
@cd $(commitlint_cwd) && npm install --no-save --no-audit &> /dev/null
|
||||
@touch $@
|
||||
|
||||
.PHONY: commitlint
|
||||
commitlint: $(commitlint_cwd)/.commitlintrc.js $(commitlint)
|
||||
$(info [$@] linting commit messages...)
|
||||
@git fetch --tags
|
||||
@NODE_PATH=$(commitlint_cwd)/node_modules $(commitlint) \
|
||||
--config $< \
|
||||
--from origin/master \
|
||||
--to HEAD
|
||||
Reference in New Issue
Block a user