18F/continua11y

View on GitHub

Showing 1,029 of 1,029 total issues

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

    mouseMove : function( c, wo, event ) {
        if ( wo.resizable_.mouseXPosition === 0 || !wo.resizable_.$target ) { return; }
        // resize columns
        var column,
            total = 0,
Severity: Minor
Found in public/js/jquery.tablesorter.widgets.js - About 1 hr to fix

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

            url = options && options.url ||
                $table.attr(options && options.page || wo && wo.storage_page || 'data-table-page') ||
                wo && wo.storage_fixedUrl || c && c.fixedUrl || window.location.pathname;
    Severity: Major
    Found in public/js/jquery.tablesorter.widgets.js and 1 other location - About 1 hr to fix
    public/js/jquery.tablesorter.widgets.js on lines 55..57

    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 58.

    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 2 locations. Consider refactoring.
    Open

            id = options && options.id ||
                $table.attr( options && options.group || wo && wo.storage_group || 'data-table-group') ||
                wo && wo.storage_tableId || table.id || $('.tablesorter').index( $table ),
    Severity: Major
    Found in public/js/jquery.tablesorter.widgets.js and 1 other location - About 1 hr to fix
    public/js/jquery.tablesorter.widgets.js on lines 60..62

    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 58.

    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

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

            range : function( c, data ) {
                if ( ts.filter.regex.toTest.test( data.iFilter ) ) {
                    var result, tmp, range1, range2,
                        table = c.table,
                        index = data.index,
    Severity: Minor
    Found in public/js/jquery.tablesorter.widgets.js - About 1 hr to fix

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

      ts.resizableReset = function( table, refreshing ) {
          $( table ).each(function(){
              var index, $t,
                  c = this.config,
                  wo = c && c.widgetOptions,
      Severity: Minor
      Found in public/js/jquery.tablesorter.widgets.js - About 1 hr to fix

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

                    scrollSticky = function( resizing ) {
                        if (!$table.is(':visible')) { return; } // fixes #278
                        // Detect nested tables - fixes #724
                        nestedStickyTop = $nestedSticky.length ? $nestedSticky.offset().top - $yScroll.scrollTop() + $nestedSticky.height() : 0;
                        var offset = $table.offset(),
        Severity: Minor
        Found in public/js/jquery.tablesorter.widgets.js - About 1 hr to fix

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

                      setWidth = function($orig, $clone){
                          var index, width, border, $cell, $this,
                              $cells = $orig.filter(':visible'),
                              len = $cells.length;
                          for ( index = 0; index < len; index++ ) {
          Severity: Minor
          Found in public/js/jquery.tablesorter.widgets.js - About 1 hr to fix

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

                filterInitComplete: function( c ) {
                    var indx, len,
                        wo = c.widgetOptions,
                        count = 0,
                        completed = function() {
            Severity: Minor
            Found in public/js/jquery.tablesorter.widgets.js - About 1 hr to fix

              Consider simplifying this complex logical expression.
              Open

                          if ( /\|/.test( data.iFilter ) || ts.filter.regex.orSplit.test( data.filter ) ) {
                              var indx, filterMatched, txt, query, regex,
                                  // duplicate data but split filter
                                  data2 = $.extend( {}, data ),
                                  index = data.index,
              Severity: Major
              Found in public/js/jquery.tablesorter.widgets.js - About 1 hr to fix

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

                    models.Repo.create({
                        repo: 7654321,
                        repoName: 'test/two',
                        defaultBranch: 'develop',
                        total: 100,
                Severity: Minor
                Found in lib/seed.js and 1 other location - About 55 mins to fix
                lib/seed.js on lines 8..143

                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 54.

                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 2 locations. Consider refactoring.
                Open

                    models.Repo.create({
                        repo: 1234567,
                        repoName: 'test/one',
                        defaultBranch: 'release',
                        total: 200,
                Severity: Minor
                Found in lib/seed.js and 1 other location - About 55 mins to fix
                lib/seed.js on lines 144..195

                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 54.

                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 2 locations. Consider refactoring.
                Open

                                wo.zebra[1] = $.trim( ' ' + wo.zebra[1].replace(' ' + oldtheme.odd, '') );
                Severity: Minor
                Found in public/js/jquery.tablesorter.widgets.js and 1 other location - About 50 mins to fix
                public/js/jquery.tablesorter.widgets.js on lines 184..184

                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 52.

                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 2 locations. Consider refactoring.
                Open

                                wo.zebra[0] = $.trim( ' ' + wo.zebra[0].replace(' ' + oldtheme.even, '') );
                Severity: Minor
                Found in public/js/jquery.tablesorter.widgets.js and 1 other location - About 50 mins to fix
                public/js/jquery.tablesorter.widgets.js on lines 185..185

                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 52.

                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

                Avoid deeply nested control flow statements.
                Open

                                            for (indx = 1; indx < len; indx++) {
                                                // secondary, tertiary, etc sort column classes
                                                $cells.eq(sortList[indx][0]).addClass( css[indx] || css[last] );
                                            }
                Severity: Major
                Found in public/js/jquery.tablesorter.widgets.js - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                                          if ( !searchFiltered ) { indx = columnIndex; }
                  Severity: Major
                  Found in public/js/jquery.tablesorter.widgets.js - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                                            for ( indx = 0; indx < query.length; indx++ ) {
                                                res = query[ indx ].split( ':' );
                                                if ( res.length > 1 ) {
                                                    // make the column a one-based index ( non-developers start counting from one :P )
                                                    id = parseInt( res[0], 10 ) - 1;
                    Severity: Major
                    Found in public/js/jquery.tablesorter.widgets.js - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                                              for ( string in fxn ) {
                                                  if ( typeof string === 'string' ) {
                                                      options += options === '' ?
                                                          '<option value="">' +
                                                              ( $header.data( 'placeholder' ) ||
                      Severity: Major
                      Found in public/js/jquery.tablesorter.widgets.js - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                                if ( wo.filter_childByColumn ) {
                                                    // cycle through each child row
                                                    for ( indx = 0; indx < childRow.length; indx++ ) {
                                                        data.$row = childRow.eq( indx );
                                                        data.cacheArray = rowData.child[ indx ];
                        Severity: Major
                        Found in public/js/jquery.tablesorter.widgets.js - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                              if ( $.isArray( setFilters ) ) {
                                                  // skip first ( latest input ) to maintain cursor position while typing
                                                  if ( skipFirst && $column.length > 1 ) {
                                                      $column = $column.slice( 1 );
                                                  }
                          Severity: Major
                          Found in public/js/jquery.tablesorter.widgets.js - About 45 mins to fix

                            Avoid deeply nested control flow statements.
                            Open

                                                    if ( fxn ) {
                                                        // updating so the extra options are appended
                                                        ts.filter.buildSelect( c.table, column, '', true, $header.hasClass( wo.filter_onlyAvail ) );
                                                    }
                            Severity: Major
                            Found in public/js/jquery.tablesorter.widgets.js - About 45 mins to fix
                              Severity
                              Category
                              Status
                              Source
                              Language