haysclark/gatsby-starter-casper

View on GitHub

Showing 2 of 41 total issues

Function mapToListParts has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
Open

const mapToListParts = (item, index) => {
if (typeof item === "string" || typeof item === "number") {
return createElement(ListItem, { key: item, primaryText: item });
}
if (isValidElement(item)) {
Severity: Minor
Found in src/components/Navigation/Navigation.jsx - About 45 mins to fix

Function getLocalTitle has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
Open

getLocalTitle() {
function capitalize(string) {
return string.charAt(0).toUpperCase() + string.slice(1);
}
const pathPrefix = config.pathPrefix ? config.pathPrefix : "/";
Severity: Minor
Found in src/components/layout.jsx - About 45 mins to fix
Severity
Category
Status
Source
Language