bronycub/sugarcub

View on GitHub

Showing 3,238 of 3,238 total issues

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

test('-1y +2m: Multiformat', patch_date(function(Date){
    Date.now = UTCDate(2012, 2, 15);
    this.input
        .val('-1y +2m')
        .datepicker({format: 'dd-mm-yyyy'})
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 139..146
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 148..155
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 157..164
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 166..173
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 175..182
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 184..191
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 193..200
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 202..209
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 220..227
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 244..251

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

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

test('+1d: Tomorrow', patch_date(function(Date){
    Date.now = UTCDate(2012, 2, 15);
    this.input
        .val('+1d')
        .datepicker({format: 'dd-mm-yyyy'})
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 148..155
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 157..164
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 166..173
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 175..182
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 184..191
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 193..200
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 202..209
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 211..218
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 220..227
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 244..251

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

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

test('+1w: Next week', patch_date(function(Date){
    Date.now = UTCDate(2012, 2, 15);
    this.input
        .val('+1w')
        .datepicker({format: 'dd-mm-yyyy'})
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 139..146
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 148..155
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 166..173
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 175..182
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 184..191
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 193..200
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 202..209
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 211..218
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 220..227
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 244..251

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

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

test('-1y: Last year', patch_date(function(Date){
    Date.now = UTCDate(2012, 2, 15);
    this.input
        .val('-1y')
        .datepicker({format: 'dd-mm-yyyy'})
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 139..146
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 148..155
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 157..164
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 166..173
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 175..182
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 184..191
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 193..200
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 211..218
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 220..227
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 244..251

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

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

test('+1m: Next month', patch_date(function(Date){
    Date.now = UTCDate(2012, 2, 15);
    this.input
        .val('+1m')
        .datepicker({format: 'dd-mm-yyyy'})
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 139..146
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 148..155
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 157..164
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 166..173
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 184..191
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 193..200
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 202..209
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 211..218
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 220..227
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 244..251

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

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

test('-1d: Yesterday', patch_date(function(Date){
    Date.now = UTCDate(2012, 2, 15);
    this.input
        .val('-1d')
        .datepicker({format: 'dd-mm-yyyy'})
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 139..146
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 157..164
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 166..173
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 175..182
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 184..191
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 193..200
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 202..209
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 211..218
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 220..227
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 244..251

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

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

test('-1m: Last month', patch_date(function(Date){
    Date.now = UTCDate(2012, 2, 15);
    this.input
        .val('-1m')
        .datepicker({format: 'dd-mm-yyyy'})
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 139..146
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 148..155
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 157..164
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 166..173
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 175..182
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 193..200
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 202..209
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 211..218
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 220..227
core/static/vendor/bootstrap-datepicker/tests/suites/formats.js on lines 244..251

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

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

export function localeMonthsShort (m, format) {
    if (!m) {
        return this._monthsShort;
    }
    return isArray(this._monthsShort) ? this._monthsShort[m.month()] :
Severity: Major
Found in core/static/vendor/moment/src/lib/units/month.js and 2 other locations - About 2 hrs to fix
core/static/vendor/moment/min/moment-with-locales.js on lines 851..857
core/static/vendor/moment/moment.js on lines 857..863

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

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

addWeekParseToken(['dd', 'ddd', 'dddd'], function (input, week, config, token) {
    var weekday = config._locale.weekdaysParse(input, token, config._strict);
    // if we didn't get a weekday name, mark the date as invalid
    if (weekday != null) {
        week.d = weekday;
Severity: Major
Found in core/static/vendor/moment/moment.js and 2 other locations - About 2 hrs to fix
core/static/vendor/moment/min/moment-with-locales.js on lines 1307..1315
core/static/vendor/moment/src/lib/units/day-of-week.js on lines 58..66

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

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

addWeekParseToken(['dd', 'ddd', 'dddd'], function (input, week, config, token) {
    var weekday = config._locale.weekdaysParse(input, token, config._strict);
    // if we didn't get a weekday name, mark the date as invalid
    if (weekday != null) {
        week.d = weekday;
Severity: Major
Found in core/static/vendor/moment/min/moment-with-locales.js and 2 other locations - About 2 hrs to fix
core/static/vendor/moment/moment.js on lines 1313..1321
core/static/vendor/moment/src/lib/units/day-of-week.js on lines 58..66

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

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

function localeMonthsShort (m, format) {
    if (!m) {
        return this._monthsShort;
    }
    return isArray(this._monthsShort) ? this._monthsShort[m.month()] :
Severity: Major
Found in core/static/vendor/moment/min/moment-with-locales.js and 2 other locations - About 2 hrs to fix
core/static/vendor/moment/moment.js on lines 857..863
core/static/vendor/moment/src/lib/units/month.js on lines 81..87

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

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

function localeMonthsShort (m, format) {
    if (!m) {
        return this._monthsShort;
    }
    return isArray(this._monthsShort) ? this._monthsShort[m.month()] :
Severity: Major
Found in core/static/vendor/moment/moment.js and 2 other locations - About 2 hrs to fix
core/static/vendor/moment/min/moment-with-locales.js on lines 851..857
core/static/vendor/moment/src/lib/units/month.js on lines 81..87

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

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

addWeekParseToken(['dd', 'ddd', 'dddd'], function (input, week, config, token) {
    var weekday = config._locale.weekdaysParse(input, token, config._strict);
    // if we didn't get a weekday name, mark the date as invalid
    if (weekday != null) {
        week.d = weekday;
Severity: Major
Found in core/static/vendor/moment/src/lib/units/day-of-week.js and 2 other locations - About 2 hrs to fix
core/static/vendor/moment/min/moment-with-locales.js on lines 1307..1315
core/static/vendor/moment/moment.js on lines 1313..1321

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

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

test('preserve numbers as words', function() {
  equal(this.preserveNumbers.find('.details').length, 1, 'created detail');

  this.preserveNumbers.find('.read-more, .details').remove();

Severity: Major
Found in core/static/vendor/jquery-expander/test/tests.js and 1 other location - About 2 hrs to fix
core/static/vendor/jquery-expander/test/tests.js on lines 420..426

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

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 inArray( elem, array ) {
    if ( array.indexOf ) {
        return array.indexOf( elem );
    }

core/static/vendor/bootstrap-datepicker/tests/assets/qunit.js on lines 1505..1517

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

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

test('single long string, no child elements', function() {
  equal(this.zzz.find('.details').length, 1, 'created detail');

  this.zzz.find('.read-more, .details').remove();

Severity: Major
Found in core/static/vendor/jquery-expander/test/tests.js and 1 other location - About 2 hrs to fix
core/static/vendor/jquery-expander/test/tests.js on lines 457..463

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

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 inArray( elem, array ) {
    if ( array.indexOf ) {
        return array.indexOf( elem );
    }

core/static/vendor/jquery-expander/test/qunit/qunit.1.19.0.js on lines 67..79

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

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

                    function resolve( depth, deferred, handler, special ) {
                        return function() {
                            var that = this,
                                args = arguments,
                                mightThrow = function() {
Severity: Major
Found in core/static/vendor/jquery/dist/jquery.js - About 2 hrs to fix

    Function resolve has 69 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

                        function resolve( depth, deferred, handler, special ) {
                            return function() {
                                var that = this,
                                    args = arguments,
                                    mightThrow = function() {
    Severity: Major
    Found in core/static/vendor/jquery/dist/jquery.slim.js - About 2 hrs to fix

      Function resolve has 69 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

                          function resolve( depth, deferred, handler, special ) {
                              return function() {
                                  var that = this,
                                      args = arguments,
                                      mightThrow = function() {
      Severity: Major
      Found in core/static/vendor/jquery/src/deferred.js - About 2 hrs to fix
        Severity
        Category
        Status
        Source
        Language