prashant-andani/AR-Alphabets-words

View on GitHub

Showing 14 of 17 total issues

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

  {
    id: 1,
    title: "A",
    description: "Airplane",
    objAsset: "airplane_asset_obj",
Severity: Major
Found in scripts/alphabetsList.js and 11 other locations - About 35 mins to fix
scripts/alphabetsList.js on lines 63..73
scripts/alphabetsList.js on lines 74..84
scripts/alphabetsList.js on lines 125..135
scripts/alphabetsList.js on lines 136..146
scripts/alphabetsList.js on lines 147..157
scripts/alphabetsList.js on lines 168..178
scripts/alphabetsList.js on lines 202..212
scripts/alphabetsList.js on lines 213..223
scripts/alphabetsList.js on lines 245..255
scripts/alphabetsList.js on lines 256..266
scripts/alphabetsList.js on lines 267..277

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

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

  {
    id: 13,
    title: "M",
    description: "Monkey",
    objAsset: "monkey_asset_obj",
Severity: Major
Found in scripts/alphabetsList.js and 11 other locations - About 35 mins to fix
scripts/alphabetsList.js on lines 2..12
scripts/alphabetsList.js on lines 63..73
scripts/alphabetsList.js on lines 74..84
scripts/alphabetsList.js on lines 136..146
scripts/alphabetsList.js on lines 147..157
scripts/alphabetsList.js on lines 168..178
scripts/alphabetsList.js on lines 202..212
scripts/alphabetsList.js on lines 213..223
scripts/alphabetsList.js on lines 245..255
scripts/alphabetsList.js on lines 256..266
scripts/alphabetsList.js on lines 267..277

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

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

  {
    id: 24,
    title: "X",
    description: "Xmas",
    objAsset: "xmas_asset_obj",
Severity: Major
Found in scripts/alphabetsList.js and 11 other locations - About 35 mins to fix
scripts/alphabetsList.js on lines 2..12
scripts/alphabetsList.js on lines 63..73
scripts/alphabetsList.js on lines 74..84
scripts/alphabetsList.js on lines 125..135
scripts/alphabetsList.js on lines 136..146
scripts/alphabetsList.js on lines 147..157
scripts/alphabetsList.js on lines 168..178
scripts/alphabetsList.js on lines 202..212
scripts/alphabetsList.js on lines 213..223
scripts/alphabetsList.js on lines 256..266
scripts/alphabetsList.js on lines 267..277

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

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

  {
    id: 26,
    title: "Z",
    description: "Zebra",
    objAsset: "zebra_asset_obj",
Severity: Major
Found in scripts/alphabetsList.js and 11 other locations - About 35 mins to fix
scripts/alphabetsList.js on lines 2..12
scripts/alphabetsList.js on lines 63..73
scripts/alphabetsList.js on lines 74..84
scripts/alphabetsList.js on lines 125..135
scripts/alphabetsList.js on lines 136..146
scripts/alphabetsList.js on lines 147..157
scripts/alphabetsList.js on lines 168..178
scripts/alphabetsList.js on lines 202..212
scripts/alphabetsList.js on lines 213..223
scripts/alphabetsList.js on lines 245..255
scripts/alphabetsList.js on lines 256..266

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

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

  {
    id: 20,
    title: "T",
    description: "Telescope",
    objAsset: "telescope_asset_obj",
Severity: Major
Found in scripts/alphabetsList.js and 11 other locations - About 35 mins to fix
scripts/alphabetsList.js on lines 2..12
scripts/alphabetsList.js on lines 63..73
scripts/alphabetsList.js on lines 74..84
scripts/alphabetsList.js on lines 125..135
scripts/alphabetsList.js on lines 136..146
scripts/alphabetsList.js on lines 147..157
scripts/alphabetsList.js on lines 168..178
scripts/alphabetsList.js on lines 213..223
scripts/alphabetsList.js on lines 245..255
scripts/alphabetsList.js on lines 256..266
scripts/alphabetsList.js on lines 267..277

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

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

  {
    id: 8,
    title: "H",
    description: "Headphone",
    objAsset: "headphone_asset_obj",
Severity: Major
Found in scripts/alphabetsList.js and 11 other locations - About 35 mins to fix
scripts/alphabetsList.js on lines 2..12
scripts/alphabetsList.js on lines 63..73
scripts/alphabetsList.js on lines 125..135
scripts/alphabetsList.js on lines 136..146
scripts/alphabetsList.js on lines 147..157
scripts/alphabetsList.js on lines 168..178
scripts/alphabetsList.js on lines 202..212
scripts/alphabetsList.js on lines 213..223
scripts/alphabetsList.js on lines 245..255
scripts/alphabetsList.js on lines 256..266
scripts/alphabetsList.js on lines 267..277

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

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

  {
    id: 14,
    title: "N",
    description: "Nest",
    objAsset: "nest_asset_obj",
Severity: Major
Found in scripts/alphabetsList.js and 11 other locations - About 35 mins to fix
scripts/alphabetsList.js on lines 2..12
scripts/alphabetsList.js on lines 63..73
scripts/alphabetsList.js on lines 74..84
scripts/alphabetsList.js on lines 125..135
scripts/alphabetsList.js on lines 147..157
scripts/alphabetsList.js on lines 168..178
scripts/alphabetsList.js on lines 202..212
scripts/alphabetsList.js on lines 213..223
scripts/alphabetsList.js on lines 245..255
scripts/alphabetsList.js on lines 256..266
scripts/alphabetsList.js on lines 267..277

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

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

  {
    id: 17,
    title: "Q",
    description: "Qtip",
    objAsset: "qtip_asset_obj",
Severity: Major
Found in scripts/alphabetsList.js and 11 other locations - About 35 mins to fix
scripts/alphabetsList.js on lines 2..12
scripts/alphabetsList.js on lines 63..73
scripts/alphabetsList.js on lines 74..84
scripts/alphabetsList.js on lines 125..135
scripts/alphabetsList.js on lines 136..146
scripts/alphabetsList.js on lines 147..157
scripts/alphabetsList.js on lines 202..212
scripts/alphabetsList.js on lines 213..223
scripts/alphabetsList.js on lines 245..255
scripts/alphabetsList.js on lines 256..266
scripts/alphabetsList.js on lines 267..277

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

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

  {
    id: 25,
    title: "Y",
    description: "Yolk",
    objAsset: "yolk_asset_obj",
Severity: Major
Found in scripts/alphabetsList.js and 11 other locations - About 35 mins to fix
scripts/alphabetsList.js on lines 2..12
scripts/alphabetsList.js on lines 63..73
scripts/alphabetsList.js on lines 74..84
scripts/alphabetsList.js on lines 125..135
scripts/alphabetsList.js on lines 136..146
scripts/alphabetsList.js on lines 147..157
scripts/alphabetsList.js on lines 168..178
scripts/alphabetsList.js on lines 202..212
scripts/alphabetsList.js on lines 213..223
scripts/alphabetsList.js on lines 245..255
scripts/alphabetsList.js on lines 267..277

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

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

  {
    id: 7,
    title: "G",
    description: "Goat",
    objAsset: "goat_asset_obj",
Severity: Major
Found in scripts/alphabetsList.js and 11 other locations - About 35 mins to fix
scripts/alphabetsList.js on lines 2..12
scripts/alphabetsList.js on lines 74..84
scripts/alphabetsList.js on lines 125..135
scripts/alphabetsList.js on lines 136..146
scripts/alphabetsList.js on lines 147..157
scripts/alphabetsList.js on lines 168..178
scripts/alphabetsList.js on lines 202..212
scripts/alphabetsList.js on lines 213..223
scripts/alphabetsList.js on lines 245..255
scripts/alphabetsList.js on lines 256..266
scripts/alphabetsList.js on lines 267..277

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

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

  {
    id: 15,
    title: "O",
    description: "Octopus",
    objAsset: "octopus_asset_obj",
Severity: Major
Found in scripts/alphabetsList.js and 11 other locations - About 35 mins to fix
scripts/alphabetsList.js on lines 2..12
scripts/alphabetsList.js on lines 63..73
scripts/alphabetsList.js on lines 74..84
scripts/alphabetsList.js on lines 125..135
scripts/alphabetsList.js on lines 136..146
scripts/alphabetsList.js on lines 168..178
scripts/alphabetsList.js on lines 202..212
scripts/alphabetsList.js on lines 213..223
scripts/alphabetsList.js on lines 245..255
scripts/alphabetsList.js on lines 256..266
scripts/alphabetsList.js on lines 267..277

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

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

  {
    id: 21,
    title: "U",
    description: "Umbrella",
    objAsset: "umbrella_asset_obj",
Severity: Major
Found in scripts/alphabetsList.js and 11 other locations - About 35 mins to fix
scripts/alphabetsList.js on lines 2..12
scripts/alphabetsList.js on lines 63..73
scripts/alphabetsList.js on lines 74..84
scripts/alphabetsList.js on lines 125..135
scripts/alphabetsList.js on lines 136..146
scripts/alphabetsList.js on lines 147..157
scripts/alphabetsList.js on lines 168..178
scripts/alphabetsList.js on lines 202..212
scripts/alphabetsList.js on lines 245..255
scripts/alphabetsList.js on lines 256..266
scripts/alphabetsList.js on lines 267..277

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

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

      } else if (config.scaleFlag == 2) {
        config.scaleFlag = 0;
        config.currentObject.setAttribute("scale", (scale = scale));
        scaleBtn.removeClass("scale_two");
      }
Severity: Minor
Found in scripts/main.js and 1 other location - About 35 mins to fix
scripts/main.js on lines 56..69

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

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

      if (config.scaleFlag == 0) {
        config.scaleFlag = 1;
        config.currentObject.setAttribute("scale", (scale = scaleOne));
        scaleBtn.addClass("scale_one");
      } else if (config.scaleFlag == 1) {
Severity: Minor
Found in scripts/main.js and 1 other location - About 35 mins to fix
scripts/main.js on lines 65..69

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

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