* getIssuesBySeverity * Gets the issues then groups them by error/warning * (This just calls `getIssues`, then puts issues in groups) * * @param {Object} options - see `getIssues` * @return {Object} result like: * { * error: Array , * warn
(options)
| 369 | * } |
| 370 | */ |
| 371 | getIssuesBySeverity(options) { |
| 372 | const groups = utilArrayGroupBy(this.getIssues(options), 'severity'); |
| 373 | return { // note, we want them in this order |
| 374 | error: groups.error ?? [], |
| 375 | warning: groups.warning ?? [], |
| 376 | suggestion: groups.suggestion ?? [] |
| 377 | }; |
| 378 | } |
| 379 | |
| 380 | |
| 381 | /** |
no test coverage detected