cra16/cake-core

View on GitHub

Showing 1,537 of 1,537 total issues

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

planepage.start = function(opt_data, opt_ignored, opt_ijData) {
  var output = planepage.messages(null, null, opt_ijData) + '<table width="100%"><tr><td><h1><span id="title"><a href="../index.html?lang=' + soy.$$escapeHtml(opt_ijData.lang) + '">Blockly</a> : Plane Seat Calculator</span> &nbsp; ';
  var iLimit130 = opt_ijData.maxLevel + 1;
  for (var i130 = 1; i130 < iLimit130; i130++) {
    output += ' ' + ((i130 == opt_ijData.level) ? '<span class="tab" id="selected">' + soy.$$escapeHtml(i130) + '</span>' : (i130 < opt_ijData.level) ? '<a class="tab previous" href="?lang=' + soy.$$escapeHtml(opt_ijData.lang) + '&level=' + soy.$$escapeHtml(i130) + '">' + soy.$$escapeHtml(i130) + '</a>' : '<a class="tab" href="?lang=' + soy.$$escapeHtml(opt_ijData.lang) + '&level=' + soy.$$escapeHtml(i130) + '">' + soy.$$escapeHtml(i130) + '</a>');
Severity: Major
Found in blockly/apps/plane/generated/bn.js and 37 other locations - About 2 days to fix
blockly/apps/plane/generated/af.js on lines 43..63
blockly/apps/plane/generated/ar.js on lines 43..63
blockly/apps/plane/generated/arz.js on lines 43..63
blockly/apps/plane/generated/az.js on lines 43..63
blockly/apps/plane/generated/bg.js on lines 43..63
blockly/apps/plane/generated/cdo.js on lines 43..63
blockly/apps/plane/generated/cs.js on lines 43..63
blockly/apps/plane/generated/da.js on lines 43..63
blockly/apps/plane/generated/en.js on lines 43..63
blockly/apps/plane/generated/fa.js on lines 43..63
blockly/apps/plane/generated/fo.js on lines 43..63
blockly/apps/plane/generated/frr.js on lines 43..63
blockly/apps/plane/generated/hak.js on lines 43..63
blockly/apps/plane/generated/he.js on lines 43..63
blockly/apps/plane/generated/ja.js on lines 43..63
blockly/apps/plane/generated/ka.js on lines 43..63
blockly/apps/plane/generated/km.js on lines 43..63
blockly/apps/plane/generated/ko.js on lines 43..63
blockly/apps/plane/generated/ku-latn.js on lines 43..63
blockly/apps/plane/generated/ky.js on lines 43..63
blockly/apps/plane/generated/lrc.js on lines 43..63
blockly/apps/plane/generated/lt.js on lines 43..63
blockly/apps/plane/generated/mk.js on lines 43..63
blockly/apps/plane/generated/ml.js on lines 43..63
blockly/apps/plane/generated/mzn.js on lines 43..63
blockly/apps/plane/generated/nb.js on lines 43..63
blockly/apps/plane/generated/pa.js on lines 43..63
blockly/apps/plane/generated/ps.js on lines 43..63
blockly/apps/plane/generated/si.js on lines 43..63
blockly/apps/plane/generated/sk.js on lines 43..63
blockly/apps/plane/generated/ta.js on lines 43..63
blockly/apps/plane/generated/te.js on lines 43..63
blockly/apps/plane/generated/tzm.js on lines 43..63
blockly/apps/plane/generated/uk.js on lines 43..63
blockly/apps/plane/generated/vi.js on lines 43..63
blockly/apps/plane/generated/zh-hans.js on lines 43..63
blockly/apps/plane/generated/zh-hant.js on lines 43..63

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

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

planepage.start = function(opt_data, opt_ignored, opt_ijData) {
  var output = planepage.messages(null, null, opt_ijData) + '<table width="100%"><tr><td><h1><span id="title"><a href="../index.html?lang=' + soy.$$escapeHtml(opt_ijData.lang) + '">Blockly</a> : Plane Seat Calculator</span> &nbsp; ';
  var iLimit130 = opt_ijData.maxLevel + 1;
  for (var i130 = 1; i130 < iLimit130; i130++) {
    output += ' ' + ((i130 == opt_ijData.level) ? '<span class="tab" id="selected">' + soy.$$escapeHtml(i130) + '</span>' : (i130 < opt_ijData.level) ? '<a class="tab previous" href="?lang=' + soy.$$escapeHtml(opt_ijData.lang) + '&level=' + soy.$$escapeHtml(i130) + '">' + soy.$$escapeHtml(i130) + '</a>' : '<a class="tab" href="?lang=' + soy.$$escapeHtml(opt_ijData.lang) + '&level=' + soy.$$escapeHtml(i130) + '">' + soy.$$escapeHtml(i130) + '</a>');
Severity: Major
Found in blockly/apps/plane/generated/ta.js and 37 other locations - About 2 days to fix
blockly/apps/plane/generated/af.js on lines 43..63
blockly/apps/plane/generated/ar.js on lines 43..63
blockly/apps/plane/generated/arz.js on lines 43..63
blockly/apps/plane/generated/az.js on lines 43..63
blockly/apps/plane/generated/bg.js on lines 43..63
blockly/apps/plane/generated/bn.js on lines 43..63
blockly/apps/plane/generated/cdo.js on lines 43..63
blockly/apps/plane/generated/cs.js on lines 43..63
blockly/apps/plane/generated/da.js on lines 43..63
blockly/apps/plane/generated/en.js on lines 43..63
blockly/apps/plane/generated/fa.js on lines 43..63
blockly/apps/plane/generated/fo.js on lines 43..63
blockly/apps/plane/generated/frr.js on lines 43..63
blockly/apps/plane/generated/hak.js on lines 43..63
blockly/apps/plane/generated/he.js on lines 43..63
blockly/apps/plane/generated/ja.js on lines 43..63
blockly/apps/plane/generated/ka.js on lines 43..63
blockly/apps/plane/generated/km.js on lines 43..63
blockly/apps/plane/generated/ko.js on lines 43..63
blockly/apps/plane/generated/ku-latn.js on lines 43..63
blockly/apps/plane/generated/ky.js on lines 43..63
blockly/apps/plane/generated/lrc.js on lines 43..63
blockly/apps/plane/generated/lt.js on lines 43..63
blockly/apps/plane/generated/mk.js on lines 43..63
blockly/apps/plane/generated/ml.js on lines 43..63
blockly/apps/plane/generated/mzn.js on lines 43..63
blockly/apps/plane/generated/nb.js on lines 43..63
blockly/apps/plane/generated/pa.js on lines 43..63
blockly/apps/plane/generated/ps.js on lines 43..63
blockly/apps/plane/generated/si.js on lines 43..63
blockly/apps/plane/generated/sk.js on lines 43..63
blockly/apps/plane/generated/te.js on lines 43..63
blockly/apps/plane/generated/tzm.js on lines 43..63
blockly/apps/plane/generated/uk.js on lines 43..63
blockly/apps/plane/generated/vi.js on lines 43..63
blockly/apps/plane/generated/zh-hans.js on lines 43..63
blockly/apps/plane/generated/zh-hant.js on lines 43..63

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

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

planepage.start = function(opt_data, opt_ignored, opt_ijData) {
  var output = planepage.messages(null, null, opt_ijData) + '<table width="100%"><tr><td><h1><span id="title"><a href="../index.html?lang=' + soy.$$escapeHtml(opt_ijData.lang) + '">Blockly</a> : Plane Seat Calculator</span> &nbsp; ';
  var iLimit130 = opt_ijData.maxLevel + 1;
  for (var i130 = 1; i130 < iLimit130; i130++) {
    output += ' ' + ((i130 == opt_ijData.level) ? '<span class="tab" id="selected">' + soy.$$escapeHtml(i130) + '</span>' : (i130 < opt_ijData.level) ? '<a class="tab previous" href="?lang=' + soy.$$escapeHtml(opt_ijData.lang) + '&level=' + soy.$$escapeHtml(i130) + '">' + soy.$$escapeHtml(i130) + '</a>' : '<a class="tab" href="?lang=' + soy.$$escapeHtml(opt_ijData.lang) + '&level=' + soy.$$escapeHtml(i130) + '">' + soy.$$escapeHtml(i130) + '</a>');
Severity: Major
Found in blockly/apps/plane/generated/mzn.js and 37 other locations - About 2 days to fix
blockly/apps/plane/generated/af.js on lines 43..63
blockly/apps/plane/generated/ar.js on lines 43..63
blockly/apps/plane/generated/arz.js on lines 43..63
blockly/apps/plane/generated/az.js on lines 43..63
blockly/apps/plane/generated/bg.js on lines 43..63
blockly/apps/plane/generated/bn.js on lines 43..63
blockly/apps/plane/generated/cdo.js on lines 43..63
blockly/apps/plane/generated/cs.js on lines 43..63
blockly/apps/plane/generated/da.js on lines 43..63
blockly/apps/plane/generated/en.js on lines 43..63
blockly/apps/plane/generated/fa.js on lines 43..63
blockly/apps/plane/generated/fo.js on lines 43..63
blockly/apps/plane/generated/frr.js on lines 43..63
blockly/apps/plane/generated/hak.js on lines 43..63
blockly/apps/plane/generated/he.js on lines 43..63
blockly/apps/plane/generated/ja.js on lines 43..63
blockly/apps/plane/generated/ka.js on lines 43..63
blockly/apps/plane/generated/km.js on lines 43..63
blockly/apps/plane/generated/ko.js on lines 43..63
blockly/apps/plane/generated/ku-latn.js on lines 43..63
blockly/apps/plane/generated/ky.js on lines 43..63
blockly/apps/plane/generated/lrc.js on lines 43..63
blockly/apps/plane/generated/lt.js on lines 43..63
blockly/apps/plane/generated/mk.js on lines 43..63
blockly/apps/plane/generated/ml.js on lines 43..63
blockly/apps/plane/generated/nb.js on lines 43..63
blockly/apps/plane/generated/pa.js on lines 43..63
blockly/apps/plane/generated/ps.js on lines 43..63
blockly/apps/plane/generated/si.js on lines 43..63
blockly/apps/plane/generated/sk.js on lines 43..63
blockly/apps/plane/generated/ta.js on lines 43..63
blockly/apps/plane/generated/te.js on lines 43..63
blockly/apps/plane/generated/tzm.js on lines 43..63
blockly/apps/plane/generated/uk.js on lines 43..63
blockly/apps/plane/generated/vi.js on lines 43..63
blockly/apps/plane/generated/zh-hans.js on lines 43..63
blockly/apps/plane/generated/zh-hant.js on lines 43..63

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

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

planepage.start = function(opt_data, opt_ignored, opt_ijData) {
  var output = planepage.messages(null, null, opt_ijData) + '<table width="100%"><tr><td><h1><span id="title"><a href="../index.html?lang=' + soy.$$escapeHtml(opt_ijData.lang) + '">بلوکی</a> : محاسبه\u200Cگر صندلی\u200Cهای هواپیما</span> &nbsp; ';
  var iLimit130 = opt_ijData.maxLevel + 1;
  for (var i130 = 1; i130 < iLimit130; i130++) {
    output += ' ' + ((i130 == opt_ijData.level) ? '<span class="tab" id="selected">' + soy.$$escapeHtml(i130) + '</span>' : (i130 < opt_ijData.level) ? '<a class="tab previous" href="?lang=' + soy.$$escapeHtml(opt_ijData.lang) + '&level=' + soy.$$escapeHtml(i130) + '">' + soy.$$escapeHtml(i130) + '</a>' : '<a class="tab" href="?lang=' + soy.$$escapeHtml(opt_ijData.lang) + '&level=' + soy.$$escapeHtml(i130) + '">' + soy.$$escapeHtml(i130) + '</a>');
Severity: Major
Found in blockly/apps/plane/generated/fa.js and 37 other locations - About 2 days to fix
blockly/apps/plane/generated/af.js on lines 43..63
blockly/apps/plane/generated/ar.js on lines 43..63
blockly/apps/plane/generated/arz.js on lines 43..63
blockly/apps/plane/generated/az.js on lines 43..63
blockly/apps/plane/generated/bg.js on lines 43..63
blockly/apps/plane/generated/bn.js on lines 43..63
blockly/apps/plane/generated/cdo.js on lines 43..63
blockly/apps/plane/generated/cs.js on lines 43..63
blockly/apps/plane/generated/da.js on lines 43..63
blockly/apps/plane/generated/en.js on lines 43..63
blockly/apps/plane/generated/fo.js on lines 43..63
blockly/apps/plane/generated/frr.js on lines 43..63
blockly/apps/plane/generated/hak.js on lines 43..63
blockly/apps/plane/generated/he.js on lines 43..63
blockly/apps/plane/generated/ja.js on lines 43..63
blockly/apps/plane/generated/ka.js on lines 43..63
blockly/apps/plane/generated/km.js on lines 43..63
blockly/apps/plane/generated/ko.js on lines 43..63
blockly/apps/plane/generated/ku-latn.js on lines 43..63
blockly/apps/plane/generated/ky.js on lines 43..63
blockly/apps/plane/generated/lrc.js on lines 43..63
blockly/apps/plane/generated/lt.js on lines 43..63
blockly/apps/plane/generated/mk.js on lines 43..63
blockly/apps/plane/generated/ml.js on lines 43..63
blockly/apps/plane/generated/mzn.js on lines 43..63
blockly/apps/plane/generated/nb.js on lines 43..63
blockly/apps/plane/generated/pa.js on lines 43..63
blockly/apps/plane/generated/ps.js on lines 43..63
blockly/apps/plane/generated/si.js on lines 43..63
blockly/apps/plane/generated/sk.js on lines 43..63
blockly/apps/plane/generated/ta.js on lines 43..63
blockly/apps/plane/generated/te.js on lines 43..63
blockly/apps/plane/generated/tzm.js on lines 43..63
blockly/apps/plane/generated/uk.js on lines 43..63
blockly/apps/plane/generated/vi.js on lines 43..63
blockly/apps/plane/generated/zh-hans.js on lines 43..63
blockly/apps/plane/generated/zh-hant.js on lines 43..63

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

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

planepage.start = function(opt_data, opt_ignored, opt_ijData) {
  var output = planepage.messages(null, null, opt_ijData) + '<table width="100%"><tr><td><h1><span id="title"><a href="../index.html?lang=' + soy.$$escapeHtml(opt_ijData.lang) + '">Blockly</a> : Plane Seat Calculator</span> &nbsp; ';
  var iLimit130 = opt_ijData.maxLevel + 1;
  for (var i130 = 1; i130 < iLimit130; i130++) {
    output += ' ' + ((i130 == opt_ijData.level) ? '<span class="tab" id="selected">' + soy.$$escapeHtml(i130) + '</span>' : (i130 < opt_ijData.level) ? '<a class="tab previous" href="?lang=' + soy.$$escapeHtml(opt_ijData.lang) + '&level=' + soy.$$escapeHtml(i130) + '">' + soy.$$escapeHtml(i130) + '</a>' : '<a class="tab" href="?lang=' + soy.$$escapeHtml(opt_ijData.lang) + '&level=' + soy.$$escapeHtml(i130) + '">' + soy.$$escapeHtml(i130) + '</a>');
Severity: Major
Found in blockly/apps/plane/generated/ku-latn.js and 37 other locations - About 2 days to fix
blockly/apps/plane/generated/af.js on lines 43..63
blockly/apps/plane/generated/ar.js on lines 43..63
blockly/apps/plane/generated/arz.js on lines 43..63
blockly/apps/plane/generated/az.js on lines 43..63
blockly/apps/plane/generated/bg.js on lines 43..63
blockly/apps/plane/generated/bn.js on lines 43..63
blockly/apps/plane/generated/cdo.js on lines 43..63
blockly/apps/plane/generated/cs.js on lines 43..63
blockly/apps/plane/generated/da.js on lines 43..63
blockly/apps/plane/generated/en.js on lines 43..63
blockly/apps/plane/generated/fa.js on lines 43..63
blockly/apps/plane/generated/fo.js on lines 43..63
blockly/apps/plane/generated/frr.js on lines 43..63
blockly/apps/plane/generated/hak.js on lines 43..63
blockly/apps/plane/generated/he.js on lines 43..63
blockly/apps/plane/generated/ja.js on lines 43..63
blockly/apps/plane/generated/ka.js on lines 43..63
blockly/apps/plane/generated/km.js on lines 43..63
blockly/apps/plane/generated/ko.js on lines 43..63
blockly/apps/plane/generated/ky.js on lines 43..63
blockly/apps/plane/generated/lrc.js on lines 43..63
blockly/apps/plane/generated/lt.js on lines 43..63
blockly/apps/plane/generated/mk.js on lines 43..63
blockly/apps/plane/generated/ml.js on lines 43..63
blockly/apps/plane/generated/mzn.js on lines 43..63
blockly/apps/plane/generated/nb.js on lines 43..63
blockly/apps/plane/generated/pa.js on lines 43..63
blockly/apps/plane/generated/ps.js on lines 43..63
blockly/apps/plane/generated/si.js on lines 43..63
blockly/apps/plane/generated/sk.js on lines 43..63
blockly/apps/plane/generated/ta.js on lines 43..63
blockly/apps/plane/generated/te.js on lines 43..63
blockly/apps/plane/generated/tzm.js on lines 43..63
blockly/apps/plane/generated/uk.js on lines 43..63
blockly/apps/plane/generated/vi.js on lines 43..63
blockly/apps/plane/generated/zh-hans.js on lines 43..63
blockly/apps/plane/generated/zh-hant.js on lines 43..63

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

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

planepage.start = function(opt_data, opt_ignored, opt_ijData) {
  var output = planepage.messages(null, null, opt_ijData) + '<table width="100%"><tr><td><h1><span id="title"><a href="../index.html?lang=' + soy.$$escapeHtml(opt_ijData.lang) + '">Blockly</a> : Plane Seat Calculator</span> &nbsp; ';
  var iLimit130 = opt_ijData.maxLevel + 1;
  for (var i130 = 1; i130 < iLimit130; i130++) {
    output += ' ' + ((i130 == opt_ijData.level) ? '<span class="tab" id="selected">' + soy.$$escapeHtml(i130) + '</span>' : (i130 < opt_ijData.level) ? '<a class="tab previous" href="?lang=' + soy.$$escapeHtml(opt_ijData.lang) + '&level=' + soy.$$escapeHtml(i130) + '">' + soy.$$escapeHtml(i130) + '</a>' : '<a class="tab" href="?lang=' + soy.$$escapeHtml(opt_ijData.lang) + '&level=' + soy.$$escapeHtml(i130) + '">' + soy.$$escapeHtml(i130) + '</a>');
Severity: Major
Found in blockly/apps/plane/generated/bg.js and 37 other locations - About 2 days to fix
blockly/apps/plane/generated/af.js on lines 43..63
blockly/apps/plane/generated/ar.js on lines 43..63
blockly/apps/plane/generated/arz.js on lines 43..63
blockly/apps/plane/generated/az.js on lines 43..63
blockly/apps/plane/generated/bn.js on lines 43..63
blockly/apps/plane/generated/cdo.js on lines 43..63
blockly/apps/plane/generated/cs.js on lines 43..63
blockly/apps/plane/generated/da.js on lines 43..63
blockly/apps/plane/generated/en.js on lines 43..63
blockly/apps/plane/generated/fa.js on lines 43..63
blockly/apps/plane/generated/fo.js on lines 43..63
blockly/apps/plane/generated/frr.js on lines 43..63
blockly/apps/plane/generated/hak.js on lines 43..63
blockly/apps/plane/generated/he.js on lines 43..63
blockly/apps/plane/generated/ja.js on lines 43..63
blockly/apps/plane/generated/ka.js on lines 43..63
blockly/apps/plane/generated/km.js on lines 43..63
blockly/apps/plane/generated/ko.js on lines 43..63
blockly/apps/plane/generated/ku-latn.js on lines 43..63
blockly/apps/plane/generated/ky.js on lines 43..63
blockly/apps/plane/generated/lrc.js on lines 43..63
blockly/apps/plane/generated/lt.js on lines 43..63
blockly/apps/plane/generated/mk.js on lines 43..63
blockly/apps/plane/generated/ml.js on lines 43..63
blockly/apps/plane/generated/mzn.js on lines 43..63
blockly/apps/plane/generated/nb.js on lines 43..63
blockly/apps/plane/generated/pa.js on lines 43..63
blockly/apps/plane/generated/ps.js on lines 43..63
blockly/apps/plane/generated/si.js on lines 43..63
blockly/apps/plane/generated/sk.js on lines 43..63
blockly/apps/plane/generated/ta.js on lines 43..63
blockly/apps/plane/generated/te.js on lines 43..63
blockly/apps/plane/generated/tzm.js on lines 43..63
blockly/apps/plane/generated/uk.js on lines 43..63
blockly/apps/plane/generated/vi.js on lines 43..63
blockly/apps/plane/generated/zh-hans.js on lines 43..63
blockly/apps/plane/generated/zh-hant.js on lines 43..63

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

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

planepage.start = function(opt_data, opt_ignored, opt_ijData) {
  var output = planepage.messages(null, null, opt_ijData) + '<table width="100%"><tr><td><h1><span id="title"><a href="../index.html?lang=' + soy.$$escapeHtml(opt_ijData.lang) + '">Blockly</a> : Lietadlo</span> &nbsp; ';
  var iLimit130 = opt_ijData.maxLevel + 1;
  for (var i130 = 1; i130 < iLimit130; i130++) {
    output += ' ' + ((i130 == opt_ijData.level) ? '<span class="tab" id="selected">' + soy.$$escapeHtml(i130) + '</span>' : (i130 < opt_ijData.level) ? '<a class="tab previous" href="?lang=' + soy.$$escapeHtml(opt_ijData.lang) + '&level=' + soy.$$escapeHtml(i130) + '">' + soy.$$escapeHtml(i130) + '</a>' : '<a class="tab" href="?lang=' + soy.$$escapeHtml(opt_ijData.lang) + '&level=' + soy.$$escapeHtml(i130) + '">' + soy.$$escapeHtml(i130) + '</a>');
Severity: Major
Found in blockly/apps/plane/generated/sk.js and 37 other locations - About 2 days to fix
blockly/apps/plane/generated/af.js on lines 43..63
blockly/apps/plane/generated/ar.js on lines 43..63
blockly/apps/plane/generated/arz.js on lines 43..63
blockly/apps/plane/generated/az.js on lines 43..63
blockly/apps/plane/generated/bg.js on lines 43..63
blockly/apps/plane/generated/bn.js on lines 43..63
blockly/apps/plane/generated/cdo.js on lines 43..63
blockly/apps/plane/generated/cs.js on lines 43..63
blockly/apps/plane/generated/da.js on lines 43..63
blockly/apps/plane/generated/en.js on lines 43..63
blockly/apps/plane/generated/fa.js on lines 43..63
blockly/apps/plane/generated/fo.js on lines 43..63
blockly/apps/plane/generated/frr.js on lines 43..63
blockly/apps/plane/generated/hak.js on lines 43..63
blockly/apps/plane/generated/he.js on lines 43..63
blockly/apps/plane/generated/ja.js on lines 43..63
blockly/apps/plane/generated/ka.js on lines 43..63
blockly/apps/plane/generated/km.js on lines 43..63
blockly/apps/plane/generated/ko.js on lines 43..63
blockly/apps/plane/generated/ku-latn.js on lines 43..63
blockly/apps/plane/generated/ky.js on lines 43..63
blockly/apps/plane/generated/lrc.js on lines 43..63
blockly/apps/plane/generated/lt.js on lines 43..63
blockly/apps/plane/generated/mk.js on lines 43..63
blockly/apps/plane/generated/ml.js on lines 43..63
blockly/apps/plane/generated/mzn.js on lines 43..63
blockly/apps/plane/generated/nb.js on lines 43..63
blockly/apps/plane/generated/pa.js on lines 43..63
blockly/apps/plane/generated/ps.js on lines 43..63
blockly/apps/plane/generated/si.js on lines 43..63
blockly/apps/plane/generated/ta.js on lines 43..63
blockly/apps/plane/generated/te.js on lines 43..63
blockly/apps/plane/generated/tzm.js on lines 43..63
blockly/apps/plane/generated/uk.js on lines 43..63
blockly/apps/plane/generated/vi.js on lines 43..63
blockly/apps/plane/generated/zh-hans.js on lines 43..63
blockly/apps/plane/generated/zh-hant.js on lines 43..63

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

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

planepage.start = function(opt_data, opt_ignored, opt_ijData) {
  var output = planepage.messages(null, null, opt_ijData) + '<table width="100%"><tr><td><h1><span id="title"><a href="../index.html?lang=' + soy.$$escapeHtml(opt_ijData.lang) + '">Blockly</a> : Plane Seat Calculator</span> &nbsp; ';
  var iLimit130 = opt_ijData.maxLevel + 1;
  for (var i130 = 1; i130 < iLimit130; i130++) {
    output += ' ' + ((i130 == opt_ijData.level) ? '<span class="tab" id="selected">' + soy.$$escapeHtml(i130) + '</span>' : (i130 < opt_ijData.level) ? '<a class="tab previous" href="?lang=' + soy.$$escapeHtml(opt_ijData.lang) + '&level=' + soy.$$escapeHtml(i130) + '">' + soy.$$escapeHtml(i130) + '</a>' : '<a class="tab" href="?lang=' + soy.$$escapeHtml(opt_ijData.lang) + '&level=' + soy.$$escapeHtml(i130) + '">' + soy.$$escapeHtml(i130) + '</a>');
Severity: Major
Found in blockly/apps/plane/generated/af.js and 37 other locations - About 2 days to fix
blockly/apps/plane/generated/ar.js on lines 43..63
blockly/apps/plane/generated/arz.js on lines 43..63
blockly/apps/plane/generated/az.js on lines 43..63
blockly/apps/plane/generated/bg.js on lines 43..63
blockly/apps/plane/generated/bn.js on lines 43..63
blockly/apps/plane/generated/cdo.js on lines 43..63
blockly/apps/plane/generated/cs.js on lines 43..63
blockly/apps/plane/generated/da.js on lines 43..63
blockly/apps/plane/generated/en.js on lines 43..63
blockly/apps/plane/generated/fa.js on lines 43..63
blockly/apps/plane/generated/fo.js on lines 43..63
blockly/apps/plane/generated/frr.js on lines 43..63
blockly/apps/plane/generated/hak.js on lines 43..63
blockly/apps/plane/generated/he.js on lines 43..63
blockly/apps/plane/generated/ja.js on lines 43..63
blockly/apps/plane/generated/ka.js on lines 43..63
blockly/apps/plane/generated/km.js on lines 43..63
blockly/apps/plane/generated/ko.js on lines 43..63
blockly/apps/plane/generated/ku-latn.js on lines 43..63
blockly/apps/plane/generated/ky.js on lines 43..63
blockly/apps/plane/generated/lrc.js on lines 43..63
blockly/apps/plane/generated/lt.js on lines 43..63
blockly/apps/plane/generated/mk.js on lines 43..63
blockly/apps/plane/generated/ml.js on lines 43..63
blockly/apps/plane/generated/mzn.js on lines 43..63
blockly/apps/plane/generated/nb.js on lines 43..63
blockly/apps/plane/generated/pa.js on lines 43..63
blockly/apps/plane/generated/ps.js on lines 43..63
blockly/apps/plane/generated/si.js on lines 43..63
blockly/apps/plane/generated/sk.js on lines 43..63
blockly/apps/plane/generated/ta.js on lines 43..63
blockly/apps/plane/generated/te.js on lines 43..63
blockly/apps/plane/generated/tzm.js on lines 43..63
blockly/apps/plane/generated/uk.js on lines 43..63
blockly/apps/plane/generated/vi.js on lines 43..63
blockly/apps/plane/generated/zh-hans.js on lines 43..63
blockly/apps/plane/generated/zh-hant.js on lines 43..63

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

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

planepage.start = function(opt_data, opt_ignored, opt_ijData) {
  var output = planepage.messages(null, null, opt_ijData) + '<table width="100%"><tr><td><h1><span id="title"><a href="../index.html?lang=' + soy.$$escapeHtml(opt_ijData.lang) + '">بلوكلي</a> : آلة حاسبة لمقعد الطائرة</span> &nbsp; ';
  var iLimit130 = opt_ijData.maxLevel + 1;
  for (var i130 = 1; i130 < iLimit130; i130++) {
    output += ' ' + ((i130 == opt_ijData.level) ? '<span class="tab" id="selected">' + soy.$$escapeHtml(i130) + '</span>' : (i130 < opt_ijData.level) ? '<a class="tab previous" href="?lang=' + soy.$$escapeHtml(opt_ijData.lang) + '&level=' + soy.$$escapeHtml(i130) + '">' + soy.$$escapeHtml(i130) + '</a>' : '<a class="tab" href="?lang=' + soy.$$escapeHtml(opt_ijData.lang) + '&level=' + soy.$$escapeHtml(i130) + '">' + soy.$$escapeHtml(i130) + '</a>');
Severity: Major
Found in blockly/apps/plane/generated/ar.js and 37 other locations - About 2 days to fix
blockly/apps/plane/generated/af.js on lines 43..63
blockly/apps/plane/generated/arz.js on lines 43..63
blockly/apps/plane/generated/az.js on lines 43..63
blockly/apps/plane/generated/bg.js on lines 43..63
blockly/apps/plane/generated/bn.js on lines 43..63
blockly/apps/plane/generated/cdo.js on lines 43..63
blockly/apps/plane/generated/cs.js on lines 43..63
blockly/apps/plane/generated/da.js on lines 43..63
blockly/apps/plane/generated/en.js on lines 43..63
blockly/apps/plane/generated/fa.js on lines 43..63
blockly/apps/plane/generated/fo.js on lines 43..63
blockly/apps/plane/generated/frr.js on lines 43..63
blockly/apps/plane/generated/hak.js on lines 43..63
blockly/apps/plane/generated/he.js on lines 43..63
blockly/apps/plane/generated/ja.js on lines 43..63
blockly/apps/plane/generated/ka.js on lines 43..63
blockly/apps/plane/generated/km.js on lines 43..63
blockly/apps/plane/generated/ko.js on lines 43..63
blockly/apps/plane/generated/ku-latn.js on lines 43..63
blockly/apps/plane/generated/ky.js on lines 43..63
blockly/apps/plane/generated/lrc.js on lines 43..63
blockly/apps/plane/generated/lt.js on lines 43..63
blockly/apps/plane/generated/mk.js on lines 43..63
blockly/apps/plane/generated/ml.js on lines 43..63
blockly/apps/plane/generated/mzn.js on lines 43..63
blockly/apps/plane/generated/nb.js on lines 43..63
blockly/apps/plane/generated/pa.js on lines 43..63
blockly/apps/plane/generated/ps.js on lines 43..63
blockly/apps/plane/generated/si.js on lines 43..63
blockly/apps/plane/generated/sk.js on lines 43..63
blockly/apps/plane/generated/ta.js on lines 43..63
blockly/apps/plane/generated/te.js on lines 43..63
blockly/apps/plane/generated/tzm.js on lines 43..63
blockly/apps/plane/generated/uk.js on lines 43..63
blockly/apps/plane/generated/vi.js on lines 43..63
blockly/apps/plane/generated/zh-hans.js on lines 43..63
blockly/apps/plane/generated/zh-hant.js on lines 43..63

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

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

planepage.start = function(opt_data, opt_ignored, opt_ijData) {
  var output = planepage.messages(null, null, opt_ijData) + '<table width="100%"><tr><td><h1><span id="title"><a href="../index.html?lang=' + soy.$$escapeHtml(opt_ijData.lang) + '">Blockly</a> : Plane Seat Calculator</span> &nbsp; ';
  var iLimit130 = opt_ijData.maxLevel + 1;
  for (var i130 = 1; i130 < iLimit130; i130++) {
    output += ' ' + ((i130 == opt_ijData.level) ? '<span class="tab" id="selected">' + soy.$$escapeHtml(i130) + '</span>' : (i130 < opt_ijData.level) ? '<a class="tab previous" href="?lang=' + soy.$$escapeHtml(opt_ijData.lang) + '&level=' + soy.$$escapeHtml(i130) + '">' + soy.$$escapeHtml(i130) + '</a>' : '<a class="tab" href="?lang=' + soy.$$escapeHtml(opt_ijData.lang) + '&level=' + soy.$$escapeHtml(i130) + '">' + soy.$$escapeHtml(i130) + '</a>');
Severity: Major
Found in blockly/apps/plane/generated/te.js and 37 other locations - About 2 days to fix
blockly/apps/plane/generated/af.js on lines 43..63
blockly/apps/plane/generated/ar.js on lines 43..63
blockly/apps/plane/generated/arz.js on lines 43..63
blockly/apps/plane/generated/az.js on lines 43..63
blockly/apps/plane/generated/bg.js on lines 43..63
blockly/apps/plane/generated/bn.js on lines 43..63
blockly/apps/plane/generated/cdo.js on lines 43..63
blockly/apps/plane/generated/cs.js on lines 43..63
blockly/apps/plane/generated/da.js on lines 43..63
blockly/apps/plane/generated/en.js on lines 43..63
blockly/apps/plane/generated/fa.js on lines 43..63
blockly/apps/plane/generated/fo.js on lines 43..63
blockly/apps/plane/generated/frr.js on lines 43..63
blockly/apps/plane/generated/hak.js on lines 43..63
blockly/apps/plane/generated/he.js on lines 43..63
blockly/apps/plane/generated/ja.js on lines 43..63
blockly/apps/plane/generated/ka.js on lines 43..63
blockly/apps/plane/generated/km.js on lines 43..63
blockly/apps/plane/generated/ko.js on lines 43..63
blockly/apps/plane/generated/ku-latn.js on lines 43..63
blockly/apps/plane/generated/ky.js on lines 43..63
blockly/apps/plane/generated/lrc.js on lines 43..63
blockly/apps/plane/generated/lt.js on lines 43..63
blockly/apps/plane/generated/mk.js on lines 43..63
blockly/apps/plane/generated/ml.js on lines 43..63
blockly/apps/plane/generated/mzn.js on lines 43..63
blockly/apps/plane/generated/nb.js on lines 43..63
blockly/apps/plane/generated/pa.js on lines 43..63
blockly/apps/plane/generated/ps.js on lines 43..63
blockly/apps/plane/generated/si.js on lines 43..63
blockly/apps/plane/generated/sk.js on lines 43..63
blockly/apps/plane/generated/ta.js on lines 43..63
blockly/apps/plane/generated/tzm.js on lines 43..63
blockly/apps/plane/generated/uk.js on lines 43..63
blockly/apps/plane/generated/vi.js on lines 43..63
blockly/apps/plane/generated/zh-hans.js on lines 43..63
blockly/apps/plane/generated/zh-hant.js on lines 43..63

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

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

planepage.start = function(opt_data, opt_ignored, opt_ijData) {
  var output = planepage.messages(null, null, opt_ijData) + '<table width="100%"><tr><td><h1><span id="title"><a href="../index.html?lang=' + soy.$$escapeHtml(opt_ijData.lang) + '">Blockly</a> : Lėktuvo sėdimų vietų skaičiuoklė</span> &nbsp; ';
  var iLimit130 = opt_ijData.maxLevel + 1;
  for (var i130 = 1; i130 < iLimit130; i130++) {
    output += ' ' + ((i130 == opt_ijData.level) ? '<span class="tab" id="selected">' + soy.$$escapeHtml(i130) + '</span>' : (i130 < opt_ijData.level) ? '<a class="tab previous" href="?lang=' + soy.$$escapeHtml(opt_ijData.lang) + '&level=' + soy.$$escapeHtml(i130) + '">' + soy.$$escapeHtml(i130) + '</a>' : '<a class="tab" href="?lang=' + soy.$$escapeHtml(opt_ijData.lang) + '&level=' + soy.$$escapeHtml(i130) + '">' + soy.$$escapeHtml(i130) + '</a>');
Severity: Major
Found in blockly/apps/plane/generated/lt.js and 37 other locations - About 2 days to fix
blockly/apps/plane/generated/af.js on lines 43..63
blockly/apps/plane/generated/ar.js on lines 43..63
blockly/apps/plane/generated/arz.js on lines 43..63
blockly/apps/plane/generated/az.js on lines 43..63
blockly/apps/plane/generated/bg.js on lines 43..63
blockly/apps/plane/generated/bn.js on lines 43..63
blockly/apps/plane/generated/cdo.js on lines 43..63
blockly/apps/plane/generated/cs.js on lines 43..63
blockly/apps/plane/generated/da.js on lines 43..63
blockly/apps/plane/generated/en.js on lines 43..63
blockly/apps/plane/generated/fa.js on lines 43..63
blockly/apps/plane/generated/fo.js on lines 43..63
blockly/apps/plane/generated/frr.js on lines 43..63
blockly/apps/plane/generated/hak.js on lines 43..63
blockly/apps/plane/generated/he.js on lines 43..63
blockly/apps/plane/generated/ja.js on lines 43..63
blockly/apps/plane/generated/ka.js on lines 43..63
blockly/apps/plane/generated/km.js on lines 43..63
blockly/apps/plane/generated/ko.js on lines 43..63
blockly/apps/plane/generated/ku-latn.js on lines 43..63
blockly/apps/plane/generated/ky.js on lines 43..63
blockly/apps/plane/generated/lrc.js on lines 43..63
blockly/apps/plane/generated/mk.js on lines 43..63
blockly/apps/plane/generated/ml.js on lines 43..63
blockly/apps/plane/generated/mzn.js on lines 43..63
blockly/apps/plane/generated/nb.js on lines 43..63
blockly/apps/plane/generated/pa.js on lines 43..63
blockly/apps/plane/generated/ps.js on lines 43..63
blockly/apps/plane/generated/si.js on lines 43..63
blockly/apps/plane/generated/sk.js on lines 43..63
blockly/apps/plane/generated/ta.js on lines 43..63
blockly/apps/plane/generated/te.js on lines 43..63
blockly/apps/plane/generated/tzm.js on lines 43..63
blockly/apps/plane/generated/uk.js on lines 43..63
blockly/apps/plane/generated/vi.js on lines 43..63
blockly/apps/plane/generated/zh-hans.js on lines 43..63
blockly/apps/plane/generated/zh-hant.js on lines 43..63

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

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

Blockly.JavaScript['text_join'] = function(block) {
  // Create a string made up of any number of elements of any type.
  var code;
  if (block.itemCount_ == 0) {
    return ['\'\'', Blockly.JavaScript.ORDER_ATOMIC];
Severity: Major
Found in generators/javascript/text.js and 1 other location - About 2 days to fix
generators/cake/text.js on lines 38..64

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

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

planepage.start = function(opt_data, opt_ignored, opt_ijData) {
  var output = planepage.messages(null, null, opt_ijData) + '<table width="100%"><tr><td><h1><span id="title"><a href="../index.html?lang=' + soy.$$escapeHtml(opt_ijData.lang) + '">Blockly</a> : Plane Seat Calculator</span> &nbsp; ';
  var iLimit130 = opt_ijData.maxLevel + 1;
  for (var i130 = 1; i130 < iLimit130; i130++) {
    output += ' ' + ((i130 == opt_ijData.level) ? '<span class="tab" id="selected">' + soy.$$escapeHtml(i130) + '</span>' : (i130 < opt_ijData.level) ? '<a class="tab previous" href="?lang=' + soy.$$escapeHtml(opt_ijData.lang) + '&level=' + soy.$$escapeHtml(i130) + '">' + soy.$$escapeHtml(i130) + '</a>' : '<a class="tab" href="?lang=' + soy.$$escapeHtml(opt_ijData.lang) + '&level=' + soy.$$escapeHtml(i130) + '">' + soy.$$escapeHtml(i130) + '</a>');
Severity: Major
Found in blockly/apps/plane/generated/si.js and 37 other locations - About 2 days to fix
blockly/apps/plane/generated/af.js on lines 43..63
blockly/apps/plane/generated/ar.js on lines 43..63
blockly/apps/plane/generated/arz.js on lines 43..63
blockly/apps/plane/generated/az.js on lines 43..63
blockly/apps/plane/generated/bg.js on lines 43..63
blockly/apps/plane/generated/bn.js on lines 43..63
blockly/apps/plane/generated/cdo.js on lines 43..63
blockly/apps/plane/generated/cs.js on lines 43..63
blockly/apps/plane/generated/da.js on lines 43..63
blockly/apps/plane/generated/en.js on lines 43..63
blockly/apps/plane/generated/fa.js on lines 43..63
blockly/apps/plane/generated/fo.js on lines 43..63
blockly/apps/plane/generated/frr.js on lines 43..63
blockly/apps/plane/generated/hak.js on lines 43..63
blockly/apps/plane/generated/he.js on lines 43..63
blockly/apps/plane/generated/ja.js on lines 43..63
blockly/apps/plane/generated/ka.js on lines 43..63
blockly/apps/plane/generated/km.js on lines 43..63
blockly/apps/plane/generated/ko.js on lines 43..63
blockly/apps/plane/generated/ku-latn.js on lines 43..63
blockly/apps/plane/generated/ky.js on lines 43..63
blockly/apps/plane/generated/lrc.js on lines 43..63
blockly/apps/plane/generated/lt.js on lines 43..63
blockly/apps/plane/generated/mk.js on lines 43..63
blockly/apps/plane/generated/ml.js on lines 43..63
blockly/apps/plane/generated/mzn.js on lines 43..63
blockly/apps/plane/generated/nb.js on lines 43..63
blockly/apps/plane/generated/pa.js on lines 43..63
blockly/apps/plane/generated/ps.js on lines 43..63
blockly/apps/plane/generated/sk.js on lines 43..63
blockly/apps/plane/generated/ta.js on lines 43..63
blockly/apps/plane/generated/te.js on lines 43..63
blockly/apps/plane/generated/tzm.js on lines 43..63
blockly/apps/plane/generated/uk.js on lines 43..63
blockly/apps/plane/generated/vi.js on lines 43..63
blockly/apps/plane/generated/zh-hans.js on lines 43..63
blockly/apps/plane/generated/zh-hant.js on lines 43..63

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

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

planepage.start = function(opt_data, opt_ignored, opt_ijData) {
  var output = planepage.messages(null, null, opt_ijData) + '<table width="100%"><tr><td><h1><span id="title"><a href="../index.html?lang=' + soy.$$escapeHtml(opt_ijData.lang) + '">Blockly</a> : Plane Seat Calculator</span> &nbsp; ';
  var iLimit130 = opt_ijData.maxLevel + 1;
  for (var i130 = 1; i130 < iLimit130; i130++) {
    output += ' ' + ((i130 == opt_ijData.level) ? '<span class="tab" id="selected">' + soy.$$escapeHtml(i130) + '</span>' : (i130 < opt_ijData.level) ? '<a class="tab previous" href="?lang=' + soy.$$escapeHtml(opt_ijData.lang) + '&level=' + soy.$$escapeHtml(i130) + '">' + soy.$$escapeHtml(i130) + '</a>' : '<a class="tab" href="?lang=' + soy.$$escapeHtml(opt_ijData.lang) + '&level=' + soy.$$escapeHtml(i130) + '">' + soy.$$escapeHtml(i130) + '</a>');
Severity: Major
Found in blockly/apps/plane/generated/az.js and 37 other locations - About 2 days to fix
blockly/apps/plane/generated/af.js on lines 43..63
blockly/apps/plane/generated/ar.js on lines 43..63
blockly/apps/plane/generated/arz.js on lines 43..63
blockly/apps/plane/generated/bg.js on lines 43..63
blockly/apps/plane/generated/bn.js on lines 43..63
blockly/apps/plane/generated/cdo.js on lines 43..63
blockly/apps/plane/generated/cs.js on lines 43..63
blockly/apps/plane/generated/da.js on lines 43..63
blockly/apps/plane/generated/en.js on lines 43..63
blockly/apps/plane/generated/fa.js on lines 43..63
blockly/apps/plane/generated/fo.js on lines 43..63
blockly/apps/plane/generated/frr.js on lines 43..63
blockly/apps/plane/generated/hak.js on lines 43..63
blockly/apps/plane/generated/he.js on lines 43..63
blockly/apps/plane/generated/ja.js on lines 43..63
blockly/apps/plane/generated/ka.js on lines 43..63
blockly/apps/plane/generated/km.js on lines 43..63
blockly/apps/plane/generated/ko.js on lines 43..63
blockly/apps/plane/generated/ku-latn.js on lines 43..63
blockly/apps/plane/generated/ky.js on lines 43..63
blockly/apps/plane/generated/lrc.js on lines 43..63
blockly/apps/plane/generated/lt.js on lines 43..63
blockly/apps/plane/generated/mk.js on lines 43..63
blockly/apps/plane/generated/ml.js on lines 43..63
blockly/apps/plane/generated/mzn.js on lines 43..63
blockly/apps/plane/generated/nb.js on lines 43..63
blockly/apps/plane/generated/pa.js on lines 43..63
blockly/apps/plane/generated/ps.js on lines 43..63
blockly/apps/plane/generated/si.js on lines 43..63
blockly/apps/plane/generated/sk.js on lines 43..63
blockly/apps/plane/generated/ta.js on lines 43..63
blockly/apps/plane/generated/te.js on lines 43..63
blockly/apps/plane/generated/tzm.js on lines 43..63
blockly/apps/plane/generated/uk.js on lines 43..63
blockly/apps/plane/generated/vi.js on lines 43..63
blockly/apps/plane/generated/zh-hans.js on lines 43..63
blockly/apps/plane/generated/zh-hant.js on lines 43..63

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

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

planepage.start = function(opt_data, opt_ignored, opt_ijData) {
  var output = planepage.messages(null, null, opt_ijData) + '<table width="100%"><tr><td><h1><span id="title"><a href="../index.html?lang=' + soy.$$escapeHtml(opt_ijData.lang) + '">Blockly</a> : Máy bay ghế máy tính</span> &nbsp; ';
  var iLimit130 = opt_ijData.maxLevel + 1;
  for (var i130 = 1; i130 < iLimit130; i130++) {
    output += ' ' + ((i130 == opt_ijData.level) ? '<span class="tab" id="selected">' + soy.$$escapeHtml(i130) + '</span>' : (i130 < opt_ijData.level) ? '<a class="tab previous" href="?lang=' + soy.$$escapeHtml(opt_ijData.lang) + '&level=' + soy.$$escapeHtml(i130) + '">' + soy.$$escapeHtml(i130) + '</a>' : '<a class="tab" href="?lang=' + soy.$$escapeHtml(opt_ijData.lang) + '&level=' + soy.$$escapeHtml(i130) + '">' + soy.$$escapeHtml(i130) + '</a>');
Severity: Major
Found in blockly/apps/plane/generated/vi.js and 37 other locations - About 2 days to fix
blockly/apps/plane/generated/af.js on lines 43..63
blockly/apps/plane/generated/ar.js on lines 43..63
blockly/apps/plane/generated/arz.js on lines 43..63
blockly/apps/plane/generated/az.js on lines 43..63
blockly/apps/plane/generated/bg.js on lines 43..63
blockly/apps/plane/generated/bn.js on lines 43..63
blockly/apps/plane/generated/cdo.js on lines 43..63
blockly/apps/plane/generated/cs.js on lines 43..63
blockly/apps/plane/generated/da.js on lines 43..63
blockly/apps/plane/generated/en.js on lines 43..63
blockly/apps/plane/generated/fa.js on lines 43..63
blockly/apps/plane/generated/fo.js on lines 43..63
blockly/apps/plane/generated/frr.js on lines 43..63
blockly/apps/plane/generated/hak.js on lines 43..63
blockly/apps/plane/generated/he.js on lines 43..63
blockly/apps/plane/generated/ja.js on lines 43..63
blockly/apps/plane/generated/ka.js on lines 43..63
blockly/apps/plane/generated/km.js on lines 43..63
blockly/apps/plane/generated/ko.js on lines 43..63
blockly/apps/plane/generated/ku-latn.js on lines 43..63
blockly/apps/plane/generated/ky.js on lines 43..63
blockly/apps/plane/generated/lrc.js on lines 43..63
blockly/apps/plane/generated/lt.js on lines 43..63
blockly/apps/plane/generated/mk.js on lines 43..63
blockly/apps/plane/generated/ml.js on lines 43..63
blockly/apps/plane/generated/mzn.js on lines 43..63
blockly/apps/plane/generated/nb.js on lines 43..63
blockly/apps/plane/generated/pa.js on lines 43..63
blockly/apps/plane/generated/ps.js on lines 43..63
blockly/apps/plane/generated/si.js on lines 43..63
blockly/apps/plane/generated/sk.js on lines 43..63
blockly/apps/plane/generated/ta.js on lines 43..63
blockly/apps/plane/generated/te.js on lines 43..63
blockly/apps/plane/generated/tzm.js on lines 43..63
blockly/apps/plane/generated/uk.js on lines 43..63
blockly/apps/plane/generated/zh-hans.js on lines 43..63
blockly/apps/plane/generated/zh-hant.js on lines 43..63

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

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

planepage.start = function(opt_data, opt_ignored, opt_ijData) {
  var output = planepage.messages(null, null, opt_ijData) + '<table width="100%"><tr><td><h1><span id="title"><a href="../index.html?lang=' + soy.$$escapeHtml(opt_ijData.lang) + '">Blockly</a> : Plane Seat Calculator</span> &nbsp; ';
  var iLimit130 = opt_ijData.maxLevel + 1;
  for (var i130 = 1; i130 < iLimit130; i130++) {
    output += ' ' + ((i130 == opt_ijData.level) ? '<span class="tab" id="selected">' + soy.$$escapeHtml(i130) + '</span>' : (i130 < opt_ijData.level) ? '<a class="tab previous" href="?lang=' + soy.$$escapeHtml(opt_ijData.lang) + '&level=' + soy.$$escapeHtml(i130) + '">' + soy.$$escapeHtml(i130) + '</a>' : '<a class="tab" href="?lang=' + soy.$$escapeHtml(opt_ijData.lang) + '&level=' + soy.$$escapeHtml(i130) + '">' + soy.$$escapeHtml(i130) + '</a>');
Severity: Major
Found in blockly/apps/plane/generated/ps.js and 37 other locations - About 2 days to fix
blockly/apps/plane/generated/af.js on lines 43..63
blockly/apps/plane/generated/ar.js on lines 43..63
blockly/apps/plane/generated/arz.js on lines 43..63
blockly/apps/plane/generated/az.js on lines 43..63
blockly/apps/plane/generated/bg.js on lines 43..63
blockly/apps/plane/generated/bn.js on lines 43..63
blockly/apps/plane/generated/cdo.js on lines 43..63
blockly/apps/plane/generated/cs.js on lines 43..63
blockly/apps/plane/generated/da.js on lines 43..63
blockly/apps/plane/generated/en.js on lines 43..63
blockly/apps/plane/generated/fa.js on lines 43..63
blockly/apps/plane/generated/fo.js on lines 43..63
blockly/apps/plane/generated/frr.js on lines 43..63
blockly/apps/plane/generated/hak.js on lines 43..63
blockly/apps/plane/generated/he.js on lines 43..63
blockly/apps/plane/generated/ja.js on lines 43..63
blockly/apps/plane/generated/ka.js on lines 43..63
blockly/apps/plane/generated/km.js on lines 43..63
blockly/apps/plane/generated/ko.js on lines 43..63
blockly/apps/plane/generated/ku-latn.js on lines 43..63
blockly/apps/plane/generated/ky.js on lines 43..63
blockly/apps/plane/generated/lrc.js on lines 43..63
blockly/apps/plane/generated/lt.js on lines 43..63
blockly/apps/plane/generated/mk.js on lines 43..63
blockly/apps/plane/generated/ml.js on lines 43..63
blockly/apps/plane/generated/mzn.js on lines 43..63
blockly/apps/plane/generated/nb.js on lines 43..63
blockly/apps/plane/generated/pa.js on lines 43..63
blockly/apps/plane/generated/si.js on lines 43..63
blockly/apps/plane/generated/sk.js on lines 43..63
blockly/apps/plane/generated/ta.js on lines 43..63
blockly/apps/plane/generated/te.js on lines 43..63
blockly/apps/plane/generated/tzm.js on lines 43..63
blockly/apps/plane/generated/uk.js on lines 43..63
blockly/apps/plane/generated/vi.js on lines 43..63
blockly/apps/plane/generated/zh-hans.js on lines 43..63
blockly/apps/plane/generated/zh-hant.js on lines 43..63

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

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

Blockly.JavaScript['text_charAt'] = function(block) {
  // Get letter at index.
  // Note: Until January 2013 this block did not have the WHERE input.
  var where = block.getFieldValue('WHERE') || 'FROM_START';
  var at = Blockly.JavaScript.valueToCode(block, 'AT',
Severity: Major
Found in generators/javascript/text.js and 1 other location - About 2 days to fix
generators/cake/text.js on lines 101..142

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

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

Blockly.cake['text_charAt'] = function(block) {
  // Get letter at index.
  // Note: Until January 2013 this block did not have the WHERE input.
  var where = block.getFieldValue('WHERE') || 'FROM_START';
  var at = Blockly.cake.valueToCode(block, 'AT',
Severity: Major
Found in generators/cake/text.js and 1 other location - About 2 days to fix
generators/javascript/text.js on lines 101..142

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

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

        for (var x = 0; x < this.arguments_.length; x++) {
            var parameter = document.createElement('arg');
            parameter.setAttribute('name', this.arguments_[x]);
            parameter.setAttribute('types', this.types_[x]);
            parameter.setAttribute('dist', this.dist_[x]);
Severity: Major
Found in blocks/procedures.js and 1 other location - About 2 days to fix
blocks/procedures.js on lines 251..274

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

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

        for (var x = 0; x < this.arguments_.length; x++) {
            var parameter = document.createElement('arg');
            parameter.setAttribute('name', this.arguments_[x]);
            parameter.setAttribute('types', this.types_[x]);
            parameter.setAttribute('dist', this.dist_[x]);
Severity: Major
Found in blocks/procedures.js and 1 other location - About 2 days to fix
blocks/procedures.js on lines 1103..1126

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

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