Showing 2 of 41 total issues
Function mapToListParts
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
Open
const mapToListParts = (item, index) => { if (typeof item === "string" || typeof item === "number") { return createElement(ListItem, { key: item, primaryText: item }); } if (isValidElement(item)) {
- Read upRead up
- Create a ticketCreate a ticket
Function getLocalTitle
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
Open
getLocalTitle() { function capitalize(string) { return string.charAt(0).toUpperCase() + string.slice(1); } const pathPrefix = config.pathPrefix ? config.pathPrefix : "/";
- Read upRead up
- Create a ticketCreate a ticket