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

Function main

scripts/commit-msg-lint.js:146–155  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

144}
145
146function main() {
147 const messageFilePath = process.argv[2];
148 if (!messageFilePath) {
149 fail('未接收到 commit message 文件路径。');
150 }
151
152 const content = fs.readFileSync(messageFilePath, 'utf8');
153 const header = getFirstMeaningfulLine(content);
154 validateCommitHeader(header);
155}
156
157main();

Callers 1

commit-msg-lint.jsFile · 0.70

Calls 3

failFunction · 0.85
validateCommitHeaderFunction · 0.85
getFirstMeaningfulLineFunction · 0.70

Tested by

no test coverage detected