polkadot-js/api

View on GitHub

Showing 2,442 of 2,627 total issues

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

  [
    21800141,
    1002007,
    [
      [
Severity: Major
Found in packages/types-known/src/upgrades/e2e/polkadot.ts and 24 other locations - About 2 hrs to fix
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4618..4699
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4700..4781
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4782..4863
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4864..4945
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4946..5027
packages/types-known/src/upgrades/e2e/kusama.ts on lines 5028..5109
packages/types-known/src/upgrades/e2e/kusama.ts on lines 5110..5191
packages/types-known/src/upgrades/e2e/kusama.ts on lines 5192..5273
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3138..3219
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3220..3301
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3302..3383
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3384..3465
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3466..3547
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3548..3629
packages/types-known/src/upgrades/e2e/westend.ts on lines 4600..4681
packages/types-known/src/upgrades/e2e/westend.ts on lines 4682..4763
packages/types-known/src/upgrades/e2e/westend.ts on lines 4764..4845
packages/types-known/src/upgrades/e2e/westend.ts on lines 4846..4927
packages/types-known/src/upgrades/e2e/westend.ts on lines 4928..5009
packages/types-known/src/upgrades/e2e/westend.ts on lines 5010..5091
packages/types-known/src/upgrades/e2e/westend.ts on lines 5092..5173
packages/types-known/src/upgrades/e2e/westend.ts on lines 5174..5255
packages/types-known/src/upgrades/e2e/westend.ts on lines 5256..5337
packages/types-known/src/upgrades/e2e/westend.ts on lines 5338..5419

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

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

  [
    18679741,
    1005000,
    [
      [
Severity: Major
Found in packages/types-known/src/upgrades/e2e/westend.ts and 24 other locations - About 2 hrs to fix
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4618..4699
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4700..4781
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4782..4863
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4864..4945
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4946..5027
packages/types-known/src/upgrades/e2e/kusama.ts on lines 5028..5109
packages/types-known/src/upgrades/e2e/kusama.ts on lines 5110..5191
packages/types-known/src/upgrades/e2e/kusama.ts on lines 5192..5273
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3138..3219
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3220..3301
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3302..3383
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3384..3465
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3466..3547
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3548..3629
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3630..3711
packages/types-known/src/upgrades/e2e/westend.ts on lines 4600..4681
packages/types-known/src/upgrades/e2e/westend.ts on lines 4682..4763
packages/types-known/src/upgrades/e2e/westend.ts on lines 4764..4845
packages/types-known/src/upgrades/e2e/westend.ts on lines 4928..5009
packages/types-known/src/upgrades/e2e/westend.ts on lines 5010..5091
packages/types-known/src/upgrades/e2e/westend.ts on lines 5092..5173
packages/types-known/src/upgrades/e2e/westend.ts on lines 5174..5255
packages/types-known/src/upgrades/e2e/westend.ts on lines 5256..5337
packages/types-known/src/upgrades/e2e/westend.ts on lines 5338..5419

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

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

  [
    23565293,
    1002005,
    [
      [
Severity: Major
Found in packages/types-known/src/upgrades/e2e/kusama.ts and 24 other locations - About 2 hrs to fix
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4618..4699
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4700..4781
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4782..4863
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4864..4945
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4946..5027
packages/types-known/src/upgrades/e2e/kusama.ts on lines 5028..5109
packages/types-known/src/upgrades/e2e/kusama.ts on lines 5192..5273
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3138..3219
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3220..3301
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3302..3383
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3384..3465
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3466..3547
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3548..3629
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3630..3711
packages/types-known/src/upgrades/e2e/westend.ts on lines 4600..4681
packages/types-known/src/upgrades/e2e/westend.ts on lines 4682..4763
packages/types-known/src/upgrades/e2e/westend.ts on lines 4764..4845
packages/types-known/src/upgrades/e2e/westend.ts on lines 4846..4927
packages/types-known/src/upgrades/e2e/westend.ts on lines 4928..5009
packages/types-known/src/upgrades/e2e/westend.ts on lines 5010..5091
packages/types-known/src/upgrades/e2e/westend.ts on lines 5092..5173
packages/types-known/src/upgrades/e2e/westend.ts on lines 5174..5255
packages/types-known/src/upgrades/e2e/westend.ts on lines 5256..5337
packages/types-known/src/upgrades/e2e/westend.ts on lines 5338..5419

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

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

  [
    19761406,
    1008000,
    [
      [
Severity: Major
Found in packages/types-known/src/upgrades/e2e/westend.ts and 24 other locations - About 2 hrs to fix
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4618..4699
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4700..4781
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4782..4863
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4864..4945
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4946..5027
packages/types-known/src/upgrades/e2e/kusama.ts on lines 5028..5109
packages/types-known/src/upgrades/e2e/kusama.ts on lines 5110..5191
packages/types-known/src/upgrades/e2e/kusama.ts on lines 5192..5273
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3138..3219
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3220..3301
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3302..3383
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3384..3465
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3466..3547
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3548..3629
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3630..3711
packages/types-known/src/upgrades/e2e/westend.ts on lines 4600..4681
packages/types-known/src/upgrades/e2e/westend.ts on lines 4682..4763
packages/types-known/src/upgrades/e2e/westend.ts on lines 4764..4845
packages/types-known/src/upgrades/e2e/westend.ts on lines 4846..4927
packages/types-known/src/upgrades/e2e/westend.ts on lines 4928..5009
packages/types-known/src/upgrades/e2e/westend.ts on lines 5010..5091
packages/types-known/src/upgrades/e2e/westend.ts on lines 5092..5173
packages/types-known/src/upgrades/e2e/westend.ts on lines 5174..5255
packages/types-known/src/upgrades/e2e/westend.ts on lines 5338..5419

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

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

  [
    23450253,
    1002004,
    [
      [
Severity: Major
Found in packages/types-known/src/upgrades/e2e/kusama.ts and 24 other locations - About 2 hrs to fix
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4618..4699
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4700..4781
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4782..4863
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4864..4945
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4946..5027
packages/types-known/src/upgrades/e2e/kusama.ts on lines 5110..5191
packages/types-known/src/upgrades/e2e/kusama.ts on lines 5192..5273
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3138..3219
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3220..3301
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3302..3383
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3384..3465
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3466..3547
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3548..3629
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3630..3711
packages/types-known/src/upgrades/e2e/westend.ts on lines 4600..4681
packages/types-known/src/upgrades/e2e/westend.ts on lines 4682..4763
packages/types-known/src/upgrades/e2e/westend.ts on lines 4764..4845
packages/types-known/src/upgrades/e2e/westend.ts on lines 4846..4927
packages/types-known/src/upgrades/e2e/westend.ts on lines 4928..5009
packages/types-known/src/upgrades/e2e/westend.ts on lines 5010..5091
packages/types-known/src/upgrades/e2e/westend.ts on lines 5092..5173
packages/types-known/src/upgrades/e2e/westend.ts on lines 5174..5255
packages/types-known/src/upgrades/e2e/westend.ts on lines 5256..5337
packages/types-known/src/upgrades/e2e/westend.ts on lines 5338..5419

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

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

  [
    19542944,
    1007000,
    [
      [
Severity: Major
Found in packages/types-known/src/upgrades/e2e/westend.ts and 24 other locations - About 2 hrs to fix
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4618..4699
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4700..4781
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4782..4863
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4864..4945
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4946..5027
packages/types-known/src/upgrades/e2e/kusama.ts on lines 5028..5109
packages/types-known/src/upgrades/e2e/kusama.ts on lines 5110..5191
packages/types-known/src/upgrades/e2e/kusama.ts on lines 5192..5273
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3138..3219
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3220..3301
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3302..3383
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3384..3465
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3466..3547
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3548..3629
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3630..3711
packages/types-known/src/upgrades/e2e/westend.ts on lines 4600..4681
packages/types-known/src/upgrades/e2e/westend.ts on lines 4682..4763
packages/types-known/src/upgrades/e2e/westend.ts on lines 4764..4845
packages/types-known/src/upgrades/e2e/westend.ts on lines 4846..4927
packages/types-known/src/upgrades/e2e/westend.ts on lines 4928..5009
packages/types-known/src/upgrades/e2e/westend.ts on lines 5010..5091
packages/types-known/src/upgrades/e2e/westend.ts on lines 5174..5255
packages/types-known/src/upgrades/e2e/westend.ts on lines 5256..5337
packages/types-known/src/upgrades/e2e/westend.ts on lines 5338..5419

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

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

  [
    21570000,
    1001000,
    [
      [
Severity: Major
Found in packages/types-known/src/upgrades/e2e/kusama.ts and 24 other locations - About 2 hrs to fix
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4700..4781
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4782..4863
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4864..4945
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4946..5027
packages/types-known/src/upgrades/e2e/kusama.ts on lines 5028..5109
packages/types-known/src/upgrades/e2e/kusama.ts on lines 5110..5191
packages/types-known/src/upgrades/e2e/kusama.ts on lines 5192..5273
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3138..3219
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3220..3301
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3302..3383
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3384..3465
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3466..3547
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3548..3629
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3630..3711
packages/types-known/src/upgrades/e2e/westend.ts on lines 4600..4681
packages/types-known/src/upgrades/e2e/westend.ts on lines 4682..4763
packages/types-known/src/upgrades/e2e/westend.ts on lines 4764..4845
packages/types-known/src/upgrades/e2e/westend.ts on lines 4846..4927
packages/types-known/src/upgrades/e2e/westend.ts on lines 4928..5009
packages/types-known/src/upgrades/e2e/westend.ts on lines 5010..5091
packages/types-known/src/upgrades/e2e/westend.ts on lines 5092..5173
packages/types-known/src/upgrades/e2e/westend.ts on lines 5174..5255
packages/types-known/src/upgrades/e2e/westend.ts on lines 5256..5337
packages/types-known/src/upgrades/e2e/westend.ts on lines 5338..5419

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

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

  [
    23780224,
    1002006,
    [
      [
Severity: Major
Found in packages/types-known/src/upgrades/e2e/kusama.ts and 24 other locations - About 2 hrs to fix
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4618..4699
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4700..4781
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4782..4863
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4864..4945
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4946..5027
packages/types-known/src/upgrades/e2e/kusama.ts on lines 5028..5109
packages/types-known/src/upgrades/e2e/kusama.ts on lines 5110..5191
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3138..3219
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3220..3301
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3302..3383
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3384..3465
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3466..3547
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3548..3629
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3630..3711
packages/types-known/src/upgrades/e2e/westend.ts on lines 4600..4681
packages/types-known/src/upgrades/e2e/westend.ts on lines 4682..4763
packages/types-known/src/upgrades/e2e/westend.ts on lines 4764..4845
packages/types-known/src/upgrades/e2e/westend.ts on lines 4846..4927
packages/types-known/src/upgrades/e2e/westend.ts on lines 4928..5009
packages/types-known/src/upgrades/e2e/westend.ts on lines 5010..5091
packages/types-known/src/upgrades/e2e/westend.ts on lines 5092..5173
packages/types-known/src/upgrades/e2e/westend.ts on lines 5174..5255
packages/types-known/src/upgrades/e2e/westend.ts on lines 5256..5337
packages/types-known/src/upgrades/e2e/westend.ts on lines 5338..5419

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

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

  [
    18451783,
    104000,
    [
      [
Severity: Major
Found in packages/types-known/src/upgrades/e2e/westend.ts and 24 other locations - About 2 hrs to fix
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4618..4699
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4700..4781
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4782..4863
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4864..4945
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4946..5027
packages/types-known/src/upgrades/e2e/kusama.ts on lines 5028..5109
packages/types-known/src/upgrades/e2e/kusama.ts on lines 5110..5191
packages/types-known/src/upgrades/e2e/kusama.ts on lines 5192..5273
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3138..3219
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3220..3301
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3302..3383
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3384..3465
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3466..3547
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3548..3629
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3630..3711
packages/types-known/src/upgrades/e2e/westend.ts on lines 4600..4681
packages/types-known/src/upgrades/e2e/westend.ts on lines 4682..4763
packages/types-known/src/upgrades/e2e/westend.ts on lines 4846..4927
packages/types-known/src/upgrades/e2e/westend.ts on lines 4928..5009
packages/types-known/src/upgrades/e2e/westend.ts on lines 5010..5091
packages/types-known/src/upgrades/e2e/westend.ts on lines 5092..5173
packages/types-known/src/upgrades/e2e/westend.ts on lines 5174..5255
packages/types-known/src/upgrades/e2e/westend.ts on lines 5256..5337
packages/types-known/src/upgrades/e2e/westend.ts on lines 5338..5419

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

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

  [
    22790000,
    1002000,
    [
      [
Severity: Major
Found in packages/types-known/src/upgrades/e2e/kusama.ts and 24 other locations - About 2 hrs to fix
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4618..4699
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4700..4781
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4782..4863
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4946..5027
packages/types-known/src/upgrades/e2e/kusama.ts on lines 5028..5109
packages/types-known/src/upgrades/e2e/kusama.ts on lines 5110..5191
packages/types-known/src/upgrades/e2e/kusama.ts on lines 5192..5273
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3138..3219
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3220..3301
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3302..3383
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3384..3465
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3466..3547
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3548..3629
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3630..3711
packages/types-known/src/upgrades/e2e/westend.ts on lines 4600..4681
packages/types-known/src/upgrades/e2e/westend.ts on lines 4682..4763
packages/types-known/src/upgrades/e2e/westend.ts on lines 4764..4845
packages/types-known/src/upgrades/e2e/westend.ts on lines 4846..4927
packages/types-known/src/upgrades/e2e/westend.ts on lines 4928..5009
packages/types-known/src/upgrades/e2e/westend.ts on lines 5010..5091
packages/types-known/src/upgrades/e2e/westend.ts on lines 5092..5173
packages/types-known/src/upgrades/e2e/westend.ts on lines 5174..5255
packages/types-known/src/upgrades/e2e/westend.ts on lines 5256..5337
packages/types-known/src/upgrades/e2e/westend.ts on lines 5338..5419

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

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

  [
    19234157,
    1006001,
    [
      [
Severity: Major
Found in packages/types-known/src/upgrades/e2e/westend.ts and 24 other locations - About 2 hrs to fix
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4618..4699
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4700..4781
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4782..4863
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4864..4945
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4946..5027
packages/types-known/src/upgrades/e2e/kusama.ts on lines 5028..5109
packages/types-known/src/upgrades/e2e/kusama.ts on lines 5110..5191
packages/types-known/src/upgrades/e2e/kusama.ts on lines 5192..5273
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3138..3219
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3220..3301
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3302..3383
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3384..3465
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3466..3547
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3548..3629
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3630..3711
packages/types-known/src/upgrades/e2e/westend.ts on lines 4600..4681
packages/types-known/src/upgrades/e2e/westend.ts on lines 4682..4763
packages/types-known/src/upgrades/e2e/westend.ts on lines 4764..4845
packages/types-known/src/upgrades/e2e/westend.ts on lines 4846..4927
packages/types-known/src/upgrades/e2e/westend.ts on lines 4928..5009
packages/types-known/src/upgrades/e2e/westend.ts on lines 5092..5173
packages/types-known/src/upgrades/e2e/westend.ts on lines 5174..5255
packages/types-known/src/upgrades/e2e/westend.ts on lines 5256..5337
packages/types-known/src/upgrades/e2e/westend.ts on lines 5338..5419

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

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

  [
    20056997,
    1009000,
    [
      [
Severity: Major
Found in packages/types-known/src/upgrades/e2e/westend.ts and 24 other locations - About 2 hrs to fix
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4618..4699
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4700..4781
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4782..4863
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4864..4945
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4946..5027
packages/types-known/src/upgrades/e2e/kusama.ts on lines 5028..5109
packages/types-known/src/upgrades/e2e/kusama.ts on lines 5110..5191
packages/types-known/src/upgrades/e2e/kusama.ts on lines 5192..5273
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3138..3219
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3220..3301
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3302..3383
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3384..3465
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3466..3547
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3548..3629
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3630..3711
packages/types-known/src/upgrades/e2e/westend.ts on lines 4600..4681
packages/types-known/src/upgrades/e2e/westend.ts on lines 4682..4763
packages/types-known/src/upgrades/e2e/westend.ts on lines 4764..4845
packages/types-known/src/upgrades/e2e/westend.ts on lines 4846..4927
packages/types-known/src/upgrades/e2e/westend.ts on lines 4928..5009
packages/types-known/src/upgrades/e2e/westend.ts on lines 5010..5091
packages/types-known/src/upgrades/e2e/westend.ts on lines 5092..5173
packages/types-known/src/upgrades/e2e/westend.ts on lines 5174..5255
packages/types-known/src/upgrades/e2e/westend.ts on lines 5256..5337

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

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

  [
    21786291,
    1001002,
    [
      [
Severity: Major
Found in packages/types-known/src/upgrades/e2e/kusama.ts and 24 other locations - About 2 hrs to fix
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4618..4699
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4782..4863
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4864..4945
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4946..5027
packages/types-known/src/upgrades/e2e/kusama.ts on lines 5028..5109
packages/types-known/src/upgrades/e2e/kusama.ts on lines 5110..5191
packages/types-known/src/upgrades/e2e/kusama.ts on lines 5192..5273
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3138..3219
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3220..3301
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3302..3383
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3384..3465
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3466..3547
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3548..3629
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3630..3711
packages/types-known/src/upgrades/e2e/westend.ts on lines 4600..4681
packages/types-known/src/upgrades/e2e/westend.ts on lines 4682..4763
packages/types-known/src/upgrades/e2e/westend.ts on lines 4764..4845
packages/types-known/src/upgrades/e2e/westend.ts on lines 4846..4927
packages/types-known/src/upgrades/e2e/westend.ts on lines 4928..5009
packages/types-known/src/upgrades/e2e/westend.ts on lines 5010..5091
packages/types-known/src/upgrades/e2e/westend.ts on lines 5092..5173
packages/types-known/src/upgrades/e2e/westend.ts on lines 5174..5255
packages/types-known/src/upgrades/e2e/westend.ts on lines 5256..5337
packages/types-known/src/upgrades/e2e/westend.ts on lines 5338..5419

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

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

  [
    22515962,
    1001003,
    [
      [
Severity: Major
Found in packages/types-known/src/upgrades/e2e/kusama.ts and 24 other locations - About 2 hrs to fix
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4618..4699
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4700..4781
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4864..4945
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4946..5027
packages/types-known/src/upgrades/e2e/kusama.ts on lines 5028..5109
packages/types-known/src/upgrades/e2e/kusama.ts on lines 5110..5191
packages/types-known/src/upgrades/e2e/kusama.ts on lines 5192..5273
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3138..3219
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3220..3301
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3302..3383
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3384..3465
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3466..3547
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3548..3629
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3630..3711
packages/types-known/src/upgrades/e2e/westend.ts on lines 4600..4681
packages/types-known/src/upgrades/e2e/westend.ts on lines 4682..4763
packages/types-known/src/upgrades/e2e/westend.ts on lines 4764..4845
packages/types-known/src/upgrades/e2e/westend.ts on lines 4846..4927
packages/types-known/src/upgrades/e2e/westend.ts on lines 4928..5009
packages/types-known/src/upgrades/e2e/westend.ts on lines 5010..5091
packages/types-known/src/upgrades/e2e/westend.ts on lines 5092..5173
packages/types-known/src/upgrades/e2e/westend.ts on lines 5174..5255
packages/types-known/src/upgrades/e2e/westend.ts on lines 5256..5337
packages/types-known/src/upgrades/e2e/westend.ts on lines 5338..5419

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

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

  [
    21455374,
    1002005,
    [
      [
Severity: Major
Found in packages/types-known/src/upgrades/e2e/polkadot.ts and 24 other locations - About 2 hrs to fix
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4618..4699
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4700..4781
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4782..4863
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4864..4945
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4946..5027
packages/types-known/src/upgrades/e2e/kusama.ts on lines 5028..5109
packages/types-known/src/upgrades/e2e/kusama.ts on lines 5110..5191
packages/types-known/src/upgrades/e2e/kusama.ts on lines 5192..5273
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3138..3219
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3220..3301
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3302..3383
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3384..3465
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3548..3629
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3630..3711
packages/types-known/src/upgrades/e2e/westend.ts on lines 4600..4681
packages/types-known/src/upgrades/e2e/westend.ts on lines 4682..4763
packages/types-known/src/upgrades/e2e/westend.ts on lines 4764..4845
packages/types-known/src/upgrades/e2e/westend.ts on lines 4846..4927
packages/types-known/src/upgrades/e2e/westend.ts on lines 4928..5009
packages/types-known/src/upgrades/e2e/westend.ts on lines 5010..5091
packages/types-known/src/upgrades/e2e/westend.ts on lines 5092..5173
packages/types-known/src/upgrades/e2e/westend.ts on lines 5174..5255
packages/types-known/src/upgrades/e2e/westend.ts on lines 5256..5337
packages/types-known/src/upgrades/e2e/westend.ts on lines 5338..5419

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

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

  [
    18293984,
    102000,
    [
      [
Severity: Major
Found in packages/types-known/src/upgrades/e2e/westend.ts and 24 other locations - About 2 hrs to fix
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4618..4699
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4700..4781
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4782..4863
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4864..4945
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4946..5027
packages/types-known/src/upgrades/e2e/kusama.ts on lines 5028..5109
packages/types-known/src/upgrades/e2e/kusama.ts on lines 5110..5191
packages/types-known/src/upgrades/e2e/kusama.ts on lines 5192..5273
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3138..3219
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3220..3301
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3302..3383
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3384..3465
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3466..3547
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3548..3629
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3630..3711
packages/types-known/src/upgrades/e2e/westend.ts on lines 4682..4763
packages/types-known/src/upgrades/e2e/westend.ts on lines 4764..4845
packages/types-known/src/upgrades/e2e/westend.ts on lines 4846..4927
packages/types-known/src/upgrades/e2e/westend.ts on lines 4928..5009
packages/types-known/src/upgrades/e2e/westend.ts on lines 5010..5091
packages/types-known/src/upgrades/e2e/westend.ts on lines 5092..5173
packages/types-known/src/upgrades/e2e/westend.ts on lines 5174..5255
packages/types-known/src/upgrades/e2e/westend.ts on lines 5256..5337
packages/types-known/src/upgrades/e2e/westend.ts on lines 5338..5419

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

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

  [
    20181758,
    1001003,
    [
      [
Severity: Major
Found in packages/types-known/src/upgrades/e2e/polkadot.ts and 24 other locations - About 2 hrs to fix
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4618..4699
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4700..4781
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4782..4863
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4864..4945
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4946..5027
packages/types-known/src/upgrades/e2e/kusama.ts on lines 5028..5109
packages/types-known/src/upgrades/e2e/kusama.ts on lines 5110..5191
packages/types-known/src/upgrades/e2e/kusama.ts on lines 5192..5273
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3138..3219
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3302..3383
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3384..3465
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3466..3547
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3548..3629
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3630..3711
packages/types-known/src/upgrades/e2e/westend.ts on lines 4600..4681
packages/types-known/src/upgrades/e2e/westend.ts on lines 4682..4763
packages/types-known/src/upgrades/e2e/westend.ts on lines 4764..4845
packages/types-known/src/upgrades/e2e/westend.ts on lines 4846..4927
packages/types-known/src/upgrades/e2e/westend.ts on lines 4928..5009
packages/types-known/src/upgrades/e2e/westend.ts on lines 5010..5091
packages/types-known/src/upgrades/e2e/westend.ts on lines 5092..5173
packages/types-known/src/upgrades/e2e/westend.ts on lines 5174..5255
packages/types-known/src/upgrades/e2e/westend.ts on lines 5256..5337
packages/types-known/src/upgrades/e2e/westend.ts on lines 5338..5419

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

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

  [
    19166695,
    1006000,
    [
      [
Severity: Major
Found in packages/types-known/src/upgrades/e2e/westend.ts and 24 other locations - About 2 hrs to fix
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4618..4699
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4700..4781
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4782..4863
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4864..4945
packages/types-known/src/upgrades/e2e/kusama.ts on lines 4946..5027
packages/types-known/src/upgrades/e2e/kusama.ts on lines 5028..5109
packages/types-known/src/upgrades/e2e/kusama.ts on lines 5110..5191
packages/types-known/src/upgrades/e2e/kusama.ts on lines 5192..5273
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3138..3219
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3220..3301
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3302..3383
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3384..3465
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3466..3547
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3548..3629
packages/types-known/src/upgrades/e2e/polkadot.ts on lines 3630..3711
packages/types-known/src/upgrades/e2e/westend.ts on lines 4600..4681
packages/types-known/src/upgrades/e2e/westend.ts on lines 4682..4763
packages/types-known/src/upgrades/e2e/westend.ts on lines 4764..4845
packages/types-known/src/upgrades/e2e/westend.ts on lines 4846..4927
packages/types-known/src/upgrades/e2e/westend.ts on lines 5010..5091
packages/types-known/src/upgrades/e2e/westend.ts on lines 5092..5173
packages/types-known/src/upgrades/e2e/westend.ts on lines 5174..5255
packages/types-known/src/upgrades/e2e/westend.ts on lines 5256..5337
packages/types-known/src/upgrades/e2e/westend.ts on lines 5338..5419

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

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

      expect(
        Array.from(new (BTreeSet.with(MockOptionEnum))(registry, mockOptionEnumSetObj)).map((k) => k.value.toJSON())
      ).toEqual([
        null,
        { key1: { int: -1, text: 'b' } },
Severity: Major
Found in packages/types-codec/src/extended/BTreeSet.spec.ts and 1 other location - About 2 hrs to fix
packages/types-codec/src/extended/BTreeMap.spec.ts on lines 139..148

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

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

  interface PolkadotRuntimeCommonClaimsPalletError extends Enum {
    readonly isInvalidEthereumSignature: boolean;
    readonly isSignerHasNoClaim: boolean;
    readonly isSenderHasNoClaim: boolean;
    readonly isPotUnderflow: boolean;
Severity: Major
Found in packages/types-augment/src/lookup/types-polkadot.ts and 5 other locations - About 2 hrs to fix
packages/types-augment/src/lookup/types-kusama.ts on lines 619..627
packages/types-augment/src/lookup/types-polkadot.ts on lines 3170..3178
packages/types-augment/src/lookup/types-substrate.ts on lines 756..764
packages/types-augment/src/lookup/types-substrate.ts on lines 2307..2315
packages/types-augment/src/lookup/types-substrate.ts on lines 8931..8939

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

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