nemesiscodex/openfonacide

View on GitHub

Showing 350 of 970 total issues

Function initialize has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        initialize: function() {
          module.verbose('Initializing module');
          var
            prompt = $prompt[0],
            inputEvent   = (prompt !== undefined && prompt.oninput !== undefined)
Severity: Minor
Found in static/components/search.js - About 1 hr to fix

    Function form has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

              form: function(event) {
                var
                  allValid = true,
                  apiRequest
                ;
    Severity: Minor
    Found in static/components/form.js - About 1 hr to fix

      Function display has 29 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

                display: function() {
                  var
                    title = settings.name + ':',
                    totalTime = 0
                  ;
      Severity: Minor
      Found in static/components/form.js - About 1 hr to fix

        Function display has 29 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                  display: function() {
                    var
                      title = settings.name + ':',
                      totalTime = 0
                    ;
        Severity: Minor
        Found in static/components/dimmer.js - About 1 hr to fix

          Function display has 29 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                    display: function() {
                      var
                        title = settings.name + ':',
                        totalTime = 0
                      ;
          Severity: Minor
          Found in static/components/video.js - About 1 hr to fix

            Function setting has 29 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                  setting: function(setting, value, modules, modifyExisting) {
                    modules = (typeof modules === 'string')
                      ? (modules === 'all')
                        ? settings.modules
                        : [modules]
            Severity: Minor
            Found in static/components/site.js - About 1 hr to fix

              Function display has 29 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                        display: function() {
                          var
                            title = settings.name + ':',
                            totalTime = 0
                          ;
              Severity: Minor
              Found in static/components/shape.js - About 1 hr to fix

                Function format has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    function format(formatter, value) {
                        if (formatter == 'week' 
                            || formatter == 'month' 
                            || formatter == 'quarter' 
                            || formatter == 'half-year'
                Severity: Minor
                Found in static/js/dncp/util/date.js - About 1 hr to fix

                  Function look4sections has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function look4sections(expMin, expMax) {
                      var section;
                      var tmpStep, tmpMin, tmpMax;
                      var reference   = [];
                      for (var i      = custSecs.length; i--;) {              // 逐步减小段数,步长就会渐大
                  Severity: Minor
                  Found in static/js/dncp/util/smartSteps.js - About 1 hr to fix

                    Function coreCalc has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    function coreCalc(min, max, section) {
                        var step;
                        var secs    = section || +custSecs.slice(-1);
                        var expStep = getCeil((max - min) / secs, custSteps);   // 这是可能的最小步长,以它的量级作为后续计算的基准量级,以保证整数计算特性
                        var expSpan = expNum(max - min);                        // 2 位精度的最值跨度,过高的精度意味着有效数位更多
                    Severity: Minor
                    Found in static/js/dncp/util/smartSteps.js - About 1 hr to fix

                      Function decode has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          function decode(json) {
                              if (!json.UTF8Encoding) {
                                  return json;
                              }
                              var features = json.features;
                      Severity: Minor
                      Found in static/js/dncp/util/mapData/params.js - About 1 hr to fix

                        Function settings has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                  settings: function() {
                                    var
                                      runSettings
                                    ;
                                    runSettings = settings.beforeSend.call($module, settings);
                        Severity: Minor
                        Found in static/components/api.js - About 1 hr to fix

                          Function sum has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              sum : kwargs((function () {
                                  function withAxis(data, source, offsetStride, axisSize, stride) {
                                      var cursor = 0;
                                      for (var offset = 0; offset < this._size; offset+=offsetStride) {
                                          for (var i = 0; i < stride; i++) {
                          Severity: Minor
                          Found in static/js/dncp/util/ndarray.js - About 1 hr to fix

                            Function prod has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                prod : kwargs((function () {
                                    function withAxis(data, source, offsetStride, axisSize, stride) {
                                        var cursor = 0;
                                        for (var offset = 0; offset < this._size; offset+=offsetStride) {
                                            for (var i = 0; i < stride; i++) {
                            Severity: Minor
                            Found in static/js/dncp/util/ndarray.js - About 1 hr to fix

                              Function getPiece has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      function getPiece(axis, offset) {
                                          var range = ranges[axis];
                                          var stride = strides[axis];
                                          if (axis < len-1) {
                                              if (range[2] > 0) {
                              Severity: Minor
                              Found in static/js/dncp/util/ndarray.js - About 1 hr to fix

                                Function integer has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    integer: function(value, range) {
                                      var
                                        intRegExp = /^\-?\d+$/,
                                        min,
                                        max,
                                Severity: Minor
                                Found in static/components/form.js - About 1 hr to fix

                                  Function keydown has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                              keydown: function(event) {
                                                var
                                                  $field  = $(this),
                                                  key     = event.which,
                                                  keyCode = {
                                  Severity: Minor
                                  Found in static/components/form.js - About 1 hr to fix

                                    Function getAutoFormatter has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        function getAutoFormatter(min, max, splitNumber) {
                                            splitNumber = splitNumber > 1 ? splitNumber : 2;
                                            // 最优解
                                            var curValue;
                                            var totalGap;
                                    Severity: Minor
                                    Found in static/js/dncp/util/date.js - About 1 hr to fix

                                      Function cumsum has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          cumsum : kwargs((function () {
                                              function withAxis(data, source, offsetStride, axisSize, stride) {
                                                  for (var offset = 0; offset < this._size; offset+=offsetStride) {
                                                      for (var i = 0; i < stride; i++) {
                                                          var idx = offset + i;
                                      Severity: Minor
                                      Found in static/js/dncp/util/ndarray.js - About 1 hr to fix

                                        Function cumprod has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            cumprod : kwargs((function () {
                                                function withAxis(data, source, offsetStride, axisSize, stride) {
                                                    for (var offset = 0; offset < this._size; offset+=offsetStride) {
                                                        for (var i = 0; i < stride; i++) {
                                                            var idx = offset + i;
                                        Severity: Minor
                                        Found in static/js/dncp/util/ndarray.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language