server/server.js
Function createFrontendApp
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function createFrontendApp() {
const app = new Koa();
app.on('error', err => {
if (err.status !== 404 && !error.errno === 'EPIPE') {
Function createHTTPServers
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function createHTTPServers() {
let httpServer;
let httpsServer;
const httpPort = conf.get('frontend:http_port');
const httpsPort = conf.get('frontend:https_port');