Showing 28 of 89 total issues
Function createTree
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const createTree = useCallback(() => {
function recurseTree(ssorsr: StoreStructure | StoreRoute, path = "") {
return Object.entries(ssorsr).map(([key, structOrRoute]) => {
if (isStoreRoute(structOrRoute)) {
// TODO: get rid of this 's200' etc business
Function startAtYourService
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default async function startAtYourService(
config: Partial<Config> = defaultConfig
) {
try {
if (config.registerWorker) {
Function slowestRoute
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const slowestRoute = (storeStruct: StoreStructure): StoreRoute => {
let curMax = -Infinity;
let slowest: StoreRoute = {
meta: [],
pathname: "",
Avoid too many return
statements within this function. Open
Open
return passthrough()
Avoid too many return
statements within this function. Open
Open
return passthrough()
Avoid too many return
statements within this function. Open
Open
return passthrough()
Avoid too many return
statements within this function. Open
Open
if (!(event.request.url.indexOf("http") === 0)) return;
Avoid too many return
statements within this function. Open
Open
return passthrough()