nemesiscodex/openfonacide

View on GitHub

Showing 350 of 970 total issues

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

    _parseRanges : function (index) {
        var rangesStr = index.split(/\s*,\s*/);
        
        // Parse range of each axis
        var ranges = [];
Severity: Minor
Found in static/js/dncp/util/ndarray.js - About 1 hr to fix

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

                var onEndTransitionFn = function( ev ) {
                    if( support.transitions ) {
                        if( ev.propertyName.indexOf( 'transform' ) === -1 ) return false;
                        this.removeEventListener( transEndEventName, onEndTransitionFn );
                    }
    Severity: Minor
    Found in static/js/cbpGridGallery.js - About 1 hr to fix

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

          map : function (mappedMin, mappedMax) {
              var input = this._array;
              var output = this._array;
      
              var min = input[0];
      Severity: Minor
      Found in static/js/dncp/util/ndarray.js - About 1 hr to fix

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

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

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

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

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

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

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

                      legacyPushPage: function(callback) {
                        var
                          distance   = $module.width(),
                          direction  = module.get.direction(),
                          properties = {}
              Severity: Minor
              Found in static/components/sidebar.js - About 1 hr to fix

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                        text: function() {
                                          if( module.is.textEnabled() ) {
                                            if(module.is.disabled() ) {
                                              module.verbose('Changing text to disabled text', text.hover);
                                              module.update.text(text.disabled);
                              Severity: Minor
                              Found in static/components/state.js - About 1 hr to fix

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

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

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

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

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

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

                                      Function pack has 8 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                              shape, series, seriesIndex, data, dataIndex, name, special, special2
                                      Severity: Major
                                      Found in static/js/dncp/util/ecData.js - About 1 hr to fix

                                        Function dictfetch has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
                                        Open

                                        def dictfetch(cursor, N, offset=None):
                                            """Returns all rows from a cursor as a dict"""
                                            desc = cursor.description
                                            rows = []
                                        
                                        
                                        Severity: Minor
                                        Found in openfonacide/utils.py - About 55 mins to fix

                                        Cognitive Complexity

                                        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                        A method's cognitive complexity is based on a few simple rules:

                                        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                        • Code is considered more complex for each "break in the linear flow of the code"
                                        • Code is considered more complex when "flow breaking structures are nested"

                                        Further reading

                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language