daavelino/vulnerability-catalog

View on GitHub

Showing 548 of 888 total issues

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

CVSS.calculateCVSSFromMetrics = function (
  AttackVector, AttackComplexity, PrivilegesRequired, UserInteraction, Scope, Confidentiality, Integrity, Availability,
  ExploitCodeMaturity, RemediationLevel, ReportConfidence,
  ConfidentialityRequirement, IntegrityRequirement, AvailabilityRequirement,
  ModifiedAttackVector, ModifiedAttackComplexity, ModifiedPrivilegesRequired, ModifiedUserInteraction, ModifiedScope,
Severity: Major
Found in base/catalog/static/cvss/calculator/cvsscalc30.js and 1 other location - About 2 wks to fix
base/catalog/static/js/cvsscalc30.js on lines 122..364

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

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

CVSS.calculateCVSSFromMetrics = function (
  AttackVector, AttackComplexity, PrivilegesRequired, UserInteraction, Scope, Confidentiality, Integrity, Availability,
  ExploitCodeMaturity, RemediationLevel, ReportConfidence,
  ConfidentialityRequirement, IntegrityRequirement, AvailabilityRequirement,
  ModifiedAttackVector, ModifiedAttackComplexity, ModifiedPrivilegesRequired, ModifiedUserInteraction, ModifiedScope,
Severity: Major
Found in base/catalog/static/js/cvsscalc30.js and 1 other location - About 2 wks to fix
base/catalog/static/cvss/calculator/cvsscalc30.js on lines 122..364

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

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

tinymce.addI18n('ta_IN',{
"Redo": "\u0bae\u0bc0\u0ba3\u0bcd\u0b9f\u0bc1\u0bae\u0bcd \u0b9a\u0bc6\u0baf\u0bcd\u0b95",
"Undo": "\u0b9a\u0bc6\u0baf\u0bb2\u0bcd\u0ba4\u0bb5\u0bbf\u0bb0\u0bcd\u0b95\u0bcd\u0b95",
"Cut": "\u0bb5\u0bc6\u0b9f\u0bcd\u0b9f\u0bc1\u0b95",
"Copy": "\u0ba8\u0b95\u0bb2\u0bc6\u0b9f\u0bc1\u0b95\u0bcd\u0b95",
Severity: Major
Found in base/catalog/static/tinymce/langs/ta_IN.js and 3 other locations - About 1 wk to fix
base/catalog/static/tinymce/langs/nl.js on lines 1..419
base/catalog/static/tinymce/langs/ru.js on lines 1..419
base/catalog/static/tinymce/langs/ta.js on lines 1..419

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

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

tinymce.addI18n('ta',{
"Redo": "\u0bae\u0bc0\u0ba3\u0bcd\u0b9f\u0bc1\u0bae\u0bcd \u0b9a\u0bc6\u0baf\u0bcd\u0b95",
"Undo": "\u0b9a\u0bc6\u0baf\u0bb2\u0bcd\u0ba4\u0bb5\u0bbf\u0bb0\u0bcd\u0b95\u0bcd\u0b95",
"Cut": "\u0bb5\u0bc6\u0b9f\u0bcd\u0b9f\u0bc1\u0b95",
"Copy": "\u0ba8\u0b95\u0bb2\u0bc6\u0b9f\u0bc1\u0b95\u0bcd\u0b95",
Severity: Major
Found in base/catalog/static/tinymce/langs/ta.js and 3 other locations - About 1 wk to fix
base/catalog/static/tinymce/langs/nl.js on lines 1..419
base/catalog/static/tinymce/langs/ru.js on lines 1..419
base/catalog/static/tinymce/langs/ta_IN.js on lines 1..419

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

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

tinymce.addI18n('ru',{
"Redo": "\u0412\u0435\u0440\u043d\u0443\u0442\u044c",
"Undo": "\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c",
"Cut": "\u0412\u044b\u0440\u0435\u0437\u0430\u0442\u044c",
"Copy": "\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c",
Severity: Major
Found in base/catalog/static/tinymce/langs/ru.js and 3 other locations - About 1 wk to fix
base/catalog/static/tinymce/langs/nl.js on lines 1..419
base/catalog/static/tinymce/langs/ta.js on lines 1..419
base/catalog/static/tinymce/langs/ta_IN.js on lines 1..419

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

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

tinymce.addI18n('nl',{
"Redo": "Opnieuw uitvoeren",
"Undo": "Ongedaan maken",
"Cut": "Knippen",
"Copy": "Kopi\u00ebren",
Severity: Major
Found in base/catalog/static/tinymce/langs/nl.js and 3 other locations - About 1 wk to fix
base/catalog/static/tinymce/langs/ru.js on lines 1..419
base/catalog/static/tinymce/langs/ta.js on lines 1..419
base/catalog/static/tinymce/langs/ta_IN.js on lines 1..419

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

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

tinymce.addI18n('he_IL',{
"Redo": "\u05d1\u05e6\u05e2 \u05e9\u05d5\u05d1",
"Undo": "\u05d1\u05d8\u05dc",
"Cut": "\u05d2\u05d6\u05d5\u05e8",
"Copy": "\u05d4\u05e2\u05ea\u05e7",
Severity: Major
Found in base/catalog/static/tinymce/langs/he_IL.js and 2 other locations - About 1 wk to fix
base/catalog/static/tinymce/langs/ar.js on lines 1..390
base/catalog/static/tinymce/langs/fa_IR.js on lines 1..390

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

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

tinymce.addI18n('ar',{
"Redo": "\u0625\u0639\u0627\u062f\u0629",
"Undo": "\u062a\u0631\u0627\u062c\u0639",
"Cut": "\u0642\u0635",
"Copy": "\u0646\u0633\u062e",
Severity: Major
Found in base/catalog/static/tinymce/langs/ar.js and 2 other locations - About 1 wk to fix
base/catalog/static/tinymce/langs/fa_IR.js on lines 1..390
base/catalog/static/tinymce/langs/he_IL.js on lines 1..390

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

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

tinymce.addI18n('fa_IR',{
"Redo": "\u0628\u0627\u0632\u0627\u0646\u062c\u0627\u0645",
"Undo": "\u0648\u0627\u06af\u0631\u062f",
"Cut": "\u0628\u0631\u0634",
"Copy": "\u06a9\u067e\u06cc",
Severity: Major
Found in base/catalog/static/tinymce/langs/fa_IR.js and 2 other locations - About 1 wk to fix
base/catalog/static/tinymce/langs/ar.js on lines 1..390
base/catalog/static/tinymce/langs/he_IL.js on lines 1..390

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

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

tinymce.addI18n('bg_BG',{
"Redo": "\u041e\u0442\u043c\u0435\u043d\u044f\u043d\u0435",
"Undo": "\u0412\u0440\u044a\u0449\u0430\u043d\u0435",
"Cut": "\u0418\u0437\u0440\u044f\u0437\u0432\u0430\u043d\u0435",
"Copy": "\u041a\u043e\u043f\u0438\u0440\u0430\u043d\u0435",
Severity: Major
Found in base/catalog/static/tinymce/langs/bg_BG.js and 27 other locations - About 1 wk to fix
base/catalog/static/tinymce/langs/ca.js on lines 1..389
base/catalog/static/tinymce/langs/cs.js on lines 1..389
base/catalog/static/tinymce/langs/da.js on lines 1..389
base/catalog/static/tinymce/langs/de.js on lines 1..389
base/catalog/static/tinymce/langs/es.js on lines 1..389
base/catalog/static/tinymce/langs/es_MX.js on lines 1..389
base/catalog/static/tinymce/langs/eu.js on lines 1..389
base/catalog/static/tinymce/langs/fa.js on lines 1..389
base/catalog/static/tinymce/langs/fi.js on lines 1..389
base/catalog/static/tinymce/langs/fr_FR.js on lines 1..389
base/catalog/static/tinymce/langs/hu_HU.js on lines 1..389
base/catalog/static/tinymce/langs/id.js on lines 1..389
base/catalog/static/tinymce/langs/it.js on lines 1..389
base/catalog/static/tinymce/langs/ja.js on lines 1..389
base/catalog/static/tinymce/langs/ko_KR.js on lines 1..389
base/catalog/static/tinymce/langs/lt.js on lines 1..389
base/catalog/static/tinymce/langs/nb_NO.js on lines 1..389
base/catalog/static/tinymce/langs/pl.js on lines 1..389
base/catalog/static/tinymce/langs/pt_BR.js on lines 1..389
base/catalog/static/tinymce/langs/pt_PT.js on lines 1..389
base/catalog/static/tinymce/langs/sv_SE.js on lines 1..389
base/catalog/static/tinymce/langs/th_TH.js on lines 1..389
base/catalog/static/tinymce/langs/tr.js on lines 1..389
base/catalog/static/tinymce/langs/tr_TR.js on lines 1..389
base/catalog/static/tinymce/langs/uk.js on lines 1..389
base/catalog/static/tinymce/langs/zh_CN.js on lines 1..389
base/catalog/static/tinymce/langs/zh_TW.js on lines 1..389

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

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

tinymce.addI18n('da',{
"Redo": "Gendan",
"Undo": "Fortryd",
"Cut": "Klip",
"Copy": "Kopier",
Severity: Major
Found in base/catalog/static/tinymce/langs/da.js and 27 other locations - About 1 wk to fix
base/catalog/static/tinymce/langs/bg_BG.js on lines 1..389
base/catalog/static/tinymce/langs/ca.js on lines 1..389
base/catalog/static/tinymce/langs/cs.js on lines 1..389
base/catalog/static/tinymce/langs/de.js on lines 1..389
base/catalog/static/tinymce/langs/es.js on lines 1..389
base/catalog/static/tinymce/langs/es_MX.js on lines 1..389
base/catalog/static/tinymce/langs/eu.js on lines 1..389
base/catalog/static/tinymce/langs/fa.js on lines 1..389
base/catalog/static/tinymce/langs/fi.js on lines 1..389
base/catalog/static/tinymce/langs/fr_FR.js on lines 1..389
base/catalog/static/tinymce/langs/hu_HU.js on lines 1..389
base/catalog/static/tinymce/langs/id.js on lines 1..389
base/catalog/static/tinymce/langs/it.js on lines 1..389
base/catalog/static/tinymce/langs/ja.js on lines 1..389
base/catalog/static/tinymce/langs/ko_KR.js on lines 1..389
base/catalog/static/tinymce/langs/lt.js on lines 1..389
base/catalog/static/tinymce/langs/nb_NO.js on lines 1..389
base/catalog/static/tinymce/langs/pl.js on lines 1..389
base/catalog/static/tinymce/langs/pt_BR.js on lines 1..389
base/catalog/static/tinymce/langs/pt_PT.js on lines 1..389
base/catalog/static/tinymce/langs/sv_SE.js on lines 1..389
base/catalog/static/tinymce/langs/th_TH.js on lines 1..389
base/catalog/static/tinymce/langs/tr.js on lines 1..389
base/catalog/static/tinymce/langs/tr_TR.js on lines 1..389
base/catalog/static/tinymce/langs/uk.js on lines 1..389
base/catalog/static/tinymce/langs/zh_CN.js on lines 1..389
base/catalog/static/tinymce/langs/zh_TW.js on lines 1..389

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

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

tinymce.addI18n('hu_HU',{
"Redo": "Ism\u00e9t",
"Undo": "Visszavon\u00e1s",
"Cut": "Kiv\u00e1g\u00e1s",
"Copy": "M\u00e1sol\u00e1s",
Severity: Major
Found in base/catalog/static/tinymce/langs/hu_HU.js and 27 other locations - About 1 wk to fix
base/catalog/static/tinymce/langs/bg_BG.js on lines 1..389
base/catalog/static/tinymce/langs/ca.js on lines 1..389
base/catalog/static/tinymce/langs/cs.js on lines 1..389
base/catalog/static/tinymce/langs/da.js on lines 1..389
base/catalog/static/tinymce/langs/de.js on lines 1..389
base/catalog/static/tinymce/langs/es.js on lines 1..389
base/catalog/static/tinymce/langs/es_MX.js on lines 1..389
base/catalog/static/tinymce/langs/eu.js on lines 1..389
base/catalog/static/tinymce/langs/fa.js on lines 1..389
base/catalog/static/tinymce/langs/fi.js on lines 1..389
base/catalog/static/tinymce/langs/fr_FR.js on lines 1..389
base/catalog/static/tinymce/langs/id.js on lines 1..389
base/catalog/static/tinymce/langs/it.js on lines 1..389
base/catalog/static/tinymce/langs/ja.js on lines 1..389
base/catalog/static/tinymce/langs/ko_KR.js on lines 1..389
base/catalog/static/tinymce/langs/lt.js on lines 1..389
base/catalog/static/tinymce/langs/nb_NO.js on lines 1..389
base/catalog/static/tinymce/langs/pl.js on lines 1..389
base/catalog/static/tinymce/langs/pt_BR.js on lines 1..389
base/catalog/static/tinymce/langs/pt_PT.js on lines 1..389
base/catalog/static/tinymce/langs/sv_SE.js on lines 1..389
base/catalog/static/tinymce/langs/th_TH.js on lines 1..389
base/catalog/static/tinymce/langs/tr.js on lines 1..389
base/catalog/static/tinymce/langs/tr_TR.js on lines 1..389
base/catalog/static/tinymce/langs/uk.js on lines 1..389
base/catalog/static/tinymce/langs/zh_CN.js on lines 1..389
base/catalog/static/tinymce/langs/zh_TW.js on lines 1..389

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

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

tinymce.addI18n('fr_FR',{
"Redo": "R\u00e9tablir",
"Undo": "Annuler",
"Cut": "Couper",
"Copy": "Copier",
Severity: Major
Found in base/catalog/static/tinymce/langs/fr_FR.js and 27 other locations - About 1 wk to fix
base/catalog/static/tinymce/langs/bg_BG.js on lines 1..389
base/catalog/static/tinymce/langs/ca.js on lines 1..389
base/catalog/static/tinymce/langs/cs.js on lines 1..389
base/catalog/static/tinymce/langs/da.js on lines 1..389
base/catalog/static/tinymce/langs/de.js on lines 1..389
base/catalog/static/tinymce/langs/es.js on lines 1..389
base/catalog/static/tinymce/langs/es_MX.js on lines 1..389
base/catalog/static/tinymce/langs/eu.js on lines 1..389
base/catalog/static/tinymce/langs/fa.js on lines 1..389
base/catalog/static/tinymce/langs/fi.js on lines 1..389
base/catalog/static/tinymce/langs/hu_HU.js on lines 1..389
base/catalog/static/tinymce/langs/id.js on lines 1..389
base/catalog/static/tinymce/langs/it.js on lines 1..389
base/catalog/static/tinymce/langs/ja.js on lines 1..389
base/catalog/static/tinymce/langs/ko_KR.js on lines 1..389
base/catalog/static/tinymce/langs/lt.js on lines 1..389
base/catalog/static/tinymce/langs/nb_NO.js on lines 1..389
base/catalog/static/tinymce/langs/pl.js on lines 1..389
base/catalog/static/tinymce/langs/pt_BR.js on lines 1..389
base/catalog/static/tinymce/langs/pt_PT.js on lines 1..389
base/catalog/static/tinymce/langs/sv_SE.js on lines 1..389
base/catalog/static/tinymce/langs/th_TH.js on lines 1..389
base/catalog/static/tinymce/langs/tr.js on lines 1..389
base/catalog/static/tinymce/langs/tr_TR.js on lines 1..389
base/catalog/static/tinymce/langs/uk.js on lines 1..389
base/catalog/static/tinymce/langs/zh_CN.js on lines 1..389
base/catalog/static/tinymce/langs/zh_TW.js on lines 1..389

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

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

tinymce.addI18n('es',{
"Redo": "Rehacer",
"Undo": "Deshacer",
"Cut": "Cortar",
"Copy": "Copiar",
Severity: Major
Found in base/catalog/static/tinymce/langs/es.js and 27 other locations - About 1 wk to fix
base/catalog/static/tinymce/langs/bg_BG.js on lines 1..389
base/catalog/static/tinymce/langs/ca.js on lines 1..389
base/catalog/static/tinymce/langs/cs.js on lines 1..389
base/catalog/static/tinymce/langs/da.js on lines 1..389
base/catalog/static/tinymce/langs/de.js on lines 1..389
base/catalog/static/tinymce/langs/es_MX.js on lines 1..389
base/catalog/static/tinymce/langs/eu.js on lines 1..389
base/catalog/static/tinymce/langs/fa.js on lines 1..389
base/catalog/static/tinymce/langs/fi.js on lines 1..389
base/catalog/static/tinymce/langs/fr_FR.js on lines 1..389
base/catalog/static/tinymce/langs/hu_HU.js on lines 1..389
base/catalog/static/tinymce/langs/id.js on lines 1..389
base/catalog/static/tinymce/langs/it.js on lines 1..389
base/catalog/static/tinymce/langs/ja.js on lines 1..389
base/catalog/static/tinymce/langs/ko_KR.js on lines 1..389
base/catalog/static/tinymce/langs/lt.js on lines 1..389
base/catalog/static/tinymce/langs/nb_NO.js on lines 1..389
base/catalog/static/tinymce/langs/pl.js on lines 1..389
base/catalog/static/tinymce/langs/pt_BR.js on lines 1..389
base/catalog/static/tinymce/langs/pt_PT.js on lines 1..389
base/catalog/static/tinymce/langs/sv_SE.js on lines 1..389
base/catalog/static/tinymce/langs/th_TH.js on lines 1..389
base/catalog/static/tinymce/langs/tr.js on lines 1..389
base/catalog/static/tinymce/langs/tr_TR.js on lines 1..389
base/catalog/static/tinymce/langs/uk.js on lines 1..389
base/catalog/static/tinymce/langs/zh_CN.js on lines 1..389
base/catalog/static/tinymce/langs/zh_TW.js on lines 1..389

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

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

tinymce.addI18n('es_MX',{
"Redo": "Rehacer",
"Undo": "Deshacer",
"Cut": "Cortar",
"Copy": "Copiar",
Severity: Major
Found in base/catalog/static/tinymce/langs/es_MX.js and 27 other locations - About 1 wk to fix
base/catalog/static/tinymce/langs/bg_BG.js on lines 1..389
base/catalog/static/tinymce/langs/ca.js on lines 1..389
base/catalog/static/tinymce/langs/cs.js on lines 1..389
base/catalog/static/tinymce/langs/da.js on lines 1..389
base/catalog/static/tinymce/langs/de.js on lines 1..389
base/catalog/static/tinymce/langs/es.js on lines 1..389
base/catalog/static/tinymce/langs/eu.js on lines 1..389
base/catalog/static/tinymce/langs/fa.js on lines 1..389
base/catalog/static/tinymce/langs/fi.js on lines 1..389
base/catalog/static/tinymce/langs/fr_FR.js on lines 1..389
base/catalog/static/tinymce/langs/hu_HU.js on lines 1..389
base/catalog/static/tinymce/langs/id.js on lines 1..389
base/catalog/static/tinymce/langs/it.js on lines 1..389
base/catalog/static/tinymce/langs/ja.js on lines 1..389
base/catalog/static/tinymce/langs/ko_KR.js on lines 1..389
base/catalog/static/tinymce/langs/lt.js on lines 1..389
base/catalog/static/tinymce/langs/nb_NO.js on lines 1..389
base/catalog/static/tinymce/langs/pl.js on lines 1..389
base/catalog/static/tinymce/langs/pt_BR.js on lines 1..389
base/catalog/static/tinymce/langs/pt_PT.js on lines 1..389
base/catalog/static/tinymce/langs/sv_SE.js on lines 1..389
base/catalog/static/tinymce/langs/th_TH.js on lines 1..389
base/catalog/static/tinymce/langs/tr.js on lines 1..389
base/catalog/static/tinymce/langs/tr_TR.js on lines 1..389
base/catalog/static/tinymce/langs/uk.js on lines 1..389
base/catalog/static/tinymce/langs/zh_CN.js on lines 1..389
base/catalog/static/tinymce/langs/zh_TW.js on lines 1..389

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

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

tinymce.addI18n('zh_CN',{
"Redo": "\u91cd\u505a",
"Undo": "\u64a4\u9500",
"Cut": "\u526a\u5207",
"Copy": "\u590d\u5236",
Severity: Major
Found in base/catalog/static/tinymce/langs/zh_CN.js and 27 other locations - About 1 wk to fix
base/catalog/static/tinymce/langs/bg_BG.js on lines 1..389
base/catalog/static/tinymce/langs/ca.js on lines 1..389
base/catalog/static/tinymce/langs/cs.js on lines 1..389
base/catalog/static/tinymce/langs/da.js on lines 1..389
base/catalog/static/tinymce/langs/de.js on lines 1..389
base/catalog/static/tinymce/langs/es.js on lines 1..389
base/catalog/static/tinymce/langs/es_MX.js on lines 1..389
base/catalog/static/tinymce/langs/eu.js on lines 1..389
base/catalog/static/tinymce/langs/fa.js on lines 1..389
base/catalog/static/tinymce/langs/fi.js on lines 1..389
base/catalog/static/tinymce/langs/fr_FR.js on lines 1..389
base/catalog/static/tinymce/langs/hu_HU.js on lines 1..389
base/catalog/static/tinymce/langs/id.js on lines 1..389
base/catalog/static/tinymce/langs/it.js on lines 1..389
base/catalog/static/tinymce/langs/ja.js on lines 1..389
base/catalog/static/tinymce/langs/ko_KR.js on lines 1..389
base/catalog/static/tinymce/langs/lt.js on lines 1..389
base/catalog/static/tinymce/langs/nb_NO.js on lines 1..389
base/catalog/static/tinymce/langs/pl.js on lines 1..389
base/catalog/static/tinymce/langs/pt_BR.js on lines 1..389
base/catalog/static/tinymce/langs/pt_PT.js on lines 1..389
base/catalog/static/tinymce/langs/sv_SE.js on lines 1..389
base/catalog/static/tinymce/langs/th_TH.js on lines 1..389
base/catalog/static/tinymce/langs/tr.js on lines 1..389
base/catalog/static/tinymce/langs/tr_TR.js on lines 1..389
base/catalog/static/tinymce/langs/uk.js on lines 1..389
base/catalog/static/tinymce/langs/zh_TW.js on lines 1..389

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

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

tinymce.addI18n('eu',{
"Redo": "Berregin",
"Undo": "Desegin",
"Cut": "Ebaki",
"Copy": "Kopiatu",
Severity: Major
Found in base/catalog/static/tinymce/langs/eu.js and 27 other locations - About 1 wk to fix
base/catalog/static/tinymce/langs/bg_BG.js on lines 1..389
base/catalog/static/tinymce/langs/ca.js on lines 1..389
base/catalog/static/tinymce/langs/cs.js on lines 1..389
base/catalog/static/tinymce/langs/da.js on lines 1..389
base/catalog/static/tinymce/langs/de.js on lines 1..389
base/catalog/static/tinymce/langs/es.js on lines 1..389
base/catalog/static/tinymce/langs/es_MX.js on lines 1..389
base/catalog/static/tinymce/langs/fa.js on lines 1..389
base/catalog/static/tinymce/langs/fi.js on lines 1..389
base/catalog/static/tinymce/langs/fr_FR.js on lines 1..389
base/catalog/static/tinymce/langs/hu_HU.js on lines 1..389
base/catalog/static/tinymce/langs/id.js on lines 1..389
base/catalog/static/tinymce/langs/it.js on lines 1..389
base/catalog/static/tinymce/langs/ja.js on lines 1..389
base/catalog/static/tinymce/langs/ko_KR.js on lines 1..389
base/catalog/static/tinymce/langs/lt.js on lines 1..389
base/catalog/static/tinymce/langs/nb_NO.js on lines 1..389
base/catalog/static/tinymce/langs/pl.js on lines 1..389
base/catalog/static/tinymce/langs/pt_BR.js on lines 1..389
base/catalog/static/tinymce/langs/pt_PT.js on lines 1..389
base/catalog/static/tinymce/langs/sv_SE.js on lines 1..389
base/catalog/static/tinymce/langs/th_TH.js on lines 1..389
base/catalog/static/tinymce/langs/tr.js on lines 1..389
base/catalog/static/tinymce/langs/tr_TR.js on lines 1..389
base/catalog/static/tinymce/langs/uk.js on lines 1..389
base/catalog/static/tinymce/langs/zh_CN.js on lines 1..389
base/catalog/static/tinymce/langs/zh_TW.js on lines 1..389

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

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

tinymce.addI18n('nb_NO',{
"Redo": "Gj\u00f8r om",
"Undo": "Angre",
"Cut": "Klipp ut",
"Copy": "Kopier",
Severity: Major
Found in base/catalog/static/tinymce/langs/nb_NO.js and 27 other locations - About 1 wk to fix
base/catalog/static/tinymce/langs/bg_BG.js on lines 1..389
base/catalog/static/tinymce/langs/ca.js on lines 1..389
base/catalog/static/tinymce/langs/cs.js on lines 1..389
base/catalog/static/tinymce/langs/da.js on lines 1..389
base/catalog/static/tinymce/langs/de.js on lines 1..389
base/catalog/static/tinymce/langs/es.js on lines 1..389
base/catalog/static/tinymce/langs/es_MX.js on lines 1..389
base/catalog/static/tinymce/langs/eu.js on lines 1..389
base/catalog/static/tinymce/langs/fa.js on lines 1..389
base/catalog/static/tinymce/langs/fi.js on lines 1..389
base/catalog/static/tinymce/langs/fr_FR.js on lines 1..389
base/catalog/static/tinymce/langs/hu_HU.js on lines 1..389
base/catalog/static/tinymce/langs/id.js on lines 1..389
base/catalog/static/tinymce/langs/it.js on lines 1..389
base/catalog/static/tinymce/langs/ja.js on lines 1..389
base/catalog/static/tinymce/langs/ko_KR.js on lines 1..389
base/catalog/static/tinymce/langs/lt.js on lines 1..389
base/catalog/static/tinymce/langs/pl.js on lines 1..389
base/catalog/static/tinymce/langs/pt_BR.js on lines 1..389
base/catalog/static/tinymce/langs/pt_PT.js on lines 1..389
base/catalog/static/tinymce/langs/sv_SE.js on lines 1..389
base/catalog/static/tinymce/langs/th_TH.js on lines 1..389
base/catalog/static/tinymce/langs/tr.js on lines 1..389
base/catalog/static/tinymce/langs/tr_TR.js on lines 1..389
base/catalog/static/tinymce/langs/uk.js on lines 1..389
base/catalog/static/tinymce/langs/zh_CN.js on lines 1..389
base/catalog/static/tinymce/langs/zh_TW.js on lines 1..389

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

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

tinymce.addI18n('fa',{
"Redo": "\u0628\u0627\u0632\u0627\u0646\u062c\u0627\u0645",
"Undo": "\u0648\u0627\u06af\u0631\u062f",
"Cut": "\u0628\u0631\u0634",
"Copy": "\u06a9\u067e\u06cc",
Severity: Major
Found in base/catalog/static/tinymce/langs/fa.js and 27 other locations - About 1 wk to fix
base/catalog/static/tinymce/langs/bg_BG.js on lines 1..389
base/catalog/static/tinymce/langs/ca.js on lines 1..389
base/catalog/static/tinymce/langs/cs.js on lines 1..389
base/catalog/static/tinymce/langs/da.js on lines 1..389
base/catalog/static/tinymce/langs/de.js on lines 1..389
base/catalog/static/tinymce/langs/es.js on lines 1..389
base/catalog/static/tinymce/langs/es_MX.js on lines 1..389
base/catalog/static/tinymce/langs/eu.js on lines 1..389
base/catalog/static/tinymce/langs/fi.js on lines 1..389
base/catalog/static/tinymce/langs/fr_FR.js on lines 1..389
base/catalog/static/tinymce/langs/hu_HU.js on lines 1..389
base/catalog/static/tinymce/langs/id.js on lines 1..389
base/catalog/static/tinymce/langs/it.js on lines 1..389
base/catalog/static/tinymce/langs/ja.js on lines 1..389
base/catalog/static/tinymce/langs/ko_KR.js on lines 1..389
base/catalog/static/tinymce/langs/lt.js on lines 1..389
base/catalog/static/tinymce/langs/nb_NO.js on lines 1..389
base/catalog/static/tinymce/langs/pl.js on lines 1..389
base/catalog/static/tinymce/langs/pt_BR.js on lines 1..389
base/catalog/static/tinymce/langs/pt_PT.js on lines 1..389
base/catalog/static/tinymce/langs/sv_SE.js on lines 1..389
base/catalog/static/tinymce/langs/th_TH.js on lines 1..389
base/catalog/static/tinymce/langs/tr.js on lines 1..389
base/catalog/static/tinymce/langs/tr_TR.js on lines 1..389
base/catalog/static/tinymce/langs/uk.js on lines 1..389
base/catalog/static/tinymce/langs/zh_CN.js on lines 1..389
base/catalog/static/tinymce/langs/zh_TW.js on lines 1..389

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

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

tinymce.addI18n('it',{
"Redo": "Ripristina",
"Undo": "Annulla",
"Cut": "Taglia",
"Copy": "Copia",
Severity: Major
Found in base/catalog/static/tinymce/langs/it.js and 27 other locations - About 1 wk to fix
base/catalog/static/tinymce/langs/bg_BG.js on lines 1..389
base/catalog/static/tinymce/langs/ca.js on lines 1..389
base/catalog/static/tinymce/langs/cs.js on lines 1..389
base/catalog/static/tinymce/langs/da.js on lines 1..389
base/catalog/static/tinymce/langs/de.js on lines 1..389
base/catalog/static/tinymce/langs/es.js on lines 1..389
base/catalog/static/tinymce/langs/es_MX.js on lines 1..389
base/catalog/static/tinymce/langs/eu.js on lines 1..389
base/catalog/static/tinymce/langs/fa.js on lines 1..389
base/catalog/static/tinymce/langs/fi.js on lines 1..389
base/catalog/static/tinymce/langs/fr_FR.js on lines 1..389
base/catalog/static/tinymce/langs/hu_HU.js on lines 1..389
base/catalog/static/tinymce/langs/id.js on lines 1..389
base/catalog/static/tinymce/langs/ja.js on lines 1..389
base/catalog/static/tinymce/langs/ko_KR.js on lines 1..389
base/catalog/static/tinymce/langs/lt.js on lines 1..389
base/catalog/static/tinymce/langs/nb_NO.js on lines 1..389
base/catalog/static/tinymce/langs/pl.js on lines 1..389
base/catalog/static/tinymce/langs/pt_BR.js on lines 1..389
base/catalog/static/tinymce/langs/pt_PT.js on lines 1..389
base/catalog/static/tinymce/langs/sv_SE.js on lines 1..389
base/catalog/static/tinymce/langs/th_TH.js on lines 1..389
base/catalog/static/tinymce/langs/tr.js on lines 1..389
base/catalog/static/tinymce/langs/tr_TR.js on lines 1..389
base/catalog/static/tinymce/langs/uk.js on lines 1..389
base/catalog/static/tinymce/langs/zh_CN.js on lines 1..389
base/catalog/static/tinymce/langs/zh_TW.js on lines 1..389

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

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