nemesiscodex/openfonacide

View on GitHub

Showing 350 of 970 total issues

Function buildPath has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        buildPath : function (ctx, style) {
            var pointList = style.pointList;
            if (pointList.length < 2) {
                // 少于2个点就不画了~
                return;
Severity: Minor
Found in static/js/dncp/util/shape/HalfSmoothPolygon.js - About 1 hr to fix

    Function _withPreprocess1 has 31 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        _withPreprocess1 : function (axis, out, funcWithAxis, funcFlatten) {
            var source = this._array;
            if (!this._size) {
                return;
            }
    Severity: Minor
    Found in static/js/dncp/util/ndarray.js - About 1 hr to fix

      Function animate has 31 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              animate: function(overrideSettings) {
                settings = overrideSettings || settings;
                if(!module.is.supported()) {
                  module.error(error.support);
                  return false;
      Severity: Minor
      Found in static/components/transition.js - About 1 hr to fix

        Function object has 31 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                  object: function(searchTerm, source) {
                    var
                      results         = [],
                      fullTextResults = [],
                      searchFields    = $.isArray(settings.searchFields)
        Severity: Minor
        Found in static/components/search.js - About 1 hr to fix

          Function elementCalculations has 31 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                    elementCalculations: function() {
                      var
                        screen     = module.get.screenCalculations(),
                        element    = module.get.elementPosition()
                      ;
          Severity: Minor
          Found in static/components/visibility.js - About 1 hr to fix

            Function mean has 30 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                mean : 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 text has 30 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function text(zr, oldShape, newShape, duration, easing) {
                      if (!oldShape) {        // add
                          oldShape = {
                              style : {
                                  x : newShape.style.textAlign == 'left' 
              Severity: Minor
              Found in static/js/dncp/util/ecAnimation.js - About 1 hr to fix

                Function show has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                          show: function(callback) {
                            callback = $.isFunction(callback) ? callback : function(){};
                            if(settings.transition && $.fn.transition !== undefined && $module.transition('is supported')) {
                              module.set.visible();
                              $popup
                Severity: Minor
                Found in static/components/popup.js - About 1 hr to fix

                  Function clear has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          clear: function() {
                            $field
                              .each(function () {
                                var
                                  $field       = $(this),
                  Severity: Minor
                  Found in static/components/form.js - About 1 hr to fix

                    Function imageLoad has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                              imageLoad: function() {
                                var
                                  $images       = $module.find('img'),
                                  imageCount    = $images.length,
                                  index         = imageCount,
                    Severity: Minor
                    Found in static/components/visibility.js - About 1 hr to fix

                      Function generateResults has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                              generateResults: function(response) {
                                module.debug('Generating html from response', response);
                                var
                                  template       = settings.templates[settings.type],
                                  isProperObject = ($.isPlainObject(response.results) && !$.isEmptyObject(response.results)),
                      Severity: Minor
                      Found in static/components/search.js - About 1 hr to fix

                        Function increment has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                increment: function(incrementValue) {
                                  var
                                    total          = module.total || false,
                                    edgeValue,
                                    startValue,
                        Severity: Minor
                        Found in static/components/progress.js - About 1 hr to fix

                          Function html has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                    html: function(source, id, url) {
                                      module.debug('Generating embed html');
                                      var
                                        html
                                      ;
                          Severity: Minor
                          Found in static/components/video.js - About 1 hr to fix

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

                                $.fn.address = function(fn) {
                                    $(this).each(function(index) {
                                        if (!$(this).data('address')) {
                                            $(this).on('click', function(e) {
                                                if (e.shiftKey || e.ctrlKey || e.metaKey || e.which == 2) {
                            Severity: Minor
                            Found in static/js/jquery.address.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/transition.js - About 1 hr to fix

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

                                function smartSteps(min, max, section, opts) {
                                    // 拿公共变量来接收 opts.steps 这个参数,就不用带着参数层层传递了,注意在函数的最终出口处释放这个值
                                    custOpts    = opts || {};
                                    custSteps   = custOpts.steps || mySteps;
                                    custSecs    = custOpts.secs || mySections;
                                Severity: Minor
                                Found in static/js/dncp/util/smartSteps.js - About 1 hr to fix

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

                                          determineTabs: function() {
                                            var
                                              $reference
                                            ;
                                  
                                  
                                  Severity: Minor
                                  Found in static/components/tab.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/rating.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/search.js - About 1 hr to fix

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

                                                  hide: function(callback) {
                                                    callback = $.isFunction(callback) ? callback : function(){};
                                                    module.debug('Hiding pop-up');
                                                    if(settings.transition && $.fn.transition !== undefined && $module.transition('is supported')) {
                                                      $popup
                                        Severity: Minor
                                        Found in static/components/popup.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language