cerniglj1/osrs-quest-tool

View on GitHub

Showing 254 of 336 total issues

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

  'Demon Slayer': {
    miniquest: false,
    name: 'Demon Slayer',
    shortName: 'demonSlayer',
    url: 'https://oldschool.runescape.wiki/w/Demon_Slayer',
Severity: Major
Found in lib/resources/quest/questData.js and 6 other locations - About 2 hrs to fix
lib/resources/quest/questData.js on lines 519..537
lib/resources/quest/questData.js on lines 1408..1426
lib/resources/quest/questData.js on lines 3114..3132
lib/resources/quest/questData.js on lines 3450..3468
lib/resources/quest/questData.js on lines 3594..3612
lib/resources/quest/questData.js on lines 4238..4256

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

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

    "Ernest the Chicken": {
        "miniquest": false,
        "name": "Ernest the Chicken",
        "shortName": "ernestTheChicken",
        "url": "https://oldschool.runescape.wiki/w/Ernest_the_Chicken",
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 3055..3073
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

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

    "The Corsair Curse": {
        "miniquest": false,
        "shortName": "theCorsairCurse",
        "name": "The Corsair Curse",
        "url": "https://oldschool.runescape.wiki/w/The_Corsair_Curse",
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 3055..3073
src/resources/questData.js on lines 3383..3401
src/resources/questData.js on lines 3527..3545

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

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

  "Merlin's Crystal": {
    miniquest: false,
    shortName: 'merlinsCrystal',
    name: "Merlin's Crystal",
    url: 'https://oldschool.runescape.wiki/w/Merlin%27s_Crystal',
Severity: Major
Found in lib/resources/quest/questData.js and 4 other locations - About 2 hrs to fix
lib/resources/quest/questData.js on lines 500..518
lib/resources/quest/questData.js on lines 3047..3065
lib/resources/quest/questData.js on lines 3730..3748
lib/resources/quest/questData.js on lines 3773..3791

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

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

  "Pirate's Treasure": {
    miniquest: false,
    shortName: 'piratesTreasure',
    name: "Pirate's Treasure",
    url: 'https://oldschool.runescape.wiki/w/Pirate%27s_Treasure',
Severity: Major
Found in lib/resources/quest/questData.js and 4 other locations - About 2 hrs to fix
lib/resources/quest/questData.js on lines 500..518
lib/resources/quest/questData.js on lines 2568..2586
lib/resources/quest/questData.js on lines 3730..3748
lib/resources/quest/questData.js on lines 3773..3791

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

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

  'Sheep Herder': {
    miniquest: false,
    shortName: 'sheepHerder',
    name: 'Sheep Herder',
    url: 'https://oldschool.runescape.wiki/w/Sheep_Herder',
Severity: Major
Found in lib/resources/quest/questData.js and 4 other locations - About 2 hrs to fix
lib/resources/quest/questData.js on lines 500..518
lib/resources/quest/questData.js on lines 2568..2586
lib/resources/quest/questData.js on lines 3047..3065
lib/resources/quest/questData.js on lines 3773..3791

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

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

  'The Corsair Curse': {
    miniquest: false,
    shortName: 'theCorsairCurse',
    name: 'The Corsair Curse',
    url: 'https://oldschool.runescape.wiki/w/The_Corsair_Curse',
Severity: Major
Found in lib/resources/quest/questData.js and 6 other locations - About 2 hrs to fix
lib/resources/quest/questData.js on lines 519..537
lib/resources/quest/questData.js on lines 810..828
lib/resources/quest/questData.js on lines 1408..1426
lib/resources/quest/questData.js on lines 3114..3132
lib/resources/quest/questData.js on lines 3450..3468
lib/resources/quest/questData.js on lines 3594..3612

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

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

  'Clock Tower': {
    miniquest: false,
    name: 'Clock Tower',
    shortName: 'clockTower',
    url: 'https://oldschool.runescape.wiki/w/Clock_Tower',
Severity: Major
Found in lib/resources/quest/questData.js and 6 other locations - About 2 hrs to fix
lib/resources/quest/questData.js on lines 810..828
lib/resources/quest/questData.js on lines 1408..1426
lib/resources/quest/questData.js on lines 3114..3132
lib/resources/quest/questData.js on lines 3450..3468
lib/resources/quest/questData.js on lines 3594..3612
lib/resources/quest/questData.js on lines 4238..4256

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

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

    "Pirate's Treasure": {
        "miniquest": false,
        "shortName": "piratesTreasure",
        "name": "Pirate's Treasure",
        "url": "https://oldschool.runescape.wiki/w/Pirate%27s_Treasure",
Severity: Major
Found in src/resources/questData.js and 4 other locations - About 2 hrs to fix
src/resources/questData.js on lines 511..529
src/resources/questData.js on lines 2527..2545
src/resources/questData.js on lines 3658..3676
src/resources/questData.js on lines 3699..3717

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

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 lib/resources/quest/questData.js and 6 other locations - About 2 hrs to fix
lib/resources/quest/questData.js on lines 519..537
lib/resources/quest/questData.js on lines 810..828
lib/resources/quest/questData.js on lines 1408..1426
lib/resources/quest/questData.js on lines 3450..3468
lib/resources/quest/questData.js on lines 3594..3612
lib/resources/quest/questData.js on lines 4238..4256

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

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

    "Romeo & Juliet": {
        "miniquest": false,
        "shortName": "romeoJuliet",
        "name": "Romeo & Juliet",
        "url": "https://oldschool.runescape.wiki/w/Romeo_%26_Juliet",
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 3055..3073
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

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

  'Romeo & Juliet': {
    miniquest: false,
    shortName: 'romeoJuliet',
    name: 'Romeo & Juliet',
    url: 'https://oldschool.runescape.wiki/w/Romeo_%26_Juliet',
Severity: Major
Found in lib/resources/quest/questData.js and 6 other locations - About 2 hrs to fix
lib/resources/quest/questData.js on lines 519..537
lib/resources/quest/questData.js on lines 810..828
lib/resources/quest/questData.js on lines 1408..1426
lib/resources/quest/questData.js on lines 3114..3132
lib/resources/quest/questData.js on lines 3594..3612
lib/resources/quest/questData.js on lines 4238..4256

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

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

    "Clock Tower": {
        "miniquest": false,
        "name": "Clock Tower",
        "shortName": "clockTower",
        "url": "https://oldschool.runescape.wiki/w/Clock_Tower",
Severity: Major
Found in src/resources/questData.js and 6 other locations - About 2 hrs to fix
src/resources/questData.js on lines 816..834
src/resources/questData.js on lines 1399..1417
src/resources/questData.js on lines 3055..3073
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

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

    "Demon Slayer": {
        "miniquest": false,
        "name": "Demon Slayer",
        "shortName": "demonSlayer",
        "url": "https://oldschool.runescape.wiki/w/Demon_Slayer",
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 1399..1417
src/resources/questData.js on lines 3055..3073
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

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

    "Client of Kourend": {
        "miniquest": false,
        "name": "Client of Kourend",
        "shortName": "clientOfKourend",
        "url": "https://oldschool.runescape.wiki/w/Client_of_Kourend",
Severity: Major
Found in src/resources/questData.js and 4 other locations - About 2 hrs to fix
src/resources/questData.js on lines 2527..2545
src/resources/questData.js on lines 2992..3010
src/resources/questData.js on lines 3658..3676
src/resources/questData.js on lines 3699..3717

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

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

    "Sheep Herder": {
        "miniquest": false,
        "shortName": "sheepHerder",
        "name": "Sheep Herder",
        "url": "https://oldschool.runescape.wiki/w/Sheep_Herder",
Severity: Major
Found in src/resources/questData.js and 4 other locations - About 2 hrs to fix
src/resources/questData.js on lines 511..529
src/resources/questData.js on lines 2527..2545
src/resources/questData.js on lines 2992..3010
src/resources/questData.js on lines 3699..3717

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

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

  'Client of Kourend': {
    miniquest: false,
    name: 'Client of Kourend',
    shortName: 'clientOfKourend',
    url: 'https://oldschool.runescape.wiki/w/Client_of_Kourend',
Severity: Major
Found in lib/resources/quest/questData.js and 4 other locations - About 2 hrs to fix
lib/resources/quest/questData.js on lines 2568..2586
lib/resources/quest/questData.js on lines 3047..3065
lib/resources/quest/questData.js on lines 3730..3748
lib/resources/quest/questData.js on lines 3773..3791

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

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

  'Rune Mysteries': {
    miniquest: false,
    shortName: 'runeMysteries',
    name: 'Rune Mysteries',
    url: 'https://oldschool.runescape.wiki/w/Rune_Mysteries',
Severity: Major
Found in lib/resources/quest/questData.js and 6 other locations - About 2 hrs to fix
lib/resources/quest/questData.js on lines 519..537
lib/resources/quest/questData.js on lines 810..828
lib/resources/quest/questData.js on lines 1408..1426
lib/resources/quest/questData.js on lines 3114..3132
lib/resources/quest/questData.js on lines 3450..3468
lib/resources/quest/questData.js on lines 4238..4256

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

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

    "Shield of Arrav": {
        "miniquest": false,
        "shortName": "shieldOfArrav",
        "name": "Shield of Arrav",
        "url": "https://oldschool.runescape.wiki/w/Shield_of_Arrav",
Severity: Major
Found in src/resources/questData.js and 4 other locations - About 2 hrs to fix
src/resources/questData.js on lines 511..529
src/resources/questData.js on lines 2527..2545
src/resources/questData.js on lines 2992..3010
src/resources/questData.js on lines 3658..3676

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

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

  'Ernest the Chicken': {
    miniquest: false,
    name: 'Ernest the Chicken',
    shortName: 'ernestTheChicken',
    url: 'https://oldschool.runescape.wiki/w/Ernest_the_Chicken',
Severity: Major
Found in lib/resources/quest/questData.js and 6 other locations - About 2 hrs to fix
lib/resources/quest/questData.js on lines 519..537
lib/resources/quest/questData.js on lines 810..828
lib/resources/quest/questData.js on lines 3114..3132
lib/resources/quest/questData.js on lines 3450..3468
lib/resources/quest/questData.js on lines 3594..3612
lib/resources/quest/questData.js on lines 4238..4256

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