Refactor kafka to pure Go (franz-go), fix DBC stubs, update Dockerfile
This commit is contained in:
8
pkg/can-go/tools/commitlint/.commitlintrc.js
Normal file
8
pkg/can-go/tools/commitlint/.commitlintrc.js
Normal file
@@ -0,0 +1,8 @@
|
||||
module.exports = {
|
||||
extends: ['@commitlint/config-conventional'],
|
||||
rules: {
|
||||
// Treat as warning until Dependabot supports commitlint.
|
||||
// https://github.com/dependabot/dependabot-core/issues/2445
|
||||
"body-max-line-length": [1, "always", 100],
|
||||
}
|
||||
};
|
||||
6
pkg/can-go/tools/commitlint/package.json
Normal file
6
pkg/can-go/tools/commitlint/package.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"devDependencies": {
|
||||
"@commitlint/cli": "^11.0.0",
|
||||
"@commitlint/config-conventional": "^11.0.0"
|
||||
}
|
||||
}
|
||||
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