nemesiscodex/openfonacide

View on GitHub
static/js/dncp/util/smartLogSteps.js

Summary

Maintainability
C
7 hrs
Test Coverage

Function makeTicksList has 67 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function makeTicksList() {
        tickList = [];

        // Estimate max exponent and min exponent
        var maxDataLog = fixAccurate(mathLog(absMax) / lnBase);
Severity: Major
Found in static/js/dncp/util/smartLogSteps.js - About 2 hrs to fix

    File smartLogSteps.js has 264 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /**
     * Echarts, logarithmic axis reform
     *
     * @author sushuang (sushuang@baidu.com),
     *         Ievgenii (@Ievgeny, ievgeny@zoomdata.com)
    Severity: Minor
    Found in static/js/dncp/util/smartLogSteps.js - About 2 hrs to fix

      Function reformSetting has 38 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function reformSetting() {
              // Settings of log label base
              logLabelBase = custOpts.logLabelBase;
              if (logLabelBase == null) {
                  logLabelMode = 'plain';
      Severity: Minor
      Found in static/js/dncp/util/smartLogSteps.js - About 1 hr to fix

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

            function makeDataMappingMethods() {
                // Static variables should be fixed in the scope of the methods.
                var myLogPositive = logPositive;
                var myLogMappingOffset = logMappingOffset;
        
        
        Severity: Minor
        Found in static/js/dncp/util/smartLogSteps.js - About 1 hr to fix

          There are no issues that match your filters.

          Category
          Status