MCPcopy Create free account
hub / github.com/angular/dev-infra / printValidationErrors

Function printValidationErrors

ng-dev/commit-message/validate.ts:217–235  ·  view source on GitHub ↗
(errors: string[], print = Log.error)

Source from the content-addressed store, hash-verified

215
216/** Print the error messages from the commit message validation to the console. */
217export function printValidationErrors(errors: string[], print = Log.error) {
218 print(`Error${errors.length === 1 ? '' : 's'}:`);
219 errors.forEach((line) => print(line));
220 print();
221 print('The expected format for a commit is: ');
222 print('<type>(<scope>): <summary>');
223 print();
224 print('<body>');
225 print();
226 print(`BREAKING CHANGE: <breaking change summary>`);
227 print();
228 print(`<breaking change description>`);
229 print();
230 print(`DEPRECATED: <deprecation summary>`);
231 print();
232 print(`<deprecation description>`);
233 print();
234 print();
235}

Callers 2

validateFileFunction · 0.85
validateCommitRangeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected