weacast/weacast-core

View on GitHub
src/elements.js

Summary

Maintainability
A
1 hr
Test Coverage
F
4%

Function initializeElements has 64 lines of code (exceeds 50 allowed). Consider refactoring.
Open

export default async function initializeElements (app, forecast, servicesPath) {
  logger.info('Initializing ' + forecast.name + ' forecast')
  const forecastsService = app.getService('forecasts')
  // Register the forecast model if not already done
  const result = await forecastsService.find({
Severity: Major
Found in src/elements.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status