cerniglj1/osrs-quest-tool

View on GitHub

Showing 254 of 336 total issues

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

    "Plague City": {
        "miniquest": false,
        "shortName": "plagueCity",
        "name": "Plague City",
        "url": "https://oldschool.runescape.wiki/w/Plague_City",
Severity: Major
Found in src/resources/questData.js and 7 other locations - About 3 hrs to fix
src/resources/questData.js on lines 390..411
src/resources/questData.js on lines 755..776
src/resources/questData.js on lines 1883..1904
src/resources/questData.js on lines 2791..2812
src/resources/questData.js on lines 3033..3054
src/resources/questData.js on lines 3572..3593
src/resources/questData.js on lines 5072..5093

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

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

  "Monk's Friend": {
    miniquest: false,
    shortName: 'monksFriend',
    name: "Monk's Friend",
    url: 'https://oldschool.runescape.wiki/w/Monk%27s_Friend',
Severity: Major
Found in lib/resources/quest/questData.js and 13 other locations - About 3 hrs to fix
lib/resources/quest/questData.js on lines 620..643
lib/resources/quest/questData.js on lines 1078..1101
lib/resources/quest/questData.js on lines 1102..1125
lib/resources/quest/questData.js on lines 1670..1693
lib/resources/quest/questData.js on lines 1755..1778
lib/resources/quest/questData.js on lines 1779..1802
lib/resources/quest/questData.js on lines 2111..2134
lib/resources/quest/questData.js on lines 2587..2610
lib/resources/quest/questData.js on lines 3749..3772
lib/resources/quest/questData.js on lines 4934..4957
lib/resources/quest/questData.js on lines 5333..5356
lib/resources/quest/questData.js on lines 5493..5516
lib/resources/quest/questData.js on lines 5517..5540

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

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

    "Monk's Friend": {
        "miniquest": false,
        "shortName": "monksFriend",
        "name": "Monk's Friend",
        "url": "https://oldschool.runescape.wiki/w/Monk%27s_Friend",
Severity: Major
Found in src/resources/questData.js and 13 other locations - About 3 hrs to fix
src/resources/questData.js on lines 630..651
src/resources/questData.js on lines 1079..1100
src/resources/questData.js on lines 1101..1122
src/resources/questData.js on lines 1656..1677
src/resources/questData.js on lines 1739..1760
src/resources/questData.js on lines 1761..1782
src/resources/questData.js on lines 2079..2100
src/resources/questData.js on lines 2546..2567
src/resources/questData.js on lines 3677..3698
src/resources/questData.js on lines 4823..4844
src/resources/questData.js on lines 5205..5226
src/resources/questData.js on lines 5359..5380
src/resources/questData.js on lines 5381..5402

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

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

  'Imp Catcher': {
    miniquest: false,
    shortName: 'impCatcher',
    name: 'Imp Catcher',
    url: 'https://oldschool.runescape.wiki/w/Imp_Catcher',
Severity: Major
Found in lib/resources/quest/questData.js and 13 other locations - About 3 hrs to fix
lib/resources/quest/questData.js on lines 620..643
lib/resources/quest/questData.js on lines 1078..1101
lib/resources/quest/questData.js on lines 1102..1125
lib/resources/quest/questData.js on lines 1670..1693
lib/resources/quest/questData.js on lines 1755..1778
lib/resources/quest/questData.js on lines 1779..1802
lib/resources/quest/questData.js on lines 2587..2610
lib/resources/quest/questData.js on lines 2611..2634
lib/resources/quest/questData.js on lines 3749..3772
lib/resources/quest/questData.js on lines 4934..4957
lib/resources/quest/questData.js on lines 5333..5356
lib/resources/quest/questData.js on lines 5493..5516
lib/resources/quest/questData.js on lines 5517..5540

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

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

    "Goblin Diplomacy": {
        "miniquest": false,
        "shortName": "goblinDiplomacy",
        "name": "Goblin Diplomacy",
        "url": "https://oldschool.runescape.wiki/w/Goblin_Diplomacy",
Severity: Major
Found in src/resources/questData.js and 13 other locations - About 3 hrs to fix
src/resources/questData.js on lines 630..651
src/resources/questData.js on lines 1079..1100
src/resources/questData.js on lines 1101..1122
src/resources/questData.js on lines 1656..1677
src/resources/questData.js on lines 1739..1760
src/resources/questData.js on lines 2079..2100
src/resources/questData.js on lines 2546..2567
src/resources/questData.js on lines 2568..2589
src/resources/questData.js on lines 3677..3698
src/resources/questData.js on lines 4823..4844
src/resources/questData.js on lines 5205..5226
src/resources/questData.js on lines 5359..5380
src/resources/questData.js on lines 5381..5402

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

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

    "The Restless Ghost": {
        "miniquest": false,
        "shortName": "theRestlessGhost",
        "name": "The Restless Ghost",
        "url": "https://oldschool.runescape.wiki/w/The_Restless_Ghost",
Severity: Major
Found in src/resources/questData.js and 13 other locations - About 3 hrs to fix
src/resources/questData.js on lines 630..651
src/resources/questData.js on lines 1079..1100
src/resources/questData.js on lines 1101..1122
src/resources/questData.js on lines 1656..1677
src/resources/questData.js on lines 1739..1760
src/resources/questData.js on lines 1761..1782
src/resources/questData.js on lines 2079..2100
src/resources/questData.js on lines 2546..2567
src/resources/questData.js on lines 2568..2589
src/resources/questData.js on lines 3677..3698
src/resources/questData.js on lines 5205..5226
src/resources/questData.js on lines 5359..5380
src/resources/questData.js on lines 5381..5402

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

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

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

    "Death Plateau": {
        "miniquest": false,
        "name": "Death Plateau",
        "shortName": "deathPlateau",
        "url": "https://oldschool.runescape.wiki/w/Death_Plateau",
Severity: Major
Found in src/resources/questData.js and 7 other locations - About 3 hrs to fix
src/resources/questData.js on lines 390..411
src/resources/questData.js on lines 1883..1904
src/resources/questData.js on lines 2791..2812
src/resources/questData.js on lines 3011..3032
src/resources/questData.js on lines 3033..3054
src/resources/questData.js on lines 3572..3593
src/resources/questData.js on lines 5072..5093

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

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

  if (quest.requirements.quests && quest.requirements.quests >= 1) {
    for (var y in quest.requirements.quests) {
      // If any of the quests required are not completeable: return false
      if (
        canCompleteQuest(this.questObject[quest.requirements.quests[y]]) != true
Severity: Major
Found in lib/osrstools.js and 1 other location - About 3 hrs to fix
lib/model/quest/QuestTool.js on lines 249..259

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

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

    if (quest.requirements.quests && quest.requirements.quests >= 1) {
      for (var y in quest.requirements.quests) {
        // If any of the quests required are not completeable: return false
        if (
          canCompleteQuest(this.questObject[quest.requirements.quests[y]]) !=
Severity: Major
Found in lib/model/quest/QuestTool.js and 1 other location - About 3 hrs to fix
lib/osrstools.js on lines 295..304

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

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

  getQuestByName(questName) {
    if (
      questName &&
      questName != null &&
      questName != undefined &&
Severity: Major
Found in lib/model/quest/QuestTool.js and 1 other location - About 3 hrs to fix
lib/model/quest/QuestTool.js on lines 33..49

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

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

  getQuest(questName) {
    if (
      questName &&
      questName != null &&
      questName != undefined &&
Severity: Major
Found in lib/model/quest/QuestTool.js and 1 other location - About 3 hrs to fix
lib/model/quest/QuestTool.js on lines 56..72

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

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

const SlayerBuys = [
  {
    item: 'Slayer ring',
    priceSoldAt: 75,
    notes:
Severity: Major
Found in lib/resources/slayer/slayerBuys.js and 1 other location - About 2 hrs to fix
src/resources/slayer/slayerBuys.js on lines 1..32

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

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

const SlayerBuys = [
  {
    item: 'Slayer ring',
    priceSoldAt: 75,
    notes:
Severity: Major
Found in src/resources/slayer/slayerBuys.js and 1 other location - About 2 hrs to fix
lib/resources/slayer/slayerBuys.js on lines 1..32

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

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

    rewards: {
      experience: [
        {
          skill: 'agility',
          amount: 6000,
Severity: Major
Found in lib/resources/quest/questData.js and 1 other location - About 2 hrs to fix
lib/resources/quest/questData.js on lines 4645..4673

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

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

    rewards: {
      experience: [
        {
          skill: 'crafting',
          amount: 2500,
Severity: Major
Found in lib/resources/quest/questData.js and 1 other location - About 2 hrs to fix
lib/resources/quest/questData.js on lines 1841..1869

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

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

    "Enter the Abyss": {
        "miniquest": true,
        "name": "Enter the Abyss",
        "shortName": "enterTheAbyss",
        "url": "https://oldschool.runescape.wiki/w/Enter_the_Abyss",
Severity: Major
Found in src/resources/questData.js and 1 other location - About 2 hrs to fix
src/resources/questData.js on lines 435..455

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

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

    "Bone Voyage": {
        "miniquest": false,
        "name": "Bone Voyage",
        "shortName": "boneVoyage",
        "url": "https://oldschool.runescape.wiki/w/Bone_Voyage",
Severity: Major
Found in src/resources/questData.js and 1 other location - About 2 hrs to fix
src/resources/questData.js on lines 1378..1398

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

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

  'Enter the Abyss': {
    miniquest: true,
    name: 'Enter the Abyss',
    shortName: 'enterTheAbyss',
    url: 'https://oldschool.runescape.wiki/w/Enter_the_Abyss',
Severity: Major
Found in lib/resources/quest/questData.js and 1 other location - About 2 hrs to fix
lib/resources/quest/questData.js on lines 428..446

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

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

  'Bone Voyage': {
    miniquest: false,
    name: 'Bone Voyage',
    shortName: 'boneVoyage',
    url: 'https://oldschool.runescape.wiki/w/Bone_Voyage',
Severity: Major
Found in lib/resources/quest/questData.js and 1 other location - About 2 hrs to fix
lib/resources/quest/questData.js on lines 1389..1407

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

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

    "Prince Ali Rescue": {
        "miniquest": false,
        "shortName": "princeAliRescue",
        "name": "Prince Ali Rescue",
        "url": "https://oldschool.runescape.wiki/w/Prince_Ali_Rescue",
Severity: Major
Found in src/resources/questData.js and 6 other locations - About 2 hrs to fix
src/resources/questData.js on lines 530..548
src/resources/questData.js on lines 816..834
src/resources/questData.js on lines 1399..1417
src/resources/questData.js on lines 3383..3401
src/resources/questData.js on lines 3527..3545
src/resources/questData.js on lines 4162..4180

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

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