nemesiscodex/openfonacide

View on GitHub

Showing 970 of 970 total issues

Function item has 51 lines of code (exceeds 25 allowed). Consider refactoring.
Open

          item: function(value, strict) {
            var
              $selectedItem = false
            ;
            value = (value !== undefined)
Severity: Major
Found in static/components/dropdown.js - About 2 hrs to fix

    Function invoke has 51 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            invoke: function(query, passedArguments, context) {
              var
                object = instance,
                maxDepth,
                found,
    Severity: Major
    Found in static/components/rating.js - About 2 hrs to fix

      Function invoke has 51 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              invoke: function(query, passedArguments, context) {
                var
                  object = instance,
                  maxDepth,
                  found,
      Severity: Major
      Found in static/components/form.js - About 2 hrs to fix

        Function url has 51 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                  url: function(source) {
                    var
                      api      = (settings.api)
                        ? 1
                        : 0,
        Severity: Major
        Found in static/components/video.js - About 2 hrs to fix

          Function invoke has 51 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  invoke: function(query, passedArguments, context) {
                    var
                      object = instance,
                      maxDepth,
                      found,
          Severity: Major
          Found in static/components/sticky.js - About 2 hrs to fix

            Function invoke has 51 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    invoke: function(query, passedArguments, context) {
                      var
                        object = instance,
                        maxDepth,
                        found,
            Severity: Major
            Found in static/components/shape.js - About 2 hrs to fix

              Function makeResult has 50 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function makeResult(newMin, newMax, section, expon) {
                  expon       = expon || 0;                               // 这是中间计算量级,受步长增长、特别是最值锁定的影响,可能会小于基准量级,因为整数部分被过度放大
                  var expStep = expNum((newMax - newMin) / section, -1);
                  var expMin  = expNum(newMin, -1, 1);                    // 锁定的最值有效数位可能很多,需要全精度保留
                  var expMax  = expNum(newMax, -1);
              Severity: Minor
              Found in static/js/dncp/util/smartSteps.js - About 2 hrs to fix

                Function largePoint has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    function largePoint(zr, effectList, shape, zlevel) {
                        var effect = shape.effect;
                        var color = effect.color || shape.style.strokeColor || shape.style.color;
                        var size = effect.scaleSize;
                        var shadowColor = effect.shadowColor || color;
                Severity: Minor
                Found in static/js/dncp/util/ecEffect.js - About 2 hrs to fix

                  Function pointList has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      function pointList(zr, oldShape, newShape, duration, easing) {
                          var newPointList = newShape.style.pointList;
                          var newPointListLen = newPointList.length;
                          var oldPointList;
                  
                  
                  Severity: Minor
                  Found in static/js/dncp/util/ecAnimation.js - About 2 hrs to fix

                    Function get_options_pie has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        function get_options_pie(titulo, subtitulo, legendData, series){
                            return {
                                title: {
                                    text: titulo,
                                    subtext: subtitulo,
                    Severity: Minor
                    Found in static/js/frontend.ResumenController.js - About 2 hrs to fix

                      Similar blocks of code found in 19 locations. Consider refactoring.
                      Open

                            if(methodInvoked) {
                              if(instance === undefined) {
                                module.initialize();
                              }
                              module.invoke(query);
                      Severity: Major
                      Found in static/components/state.js and 18 other locations - About 2 hrs to fix
                      static/components/accordion.js on lines 511..522
                      static/components/api.js on lines 760..771
                      static/components/checkbox.js on lines 451..462
                      static/components/dimmer.js on lines 579..590
                      static/components/dropdown.js on lines 1662..1673
                      static/components/form.js on lines 866..877
                      static/components/modal.js on lines 782..793
                      static/components/nag.js on lines 400..411
                      static/components/popup.js on lines 1066..1077
                      static/components/progress.js on lines 688..699
                      static/components/rating.js on lines 376..387
                      static/components/search.js on lines 842..853
                      static/components/shape.js on lines 759..770
                      static/components/sidebar.js on lines 978..989
                      static/components/sticky.js on lines 748..759
                      static/components/tab.js on lines 715..726
                      static/components/video.js on lines 443..454
                      static/components/visibility.js on lines 1000..1011

                      Duplicated Code

                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                      Tuning

                      This issue has a mass of 75.

                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                      Refactorings

                      Further Reading

                      Similar blocks of code found in 19 locations. Consider refactoring.
                      Open

                            if(methodInvoked) {
                              if(instance === undefined) {
                                module.initialize();
                              }
                              module.invoke(query);
                      Severity: Major
                      Found in static/components/dimmer.js and 18 other locations - About 2 hrs to fix
                      static/components/accordion.js on lines 511..522
                      static/components/api.js on lines 760..771
                      static/components/checkbox.js on lines 451..462
                      static/components/dropdown.js on lines 1662..1673
                      static/components/form.js on lines 866..877
                      static/components/modal.js on lines 782..793
                      static/components/nag.js on lines 400..411
                      static/components/popup.js on lines 1066..1077
                      static/components/progress.js on lines 688..699
                      static/components/rating.js on lines 376..387
                      static/components/search.js on lines 842..853
                      static/components/shape.js on lines 759..770
                      static/components/sidebar.js on lines 978..989
                      static/components/state.js on lines 562..573
                      static/components/sticky.js on lines 748..759
                      static/components/tab.js on lines 715..726
                      static/components/video.js on lines 443..454
                      static/components/visibility.js on lines 1000..1011

                      Duplicated Code

                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                      Tuning

                      This issue has a mass of 75.

                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                      Refactorings

                      Further Reading

                      Similar blocks of code found in 19 locations. Consider refactoring.
                      Open

                            if(methodInvoked) {
                              if(instance === undefined) {
                                module.initialize();
                              }
                              module.invoke(query);
                      Severity: Major
                      Found in static/components/dropdown.js and 18 other locations - About 2 hrs to fix
                      static/components/accordion.js on lines 511..522
                      static/components/api.js on lines 760..771
                      static/components/checkbox.js on lines 451..462
                      static/components/dimmer.js on lines 579..590
                      static/components/form.js on lines 866..877
                      static/components/modal.js on lines 782..793
                      static/components/nag.js on lines 400..411
                      static/components/popup.js on lines 1066..1077
                      static/components/progress.js on lines 688..699
                      static/components/rating.js on lines 376..387
                      static/components/search.js on lines 842..853
                      static/components/shape.js on lines 759..770
                      static/components/sidebar.js on lines 978..989
                      static/components/state.js on lines 562..573
                      static/components/sticky.js on lines 748..759
                      static/components/tab.js on lines 715..726
                      static/components/video.js on lines 443..454
                      static/components/visibility.js on lines 1000..1011

                      Duplicated Code

                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                      Tuning

                      This issue has a mass of 75.

                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                      Refactorings

                      Further Reading

                      Similar blocks of code found in 19 locations. Consider refactoring.
                      Open

                            if(methodInvoked) {
                              if(instance === undefined) {
                                module.initialize();
                              }
                              module.invoke(query);
                      Severity: Major
                      Found in static/components/popup.js and 18 other locations - About 2 hrs to fix
                      static/components/accordion.js on lines 511..522
                      static/components/api.js on lines 760..771
                      static/components/checkbox.js on lines 451..462
                      static/components/dimmer.js on lines 579..590
                      static/components/dropdown.js on lines 1662..1673
                      static/components/form.js on lines 866..877
                      static/components/modal.js on lines 782..793
                      static/components/nag.js on lines 400..411
                      static/components/progress.js on lines 688..699
                      static/components/rating.js on lines 376..387
                      static/components/search.js on lines 842..853
                      static/components/shape.js on lines 759..770
                      static/components/sidebar.js on lines 978..989
                      static/components/state.js on lines 562..573
                      static/components/sticky.js on lines 748..759
                      static/components/tab.js on lines 715..726
                      static/components/video.js on lines 443..454
                      static/components/visibility.js on lines 1000..1011

                      Duplicated Code

                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                      Tuning

                      This issue has a mass of 75.

                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                      Refactorings

                      Further Reading

                      Similar blocks of code found in 19 locations. Consider refactoring.
                      Open

                            if(methodInvoked) {
                              if(instance === undefined) {
                                module.initialize();
                              }
                              module.invoke(query);
                      Severity: Major
                      Found in static/components/api.js and 18 other locations - About 2 hrs to fix
                      static/components/accordion.js on lines 511..522
                      static/components/checkbox.js on lines 451..462
                      static/components/dimmer.js on lines 579..590
                      static/components/dropdown.js on lines 1662..1673
                      static/components/form.js on lines 866..877
                      static/components/modal.js on lines 782..793
                      static/components/nag.js on lines 400..411
                      static/components/popup.js on lines 1066..1077
                      static/components/progress.js on lines 688..699
                      static/components/rating.js on lines 376..387
                      static/components/search.js on lines 842..853
                      static/components/shape.js on lines 759..770
                      static/components/sidebar.js on lines 978..989
                      static/components/state.js on lines 562..573
                      static/components/sticky.js on lines 748..759
                      static/components/tab.js on lines 715..726
                      static/components/video.js on lines 443..454
                      static/components/visibility.js on lines 1000..1011

                      Duplicated Code

                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                      Tuning

                      This issue has a mass of 75.

                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                      Refactorings

                      Further Reading

                      Similar blocks of code found in 19 locations. Consider refactoring.
                      Open

                          if(methodInvoked) {
                            if(instance === undefined) {
                              module.initialize();
                            }
                            module.invoke(query);
                      Severity: Major
                      Found in static/components/sidebar.js and 18 other locations - About 2 hrs to fix
                      static/components/accordion.js on lines 511..522
                      static/components/api.js on lines 760..771
                      static/components/checkbox.js on lines 451..462
                      static/components/dimmer.js on lines 579..590
                      static/components/dropdown.js on lines 1662..1673
                      static/components/form.js on lines 866..877
                      static/components/modal.js on lines 782..793
                      static/components/nag.js on lines 400..411
                      static/components/popup.js on lines 1066..1077
                      static/components/progress.js on lines 688..699
                      static/components/rating.js on lines 376..387
                      static/components/search.js on lines 842..853
                      static/components/shape.js on lines 759..770
                      static/components/state.js on lines 562..573
                      static/components/sticky.js on lines 748..759
                      static/components/tab.js on lines 715..726
                      static/components/video.js on lines 443..454
                      static/components/visibility.js on lines 1000..1011

                      Duplicated Code

                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                      Tuning

                      This issue has a mass of 75.

                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                      Refactorings

                      Further Reading

                      Similar blocks of code found in 19 locations. Consider refactoring.
                      Open

                            if(methodInvoked) {
                              if(instance === undefined) {
                                module.initialize();
                              }
                              module.invoke(query);
                      Severity: Major
                      Found in static/components/visibility.js and 18 other locations - About 2 hrs to fix
                      static/components/accordion.js on lines 511..522
                      static/components/api.js on lines 760..771
                      static/components/checkbox.js on lines 451..462
                      static/components/dimmer.js on lines 579..590
                      static/components/dropdown.js on lines 1662..1673
                      static/components/form.js on lines 866..877
                      static/components/modal.js on lines 782..793
                      static/components/nag.js on lines 400..411
                      static/components/popup.js on lines 1066..1077
                      static/components/progress.js on lines 688..699
                      static/components/rating.js on lines 376..387
                      static/components/search.js on lines 842..853
                      static/components/shape.js on lines 759..770
                      static/components/sidebar.js on lines 978..989
                      static/components/state.js on lines 562..573
                      static/components/sticky.js on lines 748..759
                      static/components/tab.js on lines 715..726
                      static/components/video.js on lines 443..454

                      Duplicated Code

                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                      Tuning

                      This issue has a mass of 75.

                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                      Refactorings

                      Further Reading

                      Similar blocks of code found in 19 locations. Consider refactoring.
                      Open

                            if(methodInvoked) {
                              if(instance === undefined) {
                                module.initialize();
                              }
                              module.invoke(query);
                      Severity: Major
                      Found in static/components/video.js and 18 other locations - About 2 hrs to fix
                      static/components/accordion.js on lines 511..522
                      static/components/api.js on lines 760..771
                      static/components/checkbox.js on lines 451..462
                      static/components/dimmer.js on lines 579..590
                      static/components/dropdown.js on lines 1662..1673
                      static/components/form.js on lines 866..877
                      static/components/modal.js on lines 782..793
                      static/components/nag.js on lines 400..411
                      static/components/popup.js on lines 1066..1077
                      static/components/progress.js on lines 688..699
                      static/components/rating.js on lines 376..387
                      static/components/search.js on lines 842..853
                      static/components/shape.js on lines 759..770
                      static/components/sidebar.js on lines 978..989
                      static/components/state.js on lines 562..573
                      static/components/sticky.js on lines 748..759
                      static/components/tab.js on lines 715..726
                      static/components/visibility.js on lines 1000..1011

                      Duplicated Code

                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                      Tuning

                      This issue has a mass of 75.

                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                      Refactorings

                      Further Reading

                      Similar blocks of code found in 19 locations. Consider refactoring.
                      Open

                            if(methodInvoked) {
                              if(instance === undefined) {
                                module.initialize();
                              }
                              module.invoke(query);
                      Severity: Major
                      Found in static/components/accordion.js and 18 other locations - About 2 hrs to fix
                      static/components/api.js on lines 760..771
                      static/components/checkbox.js on lines 451..462
                      static/components/dimmer.js on lines 579..590
                      static/components/dropdown.js on lines 1662..1673
                      static/components/form.js on lines 866..877
                      static/components/modal.js on lines 782..793
                      static/components/nag.js on lines 400..411
                      static/components/popup.js on lines 1066..1077
                      static/components/progress.js on lines 688..699
                      static/components/rating.js on lines 376..387
                      static/components/search.js on lines 842..853
                      static/components/shape.js on lines 759..770
                      static/components/sidebar.js on lines 978..989
                      static/components/state.js on lines 562..573
                      static/components/sticky.js on lines 748..759
                      static/components/tab.js on lines 715..726
                      static/components/video.js on lines 443..454
                      static/components/visibility.js on lines 1000..1011

                      Duplicated Code

                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                      Tuning

                      This issue has a mass of 75.

                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                      Refactorings

                      Further Reading

                      Similar blocks of code found in 19 locations. Consider refactoring.
                      Open

                            if(methodInvoked) {
                              if(instance === undefined) {
                                module.initialize();
                              }
                              module.invoke(query);
                      Severity: Major
                      Found in static/components/rating.js and 18 other locations - About 2 hrs to fix
                      static/components/accordion.js on lines 511..522
                      static/components/api.js on lines 760..771
                      static/components/checkbox.js on lines 451..462
                      static/components/dimmer.js on lines 579..590
                      static/components/dropdown.js on lines 1662..1673
                      static/components/form.js on lines 866..877
                      static/components/modal.js on lines 782..793
                      static/components/nag.js on lines 400..411
                      static/components/popup.js on lines 1066..1077
                      static/components/progress.js on lines 688..699
                      static/components/search.js on lines 842..853
                      static/components/shape.js on lines 759..770
                      static/components/sidebar.js on lines 978..989
                      static/components/state.js on lines 562..573
                      static/components/sticky.js on lines 748..759
                      static/components/tab.js on lines 715..726
                      static/components/video.js on lines 443..454
                      static/components/visibility.js on lines 1000..1011

                      Duplicated Code

                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                      Tuning

                      This issue has a mass of 75.

                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                      Refactorings

                      Further Reading

                      Severity
                      Category
                      Status
                      Source
                      Language