monsij/StudentPortal

View on GitHub

Showing 1,204 of 1,204 total issues

Function easeInOutElastic has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

    easeInOutElastic: function (x, t, b, c, d) {
Severity: Minor
Found in pro1/staticfiles/bootstrap/js/mdb.js - About 35 mins to fix

    Function easeOutBounce has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        easeOutBounce: function (x, t, b, c, d) {
    Severity: Minor
    Found in pro1/staticfiles/bootstrap/js/mdb.js - About 35 mins to fix

      Function easeInOutQuart has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          easeInOutQuart: function (x, t, b, c, d) {
      Severity: Minor
      Found in pro1/staticfiles/bootstrap/js/mdb.js - About 35 mins to fix

        Function easeOutExpo has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            easeOutExpo: function (x, t, b, c, d) {
        Severity: Minor
        Found in pro1/staticfiles/bootstrap/js/mdb.js - About 35 mins to fix

          Function easeOutElastic has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              easeOutElastic: function (x, t, b, c, d) {
          Severity: Minor
          Found in pro1/staticfiles/bootstrap/js/mdb.js - About 35 mins to fix

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

                        document.addEventListener('keyup', function(event) {
                            if (event.which === 27) {
                                // ESC key closes popup
                                DateTimeShortcuts.dismissClock(num);
                                event.preventDefault();
            Severity: Minor
            Found in pro1/staticfiles/admin/js/admin/DateTimeShortcuts.js and 1 other location - About 35 mins to fix
            pro1/staticfiles/admin/js/admin/DateTimeShortcuts.js on lines 348..354

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

            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

                        django.jQuery(document).on('keyup', function(event) {
                            if (event.which === 27) {
                                // ESC key closes popup
                                DateTimeShortcuts.dismissCalendar(num);
                                event.preventDefault();
            Severity: Minor
            Found in pro1/staticfiles/admin/js/admin/DateTimeShortcuts.js and 1 other location - About 35 mins to fix
            pro1/staticfiles/admin/js/admin/DateTimeShortcuts.js on lines 189..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 47.

            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 too many return statements within this function.
            Open

                        return host.length ?
                            [ host.data('dt-column') ] :
                            [];
            Severity: Major
            Found in pro1/staticfiles/blog/bootstrap/js/addons/datatables.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                          return function (data, type) { // row and meta also passed, but not used
                              return data[mSource];
                          };
              Severity: Major
              Found in pro1/staticfiles/blog/bootstrap/js/addons/datatables.js - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                            return function (data, val) { // meta is also passed in, but not used
                                data[mSource] = val;
                            };
                Severity: Major
                Found in pro1/staticfiles/blog/bootstrap/js/addons/datatables.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                                      return aoData[ rowIdx ] && aoData[ rowIdx ].nTr === sel ?
                                          [ rowIdx ] :
                                          [];
                  Severity: Major
                  Found in pro1/staticfiles/blog/bootstrap/js/addons/datatables.js - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                                        return aoData[ cellIdx.row ] && aoData[ cellIdx.row ].nTr === sel ?
                                            [ cellIdx.row ] :
                                            [];
                    Severity: Major
                    Found in pro1/staticfiles/blog/bootstrap/js/addons/datatables.js - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                                              return [ _fnVisibleToColumnIndex( settings, idx ) ];
                      Severity: Major
                      Found in pro1/staticfiles/blog/bootstrap/js/addons/datatables.js - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                                    return jq.map( function(i) {
                                        idx = $.inArray( this, tables );
                                        return idx !== -1 ? settings[idx] : null;
                                    } ).toArray();
                        Severity: Major
                        Found in pro1/staticfiles/blog/bootstrap/js/addons/datatables.js - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                          return [ s._DT_CellIndex.column ];
                          Severity: Major
                          Found in pro1/staticfiles/blog/bootstrap/js/addons/datatables.js - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                                return host.length ?
                                                    [ host.data('dt-row') ] :
                                                    [];
                            Severity: Major
                            Found in pro1/staticfiles/blog/bootstrap/js/addons/datatables.js - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                                  return [ rowObj.idx ];
                              Severity: Major
                              Found in pro1/staticfiles/blog/bootstrap/js/addons/datatables.js - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                    return num.toFixed(1) + 'k';
                                Severity: Major
                                Found in pro1/blog/static/blog/js/card.js - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                                  return jqResult;
                                  Severity: Major
                                  Found in pro1/staticfiles/blog/bootstrap/js/addons/datatables.js - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                                return $(nodes)
                                                    .filter( sel )
                                                    .map( function () {
                                                        return this._DT_RowIndex;
                                                    } )
                                    Severity: Major
                                    Found in pro1/staticfiles/blog/bootstrap/js/addons/datatables.js - About 30 mins to fix
                                      Severity
                                      Category
                                      Status
                                      Source
                                      Language