配置lint 检查后,使用commitlint之后报错 报错信息 ⧗ input: feat:初始化项目 ✖ subject may not be empty [subject-empty] ✖ type may not be empty [type-empty] ✖ found 2 problems, 0 warnings ⓘ Get help:https://github.com/conventional-changelog/commitlint/#what-is-commitlint husky - ...
配置lint 检查后,使用commitlint之后报错 报错信息 ⧗ input: feat:初始化项目 ✖ subject may not be empty [subject-empty] ✖ type may not be empty [type-empty] ✖ found 2 problems, 0 warnings ⓘ Get help: https://github.com/conventional-changelog/commitlint/#what-is-commitl...
## 错误示例PSC:\Users\WangYang\Documents\Project\electron-vite-vue>git commit-m"commitlint"→ No staged files match any configured task.⧗ input:commitlint ✖ subject may not be empty[subject-empty]✖ type may not be empty[type-empty]✖ found2problems,0warnings ⓘ Get help:https://...
最近几次git commit 的时候总是遇到错误,抛出的问题都是: subject may not be empty [subject-empty] type may not be empty [type-empty] 找了很久发现是描述的名称后面忘记加空格导致的。。。记录一下踩过的坑。。... 查看原文 Aborting commit due to empty commit message git 提交 Aborting commit ...
✖ subject may not beempty[subject-empty]✖ type may not beempty[type-empty]✖ found2problems,0warnings ⓘ Get help:https://github.com/conventional-changelog/commitlint/#what-is-commitlinthusky>commit-msg hook failed(add--no-verify to bypass) ...
这里配置了commit-msg拦截钩子,当然还可以配置其他的,最常用的是pre-commit,我们可以做一些lint操作。 配置完以上的信息,这些终端执行git commit -m "xx"这时候验证就会生效 git commit-m'xx'husky>commit-msg(node v12.13.0)⧗ input:xx ✖ subject may not beempty[subject-empty]✖ type may not be...
✖ subject may not be empty[subject-empty]✖typemay not be empty[type-empty]✖ found2problems,0warnings ⓘ Get help: https://github.com/conventional-changelog/commitlint/#what-is-commitlinthusky>commit-msg hook failed(add --no-verify to bypass) ...
✖ subject may not be empty[subject-empty]✖ type may not be empty[type-empty]✖ found2problems,0warnings ⓘ Get help:https://github.com/conventional-changelog/commitlint/#what-is-commitlint husky>commit-msg hookfailed(add--no-verify to bypass) ...
INVALID COMMIT MSG: does not match "<type>(<scope>): <subject>" ! jartto:fix bug 这里之所以报出这个警告,是因为我的提交出现了两个问题: 其一,使用了规范外的关键字; 其二,很细节的问题,jartto:后少了空格; 这时候我才回忆起来,当时提交一直失败,情急之下直接强制提交,所以以后的提交都会抱出这个异常...
yarn run v1.22.17 $ /Users/wanyingzhang/Documents/my-app/node_modules/.bin/commitlint --edit .git/COMMIT_EDITMSG ⧗ input: ci:added rules subject may not be empty [subject-empty] type may not be empty [type-empty] found 2 problems, 0 warnings ⓘ Get help: https://github.com/...