针对你遇到的“git subject may not be empty [subject-empty]”错误,我将从以下几个方面进行解答: 1. 确认错误信息的来源和含义 这个错误信息通常出现在使用Git进行提交(commit)操作时,如果提交的说明(commit message)中的主题(subject)部分为空,Git会抛出这个错误。Git提交说明通常包括一个简短的主题行和一个可...
配置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...
解决办法 提交信息加 “fix: xxxxx”fix后面一定要加空格! git commit -m "fix: xxxx"
[2,'always','lower-case'],'subject-case':[2,'never',['sentence-case','start-case','pascal-case','upper-case'],],'subject-empty':[2,'never'],'subject-full-stop':[2,'never','.'],'type-case':[2,'always','lower-case'],'type-empty':[2,'never'],'type-enum':[2,'always...
module.exports={extends:['@commitlint/config-conventional'],rules:{'type-empty':[2,'always'],// never: type不能为空; always: type必须为空'subject-empty':[2,'always'],// subject: never不能为空'header-max-length':[0,'always',72]}}; ...
"subject-empty":[2,"never"], "type-empty":[2,"never"], "subject-case":[0], "type-enum":[ 2, "always", [ "feat", "fix", "docs", "style", "refactor", "perf", "test", "build", "ci", "chore", "revert", "wip", ...
'subject-case': [ 2, 'never', ['sentence-case', 'start-case', 'pascal-case', 'upper-case'] ], 'subject-empty': [2, 'never'], 'subject-full-stop': [2, 'never', '.'], 'type-case': [2, 'always', 'lower-case'], ...
When in list mode, show sha1 and commit subject line for each head, along with relationship to upstream branch (if any). If given twice, print the path of the linked worktree (if any) and the name of the upstream branch, as well (see alsogit remote show <remote>). Note that the ...
module.exports={extends:["@commitlint/config-conventional"],rules:{"type-enum":[2,"always",["feat","fix","refactor","perf","test","style","docs","chore"],],"type-case":[0],"type-empty":[0],"scope-empty":[0],"scope-case":[0],"subject-full-stop":[0,"never"],"subject-...