MCPcopy Create free account
hub / github.com/vuetifyjs/vuetify / check

Function check

scripts/lint-commit-message.js:16–20  ·  view source on GitHub ↗

* @param message {string} * @param cb {(currentMessage: string) => boolean}

(message, cb)

Source from the content-addressed store, hash-verified

14 * @param cb {(currentMessage: string) => boolean}
15 */
16function check (message, cb) {
17 if (cb(currentMessage)) {
18 errors.push(message)
19 }
20}
21
22check('Whitespace at beginning of message', m => /^\s/.test(m))
23check('Title is too long. limit to 72 chars', m => m.trim().split(/\r?\n/, 1)[0].length > 72)

Callers 1

Calls 2

cbFunction · 0.85
pushMethod · 0.80

Tested by

no test coverage detected