Showing 2,206 of 2,206 total issues

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

        <Grid
          dir={dir}
          columns={{
            group0: 6,
            group1: 6,
Severity: Major
Found in src/app/legacy/psammead/psammead-grid/src/index.stories.jsx and 1 other location - About 1 day to fix
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1940..1988

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

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

storiesOf('Components/StoryPromo/StoryPromoList', module)
  .addDecorator(withKnobs)
  .add(
    'default',
    () => (
src/app/legacy/psammead/psammead-story-promo-list/src/index.stories.jsx on lines 131..163

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

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

        <Grid
          dir={dir}
          columns={{
            group0: 6,
            group1: 6,
Severity: Major
Found in src/app/legacy/psammead/psammead-grid/src/index.stories.jsx and 1 other location - About 1 day to fix
src/app/legacy/psammead/psammead-grid/src/index.stories.jsx on lines 1636..1684

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

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

            _ = function(e, t, n, r) {
                return new (n || (n = Promise))((function(o, i) {
                    function s(e) {
                        try {
                            c(r.next(e))
Severity: Major
Found in public/vendor/cwr.js and 7 other locations - About 1 day to fix
public/vendor/cwr.js on lines 1082..1106
public/vendor/cwr.js on lines 1460..1484
public/vendor/cwr.js on lines 1816..1840
public/vendor/cwr.js on lines 3266..3290
public/vendor/cwr.js on lines 3562..3586
public/vendor/cwr.js on lines 4800..4824
public/vendor/cwr.js on lines 4958..4982

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

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

            }(), wt = function(e, t, n, r) {
                return new (n || (n = Promise))((function(o, i) {
                    function s(e) {
                        try {
                            c(r.next(e))
Severity: Major
Found in public/vendor/cwr.js and 7 other locations - About 1 day to fix
public/vendor/cwr.js on lines 1082..1106
public/vendor/cwr.js on lines 1460..1484
public/vendor/cwr.js on lines 1618..1642
public/vendor/cwr.js on lines 1816..1840
public/vendor/cwr.js on lines 3266..3290
public/vendor/cwr.js on lines 4800..4824
public/vendor/cwr.js on lines 4958..4982

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

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

            Pn = function(e, t, n, r) {
                return new (n || (n = Promise))((function(o, i) {
                    function s(e) {
                        try {
                            c(r.next(e))
Severity: Major
Found in public/vendor/cwr.js and 7 other locations - About 1 day to fix
public/vendor/cwr.js on lines 1082..1106
public/vendor/cwr.js on lines 1460..1484
public/vendor/cwr.js on lines 1618..1642
public/vendor/cwr.js on lines 1816..1840
public/vendor/cwr.js on lines 3266..3290
public/vendor/cwr.js on lines 3562..3586
public/vendor/cwr.js on lines 4958..4982

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

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

        var i = function(e, t, n, r) {
                return new (n || (n = Promise))((function(o, i) {
                    function s(e) {
                        try {
                            c(r.next(e))
Severity: Major
Found in public/vendor/cwr.js and 7 other locations - About 1 day to fix
public/vendor/cwr.js on lines 1460..1484
public/vendor/cwr.js on lines 1618..1642
public/vendor/cwr.js on lines 1816..1840
public/vendor/cwr.js on lines 3266..3290
public/vendor/cwr.js on lines 3562..3586
public/vendor/cwr.js on lines 4800..4824
public/vendor/cwr.js on lines 4958..4982

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

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

            k = function(e, t, n, r) {
                return new (n || (n = Promise))((function(o, i) {
                    function s(e) {
                        try {
                            c(r.next(e))
Severity: Major
Found in public/vendor/cwr.js and 7 other locations - About 1 day to fix
public/vendor/cwr.js on lines 1082..1106
public/vendor/cwr.js on lines 1460..1484
public/vendor/cwr.js on lines 1618..1642
public/vendor/cwr.js on lines 3266..3290
public/vendor/cwr.js on lines 3562..3586
public/vendor/cwr.js on lines 4800..4824
public/vendor/cwr.js on lines 4958..4982

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

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

            Rn = function(e, t, n, r) {
                return new (n || (n = Promise))((function(o, i) {
                    function s(e) {
                        try {
                            c(r.next(e))
Severity: Major
Found in public/vendor/cwr.js and 7 other locations - About 1 day to fix
public/vendor/cwr.js on lines 1082..1106
public/vendor/cwr.js on lines 1460..1484
public/vendor/cwr.js on lines 1618..1642
public/vendor/cwr.js on lines 1816..1840
public/vendor/cwr.js on lines 3266..3290
public/vendor/cwr.js on lines 3562..3586
public/vendor/cwr.js on lines 4800..4824

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

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

            }, ut = function(e, t, n, r) {
                return new (n || (n = Promise))((function(o, i) {
                    function s(e) {
                        try {
                            c(r.next(e))
Severity: Major
Found in public/vendor/cwr.js and 7 other locations - About 1 day to fix
public/vendor/cwr.js on lines 1082..1106
public/vendor/cwr.js on lines 1460..1484
public/vendor/cwr.js on lines 1618..1642
public/vendor/cwr.js on lines 1816..1840
public/vendor/cwr.js on lines 3562..3586
public/vendor/cwr.js on lines 4800..4824
public/vendor/cwr.js on lines 4958..4982

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

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

            E = function(e, t, n, r) {
                return new (n || (n = Promise))((function(o, i) {
                    function s(e) {
                        try {
                            c(r.next(e))
Severity: Major
Found in public/vendor/cwr.js and 7 other locations - About 1 day to fix
public/vendor/cwr.js on lines 1082..1106
public/vendor/cwr.js on lines 1618..1642
public/vendor/cwr.js on lines 1816..1840
public/vendor/cwr.js on lines 3266..3290
public/vendor/cwr.js on lines 3562..3586
public/vendor/cwr.js on lines 4800..4824
public/vendor/cwr.js on lines 4958..4982

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

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

                return Object.keys(e).reduce((function(t, n) {
                    var r,
                        o = e[n];
                    return we(we({}, t), ((r = {})[n] = Array.isArray(o) ? function(e, t, n) {
                        if (n || 2 === arguments.length)
Severity: Major
Found in public/vendor/cwr.js and 1 other location - About 1 day to fix
public/vendor/cwr.js on lines 1070..1079

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

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

                return o.query && (o.query = (n = o.query, Object.keys(n).reduce((function(e, o) {
                    var i,
                        s = n[o];
                    return t(t({}, e), ((i = {})[o] = Array.isArray(s) ? function(e, t, n) {
                        if (n || 2 === arguments.length)
Severity: Major
Found in public/vendor/cwr.js and 1 other location - About 1 day to fix
public/vendor/cwr.js on lines 2782..2791

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

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 be(e, t, n, r) {
            return new (n || (n = Promise))((function(o, i) {
                function s(e) {
                    try {
                        c(r.next(e))
Severity: Major
Found in public/vendor/cwr.js and 1 other location - About 1 day to fix
public/vendor/cwr.js on lines 469..493

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

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 l(e, t, n, r) {
                    return new (n || (n = Promise))((function(o, i) {
                        function s(e) {
                            try {
                                c(r.next(e))
Severity: Major
Found in public/vendor/cwr.js and 1 other location - About 1 day to fix
public/vendor/cwr.js on lines 2495..2519

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

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

test('format', () => {
  const a = [
    [
      'YYYY MMMM Do dddd, a h:mm:ss',
      '2010 පෙබරවාරි 14 වැනි ඉරිදා, ප.ව. 3:25:50',
Severity: Major
Found in src/app/legacy/psammead/psammead-locales/moment/si.test.js and 3 other locations - About 1 day to fix
src/app/legacy/psammead/psammead-locales/moment/ar.test.js on lines 57..89
src/app/legacy/psammead/psammead-locales/moment/es.test.js on lines 39..71
src/app/legacy/psammead/psammead-locales/moment/ru.test.js on lines 60..95

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

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

test('format', () => {
  const a = [
    [
      'dddd, Do MMMM YYYY, HH:mm:ss',
      'воскресенье, 14-го февраля 2010, 15:25:50',
Severity: Major
Found in src/app/legacy/psammead/psammead-locales/moment/ru.test.js and 3 other locations - About 1 day to fix
src/app/legacy/psammead/psammead-locales/moment/ar.test.js on lines 57..89
src/app/legacy/psammead/psammead-locales/moment/es.test.js on lines 39..71
src/app/legacy/psammead/psammead-locales/moment/si.test.js on lines 39..77

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

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

test('format', () => {
  const a = [
    ['dddd, MMMM Do YYYY, h:mm:ss a', 'domingo, febrero 14º 2010, 3:25:50 pm'],
    ['ddd, hA', 'dom., 3PM'],
    ['M Mo MM MMMM MMM', '2 2º 02 febrero feb.'],
Severity: Major
Found in src/app/legacy/psammead/psammead-locales/moment/es.test.js and 3 other locations - About 1 day to fix
src/app/legacy/psammead/psammead-locales/moment/ar.test.js on lines 57..89
src/app/legacy/psammead/psammead-locales/moment/ru.test.js on lines 60..95
src/app/legacy/psammead/psammead-locales/moment/si.test.js on lines 39..77

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

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

test('format', () => {
  const a = [
    ['dddd, MMMM Do YYYY, h:mm:ss a', 'الأحد، فبراير/ شباط 14 2010، 3:25:50 م'],
    ['ddd, hA', 'أحد، 3م'],
    ['M Mo MM MMMM MMM', '2 2 02 فبراير/ شباط فبراير/ شباط'],
Severity: Major
Found in src/app/legacy/psammead/psammead-locales/moment/ar.test.js and 3 other locations - About 1 day to fix
src/app/legacy/psammead/psammead-locales/moment/es.test.js on lines 39..71
src/app/legacy/psammead/psammead-locales/moment/ru.test.js on lines 60..95
src/app/legacy/psammead/psammead-locales/moment/si.test.js on lines 39..77

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

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 fixtures.ts has 585 lines of code (exceeds 250 allowed). Consider refactoring.
Open

export const samplePost = {
  typeCode: null,
  header: {
    model: {
      blocks: [
Severity: Major
Found in src/app/lib/seoUtils/getLiveBlogPostingSchema/fixtures.ts - About 1 day to fix
    Severity
    Category
    Status
    Source
    Language