cyclejs/cycle-core

View on GitHub
examples/advanced/custom-driver/src/chart-driver.js

Summary

Maintainability
A
1 hr
Test Coverage

Function makeChartDriver has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function makeChartDriver(selector, settings) {
  let instance = null // lazy initialize chart on first stream event
  const el = document.querySelector(selector)
  if (!el) {
    throw new Error(`No element '${selector}' found`)
Severity: Minor
Found in examples/advanced/custom-driver/src/chart-driver.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status