Showing 3 of 12 total issues
Function init
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const init: () => Promise<IInit> = async (): Promise<IInit> => {
return new Promise((resolve: (value: IInit | PromiseLike<IInit>) => void
) => {
const app: Koa = new Koa();
File cartoDBService.ts
has 260 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import config from 'config';
import logger from 'logger';
import Mustache from 'mustache';
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
Function use
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
static async use(ctx: Context): Promise<void> {
logger.info('Obtaining use data with name %s and id %s', ctx.params.name, ctx.params.id);
let useTable: string = null;
switch (ctx.params.name) {