nnnick/Chart.js

View on GitHub
src/core/core.config.js

Summary

Maintainability
B
4 hrs
Test Coverage

File core.config.js has 310 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import defaults, {overrides, descriptors} from './core.defaults.js';
import {mergeIf, resolveObjectKey, isArray, isFunction, valueOrDefault, isObject} from '../helpers/helpers.core.js';
import {_attachContext, _createResolver, _descriptors} from '../helpers/helpers.config.js';

export function getIndexAxis(type, options) {
Severity: Minor
Found in src/core/core.config.js - About 3 hrs to fix

    Function mergeScaleConfig has 34 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function mergeScaleConfig(config, options) {
      const chartDefaults = overrides[config.type] || {scales: {}};
      const configScales = options.scales || {};
      const chartIndexAxis = getIndexAxis(config.type, options);
      const scales = Object.create(null);
    Severity: Minor
    Found in src/core/core.config.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status