monsij/StudentPortal

View on GitHub

Showing 1,204 of 1,204 total issues

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

jQuery.extend( jQuery.easing,
{
    def: 'easeOutQuad',
    swing: function (x, t, b, c, d) {
        //alert(jQuery.easing.default);
Severity: Major
Found in pro1/staticfiles/blog/bootstrap/js/mdb.js and 1 other location - About 2 wks to fix
pro1/staticfiles/bootstrap/js/mdb.js on lines 82..213

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

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

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

jQuery.extend( jQuery.easing,
{
    def: 'easeOutQuad',
    swing: function (x, t, b, c, d) {
        //alert(jQuery.easing.default);
Severity: Major
Found in pro1/staticfiles/bootstrap/js/mdb.js and 1 other location - About 2 wks to fix
pro1/staticfiles/blog/bootstrap/js/mdb.js on lines 82..213

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

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

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

jQuery.extend( jQuery.easing,
{
    def: 'easeOutQuad',
    swing: function (x, t, b, c, d) {
        //alert(jQuery.easing.default);
Severity: Major
Found in pro1/staticfiles/blog/bootstrap/js/modules/jquery.easing.js and 1 other location - About 2 wks to fix
pro1/staticfiles/bootstrap/js/modules/jquery.easing.js on lines 41..172

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

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

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

jQuery.extend( jQuery.easing,
{
    def: 'easeOutQuad',
    swing: function (x, t, b, c, d) {
        //alert(jQuery.easing.default);
Severity: Major
Found in pro1/staticfiles/bootstrap/js/modules/jquery.easing.js and 1 other location - About 2 wks to fix
pro1/staticfiles/blog/bootstrap/js/modules/jquery.easing.js on lines 41..172

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

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

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

(function ($) {
  let inputSelector = `${['text', 'password', 'email', 'url', 'tel', 'number', 'search', 'search-md'].map(function (selector) {
    return `input[type=${selector}]`;
  }).join(', ')}, textarea`;
  let textAreaSelector = '.materialize-textarea';
Severity: Major
Found in pro1/staticfiles/bootstrap/js/mdb.js and 1 other location - About 1 wk to fix
pro1/staticfiles/blog/bootstrap/js/mdb.js on lines 15449..15617

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

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

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

(function ($) {
  let inputSelector = `${['text', 'password', 'email', 'url', 'tel', 'number', 'search', 'search-md'].map(function (selector) {
    return `input[type=${selector}]`;
  }).join(', ')}, textarea`;
  let textAreaSelector = '.materialize-textarea';
Severity: Major
Found in pro1/staticfiles/blog/bootstrap/js/mdb.js and 1 other location - About 1 wk to fix
pro1/staticfiles/bootstrap/js/mdb.js on lines 15449..15617

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

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

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

(function ($) {
  let inputSelector = `${['text', 'password', 'email', 'url', 'tel', 'number', 'search', 'search-md'].map(function (selector) {
    return `input[type=${selector}]`;
  }).join(', ')}, textarea`;
  let textAreaSelector = '.materialize-textarea';
Severity: Major
Found in pro1/staticfiles/blog/bootstrap/js/modules/forms-free.js and 1 other location - About 1 wk to fix
pro1/staticfiles/bootstrap/js/modules/forms-free.js on lines 5..173

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

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

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

(function ($) {
  let inputSelector = `${['text', 'password', 'email', 'url', 'tel', 'number', 'search', 'search-md'].map(function (selector) {
    return `input[type=${selector}]`;
  }).join(', ')}, textarea`;
  let textAreaSelector = '.materialize-textarea';
Severity: Major
Found in pro1/staticfiles/bootstrap/js/modules/forms-free.js and 1 other location - About 1 wk to fix
pro1/staticfiles/blog/bootstrap/js/modules/forms-free.js on lines 5..173

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

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

(function($) {

    WOW = function WOW() {

        return {
Severity: Major
Found in pro1/staticfiles/blog/bootstrap/js/modules/wow.js and 3 other locations - About 1 wk to fix
pro1/staticfiles/blog/bootstrap/js/mdb.js on lines 14641..14816
pro1/staticfiles/bootstrap/js/mdb.js on lines 14641..14816
pro1/staticfiles/bootstrap/js/modules/wow.js on lines 5..180

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

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

(function($) {

    WOW = function WOW() {

        return {
Severity: Major
Found in pro1/staticfiles/bootstrap/js/modules/wow.js and 3 other locations - About 1 wk to fix
pro1/staticfiles/blog/bootstrap/js/mdb.js on lines 14641..14816
pro1/staticfiles/blog/bootstrap/js/modules/wow.js on lines 5..180
pro1/staticfiles/bootstrap/js/mdb.js on lines 14641..14816

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

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

(function($) {

    WOW = function WOW() {

        return {
Severity: Major
Found in pro1/staticfiles/bootstrap/js/mdb.js and 3 other locations - About 1 wk to fix
pro1/staticfiles/blog/bootstrap/js/mdb.js on lines 14641..14816
pro1/staticfiles/blog/bootstrap/js/modules/wow.js on lines 5..180
pro1/staticfiles/bootstrap/js/modules/wow.js on lines 5..180

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

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

(function($) {

    WOW = function WOW() {

        return {
Severity: Major
Found in pro1/staticfiles/blog/bootstrap/js/mdb.js and 3 other locations - About 1 wk to fix
pro1/staticfiles/blog/bootstrap/js/modules/wow.js on lines 5..180
pro1/staticfiles/bootstrap/js/mdb.js on lines 14641..14816
pro1/staticfiles/bootstrap/js/modules/wow.js on lines 5..180

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

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

File bootstrap.js has 2830 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*!
  * Bootstrap v4.1.3 (https://getbootstrap.com/)
  * Copyright 2011-2018 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  */
Severity: Major
Found in pro1/staticfiles/blog/bootstrap/js/bootstrap.js - About 1 wk to fix

    File bootstrap.js has 2830 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /*!
      * Bootstrap v4.1.3 (https://getbootstrap.com/)
      * Copyright 2011-2018 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
      * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
      */
    Severity: Major
    Found in pro1/staticfiles/bootstrap/js/bootstrap.js - About 1 wk to fix

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

      (function( factory ){
          if ( typeof define === 'function' && define.amd ) {
              // AMD
              define( ['jquery', 'datatables.net'], function ( $ ) {
                  return factory( $, window, document );
      Severity: Major
      Found in pro1/staticfiles/bootstrap/js/addons/datatables.js and 1 other location - About 6 days to fix
      pro1/staticfiles/blog/bootstrap/js/addons/datatables.js on lines 15327..15498

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

      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

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

      (function( factory ){
          if ( typeof define === 'function' && define.amd ) {
              // AMD
              define( ['jquery', 'datatables.net'], function ( $ ) {
                  return factory( $, window, document );
      Severity: Major
      Found in pro1/staticfiles/blog/bootstrap/js/addons/datatables.js and 1 other location - About 6 days to fix
      pro1/staticfiles/bootstrap/js/addons/datatables.js on lines 15327..15498

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

      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 35 has 702 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      },{"45":45}],35:[function(require,module,exports){
      'use strict';
      
      var defaults = require(25);
      var Element = require(26);
      Severity: Major
      Found in pro1/staticfiles/blog/bootstrap/js/modules/chart.js - About 3 days to fix

        Function 35 has 702 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        },{"45":45}],35:[function(require,module,exports){
        'use strict';
        
        var defaults = require(25);
        var Element = require(26);
        Severity: Major
        Found in pro1/staticfiles/blog/bootstrap/js/mdb.js - About 3 days to fix

          Function 35 has 702 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          },{"45":45}],35:[function(require,module,exports){
          'use strict';
          
          var defaults = require(25);
          var Element = require(26);
          Severity: Major
          Found in pro1/staticfiles/bootstrap/js/modules/chart.js - About 3 days to fix

            Function 35 has 702 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            },{"45":45}],35:[function(require,module,exports){
            'use strict';
            
            var defaults = require(25);
            var Element = require(26);
            Severity: Major
            Found in pro1/staticfiles/bootstrap/js/mdb.js - About 3 days to fix
              Severity
              Category
              Status
              Source
              Language