gerard2p/koaton

View on GitHub
src/index.js

Summary

Maintainability
A
2 hrs
Test Coverage

Showing 2 of 2 total issues

Function start has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

App.start = function (port, usehttp2 = false) {
for (const route of koaton.router.options()) {
App.use(route);
}
let callback = () => {
Severity: Minor
Found in src/index.js - About 1 hr to fix

Function start has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
Open

App.start = function (port, usehttp2 = false) {
for (const route of koaton.router.options()) {
App.use(route);
}
let callback = () => {
Severity: Minor
Found in src/index.js - About 55 mins to fix
Category
Status