src/webapp/routes/dashboard.ts
Function renderDashboard
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function renderDashboard(packagesPath: any,
dashboardName: any,
request: Request,
response: Response) {
const safeDashboardName = getSafeItemName(dashboardName);
- Create a ticketCreate a ticket
Function listAllDashboards
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function listAllDashboards(packagesPath: any, request: Request, response: Response) {
get(packagesPath, 'dashboards', '.json', (getError: any, dashboardConfigFiles: string[]) => {
if (getError) {
logger().error(getError);
return response.status(400).send('Error loading dashboards');
- Create a ticketCreate a ticket