kuasha/cosmos

View on GitHub

Showing 2,966 of 7,770 total issues

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

    function isString(value) {
      return typeof value == 'string' ||
        value && typeof value == 'object' && toString.call(value) == stringClass || false;
    }
Severity: Major
Found in samples/adminpanel/app/lib/js/lodash.js and 1 other location - About 1 hr to fix
samples/adminpanel/app/lib/js/lodash.js on lines 2488..2491

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

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

    function isNumber(value) {
      return typeof value == 'number' ||
        value && typeof value == 'object' && toString.call(value) == numberClass || false;
    }
Severity: Major
Found in samples/adminpanel/app/lib/js/lodash.js and 1 other location - About 1 hr to fix
samples/adminpanel/app/lib/js/lodash.js on lines 2559..2562

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

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

(function( factory ) {
    if ( typeof define === "function" && define.amd ) {

        // AMD. Register as an anonymous module.
        define([
samples/adminpanel/app/bower_components/jquery-ui/ui/datepicker.js on lines 11..2073
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-blind.js on lines 11..90
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-bounce.js on lines 11..123
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-clip.js on lines 11..77
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-drop.js on lines 11..75
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-explode.js on lines 11..107
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-fade.js on lines 11..40
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-fold.js on lines 11..86
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-highlight.js on lines 11..60
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-pulsate.js on lines 11..73
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-shake.js on lines 11..84
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-slide.js on lines 11..74
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-transfer.js on lines 11..57
samples/adminpanel/app/bower_components/jquery-ui/ui/mouse.js on lines 11..187

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

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

(function( factory ) {
    if ( typeof define === "function" && define.amd ) {

        // AMD. Register as an anonymous module.
        define([
samples/adminpanel/app/bower_components/jquery-ui/ui/datepicker.js on lines 11..2073
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-blind.js on lines 11..90
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-bounce.js on lines 11..123
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-clip.js on lines 11..77
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-drop.js on lines 11..75
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-explode.js on lines 11..107
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-fade.js on lines 11..40
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-fold.js on lines 11..86
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-highlight.js on lines 11..60
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-shake.js on lines 11..84
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-size.js on lines 11..233
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-slide.js on lines 11..74
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-transfer.js on lines 11..57
samples/adminpanel/app/bower_components/jquery-ui/ui/mouse.js on lines 11..187

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

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

(function( factory ) {
    if ( typeof define === "function" && define.amd ) {

        // AMD. Register as an anonymous module.
        define([
samples/adminpanel/app/bower_components/jquery-ui/ui/datepicker.js on lines 11..2073
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-blind.js on lines 11..90
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-bounce.js on lines 11..123
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-clip.js on lines 11..77
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-explode.js on lines 11..107
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-fade.js on lines 11..40
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-fold.js on lines 11..86
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-highlight.js on lines 11..60
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-pulsate.js on lines 11..73
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-shake.js on lines 11..84
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-size.js on lines 11..233
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-slide.js on lines 11..74
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-transfer.js on lines 11..57
samples/adminpanel/app/bower_components/jquery-ui/ui/mouse.js on lines 11..187

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

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

(function( factory ) {
    if ( typeof define === "function" && define.amd ) {

        // AMD. Register as an anonymous module.
        define([
samples/adminpanel/app/bower_components/jquery-ui/ui/datepicker.js on lines 11..2073
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-blind.js on lines 11..90
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-bounce.js on lines 11..123
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-clip.js on lines 11..77
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-drop.js on lines 11..75
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-fade.js on lines 11..40
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-fold.js on lines 11..86
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-highlight.js on lines 11..60
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-pulsate.js on lines 11..73
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-shake.js on lines 11..84
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-size.js on lines 11..233
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-slide.js on lines 11..74
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-transfer.js on lines 11..57
samples/adminpanel/app/bower_components/jquery-ui/ui/mouse.js on lines 11..187

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

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

(function( factory ) {
    if ( typeof define === "function" && define.amd ) {

        // AMD. Register as an anonymous module.
        define([
samples/adminpanel/app/bower_components/jquery-ui/ui/datepicker.js on lines 11..2073
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-blind.js on lines 11..90
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-clip.js on lines 11..77
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-drop.js on lines 11..75
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-explode.js on lines 11..107
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-fade.js on lines 11..40
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-fold.js on lines 11..86
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-highlight.js on lines 11..60
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-pulsate.js on lines 11..73
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-shake.js on lines 11..84
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-size.js on lines 11..233
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-slide.js on lines 11..74
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-transfer.js on lines 11..57
samples/adminpanel/app/bower_components/jquery-ui/ui/mouse.js on lines 11..187

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

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

(function( factory ) {
    if ( typeof define === "function" && define.amd ) {

        // AMD. Register as an anonymous module.
        define([
samples/adminpanel/app/bower_components/jquery-ui/ui/datepicker.js on lines 11..2073
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-blind.js on lines 11..90
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-bounce.js on lines 11..123
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-clip.js on lines 11..77
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-drop.js on lines 11..75
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-explode.js on lines 11..107
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-fade.js on lines 11..40
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-highlight.js on lines 11..60
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-pulsate.js on lines 11..73
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-shake.js on lines 11..84
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-size.js on lines 11..233
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-slide.js on lines 11..74
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-transfer.js on lines 11..57
samples/adminpanel/app/bower_components/jquery-ui/ui/mouse.js on lines 11..187

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

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

(function( factory ) {
    if ( typeof define === "function" && define.amd ) {

        // AMD. Register as an anonymous module.
        define([
samples/adminpanel/app/bower_components/jquery-ui/ui/datepicker.js on lines 11..2073
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-blind.js on lines 11..90
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-bounce.js on lines 11..123
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-clip.js on lines 11..77
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-drop.js on lines 11..75
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-explode.js on lines 11..107
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-fade.js on lines 11..40
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-fold.js on lines 11..86
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-highlight.js on lines 11..60
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-pulsate.js on lines 11..73
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-shake.js on lines 11..84
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-size.js on lines 11..233
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-slide.js on lines 11..74
samples/adminpanel/app/bower_components/jquery-ui/ui/mouse.js on lines 11..187

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

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

(function( factory ) {
    if ( typeof define === "function" && define.amd ) {

        // AMD. Register as an anonymous module.
        define([
samples/adminpanel/app/bower_components/jquery-ui/ui/datepicker.js on lines 11..2073
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-blind.js on lines 11..90
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-bounce.js on lines 11..123
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-clip.js on lines 11..77
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-drop.js on lines 11..75
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-explode.js on lines 11..107
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-fade.js on lines 11..40
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-fold.js on lines 11..86
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-highlight.js on lines 11..60
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-pulsate.js on lines 11..73
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-size.js on lines 11..233
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-slide.js on lines 11..74
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-transfer.js on lines 11..57
samples/adminpanel/app/bower_components/jquery-ui/ui/mouse.js on lines 11..187

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

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

(function( factory ) {
    if ( typeof define === "function" && define.amd ) {

        // AMD. Register as an anonymous module.
        define([
samples/adminpanel/app/bower_components/jquery-ui/ui/datepicker.js on lines 11..2073
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-blind.js on lines 11..90
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-bounce.js on lines 11..123
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-drop.js on lines 11..75
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-explode.js on lines 11..107
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-fade.js on lines 11..40
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-fold.js on lines 11..86
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-highlight.js on lines 11..60
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-pulsate.js on lines 11..73
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-shake.js on lines 11..84
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-size.js on lines 11..233
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-slide.js on lines 11..74
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-transfer.js on lines 11..57
samples/adminpanel/app/bower_components/jquery-ui/ui/mouse.js on lines 11..187

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

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

(function( factory ) {
    if ( typeof define === "function" && define.amd ) {

        // AMD. Register as an anonymous module.
        define([
samples/adminpanel/app/bower_components/jquery-ui/ui/datepicker.js on lines 11..2073
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-blind.js on lines 11..90
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-bounce.js on lines 11..123
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-clip.js on lines 11..77
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-drop.js on lines 11..75
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-explode.js on lines 11..107
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-fold.js on lines 11..86
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-highlight.js on lines 11..60
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-pulsate.js on lines 11..73
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-shake.js on lines 11..84
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-size.js on lines 11..233
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-slide.js on lines 11..74
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-transfer.js on lines 11..57
samples/adminpanel/app/bower_components/jquery-ui/ui/mouse.js on lines 11..187

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

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

(function( factory ) {
    if ( typeof define === "function" && define.amd ) {

        // AMD. Register as an anonymous module.
        define([
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-blind.js on lines 11..90
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-bounce.js on lines 11..123
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-clip.js on lines 11..77
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-drop.js on lines 11..75
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-explode.js on lines 11..107
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-fade.js on lines 11..40
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-fold.js on lines 11..86
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-highlight.js on lines 11..60
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-pulsate.js on lines 11..73
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-shake.js on lines 11..84
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-size.js on lines 11..233
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-slide.js on lines 11..74
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-transfer.js on lines 11..57
samples/adminpanel/app/bower_components/jquery-ui/ui/mouse.js on lines 11..187

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

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

(function( factory ) {
    if ( typeof define === "function" && define.amd ) {

        // AMD. Register as an anonymous module.
        define([
samples/adminpanel/app/bower_components/jquery-ui/ui/datepicker.js on lines 11..2073
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-bounce.js on lines 11..123
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-clip.js on lines 11..77
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-drop.js on lines 11..75
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-explode.js on lines 11..107
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-fade.js on lines 11..40
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-fold.js on lines 11..86
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-highlight.js on lines 11..60
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-pulsate.js on lines 11..73
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-shake.js on lines 11..84
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-size.js on lines 11..233
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-slide.js on lines 11..74
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-transfer.js on lines 11..57
samples/adminpanel/app/bower_components/jquery-ui/ui/mouse.js on lines 11..187

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

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

(function( factory ) {
    if ( typeof define === "function" && define.amd ) {

        // AMD. Register as an anonymous module.
        define([
samples/adminpanel/app/bower_components/jquery-ui/ui/datepicker.js on lines 11..2073
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-blind.js on lines 11..90
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-bounce.js on lines 11..123
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-clip.js on lines 11..77
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-drop.js on lines 11..75
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-explode.js on lines 11..107
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-fade.js on lines 11..40
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-fold.js on lines 11..86
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-highlight.js on lines 11..60
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-pulsate.js on lines 11..73
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-shake.js on lines 11..84
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-size.js on lines 11..233
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-slide.js on lines 11..74
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-transfer.js on lines 11..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 55.

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

(function( factory ) {
    if ( typeof define === "function" && define.amd ) {

        // AMD. Register as an anonymous module.
        define([
samples/adminpanel/app/bower_components/jquery-ui/ui/datepicker.js on lines 11..2073
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-blind.js on lines 11..90
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-bounce.js on lines 11..123
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-clip.js on lines 11..77
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-drop.js on lines 11..75
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-explode.js on lines 11..107
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-fade.js on lines 11..40
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-fold.js on lines 11..86
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-pulsate.js on lines 11..73
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-shake.js on lines 11..84
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-size.js on lines 11..233
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-slide.js on lines 11..74
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-transfer.js on lines 11..57
samples/adminpanel/app/bower_components/jquery-ui/ui/mouse.js on lines 11..187

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

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

(function( factory ) {
    if ( typeof define === "function" && define.amd ) {

        // AMD. Register as an anonymous module.
        define([
samples/adminpanel/app/bower_components/jquery-ui/ui/datepicker.js on lines 11..2073
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-blind.js on lines 11..90
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-bounce.js on lines 11..123
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-clip.js on lines 11..77
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-drop.js on lines 11..75
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-explode.js on lines 11..107
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-fade.js on lines 11..40
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-fold.js on lines 11..86
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-highlight.js on lines 11..60
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-pulsate.js on lines 11..73
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-shake.js on lines 11..84
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-size.js on lines 11..233
samples/adminpanel/app/bower_components/jquery-ui/ui/effect-transfer.js on lines 11..57
samples/adminpanel/app/bower_components/jquery-ui/ui/mouse.js on lines 11..187

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

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.each("Boolean Number String Function Array Date RegExp Object Error".split(" "), function(i, name) {
    class2type[ "[object " + name + "]" ] = name.toLowerCase();
});
samples/adminpanel/app/bower_components/jquery/src/core.js on lines 477..479

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

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.each("Boolean Number String Function Array Date RegExp Object Error".split(" "), function(i, name) {
    class2type[ "[object " + name + "]" ] = name.toLowerCase();
});
Severity: Major
Found in samples/adminpanel/app/bower_components/jquery/src/core.js and 1 other location - About 1 hr to fix
samples/adminpanel/app/bower_components/jquery/dist/jquery.js on lines 530..532

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

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

            isOverRightHalf = isOverAxis(this.positionAbs.left + this.offset.click.left, item.left + (item.width/2), item.width),
Severity: Major
Found in samples/adminpanel/app/lib/js/jquery-ui.js and 1 other location - About 1 hr to fix
samples/adminpanel/app/lib/js/jquery-ui.js on lines 4075..4075

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

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