(errors: string[], print = Log.error)
| 215 | |
| 216 | /** Print the error messages from the commit message validation to the console. */ |
| 217 | export 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 | } |
no outgoing calls
no test coverage detected