MCPcopy Create free account
hub / github.com/Silentely/eSIM-Tools / fail

Function fail

scripts/commit-msg-lint.js:66–78  ·  view source on GitHub ↗
(message)

Source from the content-addressed store, hash-verified

64 .join('\n ');
65
66function fail(message) {
67 console.error('\n❌ 提交信息格式不符合规范:');
68 console.error(` ${message}\n`);
69 console.error('期望格式:');
70 console.error(' <emoji> <type>(optional-scope): <中文描述>');
71 console.error('\n支持的 emoji(推荐对应关系如下,非强制):');
72 console.error(` ${ALLOWED_PAIRS_HELP}`);
73 console.error('\n示例:');
74 console.error(' ✨ feat(auth): 新增登录态自动续期');
75 console.error(' 🐛 fix(simyo): 修复验证码重试逻辑');
76 console.error(' 📝 docs(readme): 更新安装说明\n');
77 process.exit(1);
78}
79
80function getFirstMeaningfulLine(content) {
81 const lines = content.split(/\r?\n/);

Callers 3

validateEmojiTokenFunction · 0.85
validateCommitHeaderFunction · 0.85
mainFunction · 0.85

Calls 1

errorMethod · 0.45

Tested by

no test coverage detected