MCPcopy Create free account
hub / github.com/facebook/Rapid / getIssuesBySeverity

Method getIssuesBySeverity

modules/core/ValidationSystem.js:371–378  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

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 /**

Callers 5

getUploadBlockerMessageFunction · 0.80
commitWarningsFunction · 0.80
renderMethod · 0.80
reloadIssuesFunction · 0.80

Calls 1

getIssuesMethod · 0.95

Tested by

no test coverage detected