lib/commit-message.js
function(verb) {
                        var matches = verb.value.match(/^VB[^P\s]+ (\S+)$/);
                        if (matches) {
                            var index = s.indexOf(matches[1]);

                            this._log('Use imperative present tense, eg. "Fix bug" not ' +
                            '"Fixed bug" or "Fixes bug". To get it right ask yourself: "If applied, ' +
                            'this patch will <YOUR-COMMIT-MESSAGE-HERE>"',
                            cfg.imperativeVerbsInSubject.type, [1, index+1+this._colOffset]);

                            hasError = true;
                            return false; // stop loop
                        }
                        return true;
                    }
function(verb) {
                        var matches = verb.value.match(/^VB[^P\s]+ (\S+)$/);
                        if (matches) {
                            var index = s.indexOf(matches[1]);

                            this._log('Use imperative present tense, eg. "Fix bug" not ' +
                            '"Fixed bug" or "Fixes bug". To get it right ask yourself: "If applied, ' +
                            'this patch will <YOUR-COMMIT-MESSAGE-HERE>"',
                            cfg.imperativeVerbsInSubject.type, [1, index+1+this._colOffset]);

                            hasError = true;
                            return false; // stop loop
                        }
                        return true;
                    }
function ( verb ) { var matches = verb . value . match ( / ^VB[^P\s]+ (\S+)$ / ) ; if ( matches ) { var index = s . indexOf ( matches [ 1 ] ) ; this . _log ( 'Use imperative present tense, eg. "Fix bug" not ' + '"Fixed bug" or "Fixes bug". To get it right ask yourself: "If applied, ' + 'this patch will <YOUR-COMMIT-MESSAGE-HERE>"' , cfg . imperativeVerbsInSubject . type , [ 1 , index + 1 + this . _colOffset ] ) ; hasError = true ; return false ; // stop loop } return true ; }
If the commit message is not a fragment and contains at least 1 verb, continue
If the commit message is not a fragment and contains at least 1 verb continue