polkadot-js/api

View on GitHub

Showing 2,427 of 2,612 total issues

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

  [
    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

  [
    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

  [
    20438530,
    1002000,
    [
      [
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 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

  [
    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

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

  [
    21558004,
    1002006,
    [
      [
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 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

  [
    18293991,
    103000,
    [
      [
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 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 6 locations. Consider refactoring.
Open

  interface PalletMembershipEvent extends Enum {
    readonly isMemberAdded: boolean;
    readonly isMemberRemoved: boolean;
    readonly isMembersSwapped: boolean;
    readonly isMembersReset: boolean;
Severity: Major
Found in packages/types-augment/src/lookup/types-substrate.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 2791..2799
packages/types-augment/src/lookup/types-polkadot.ts on lines 3170..3178
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

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

  interface PalletFastUnstakeError extends Enum {
    readonly isNotController: boolean;
    readonly isAlreadyQueued: boolean;
    readonly isNotFullyBonded: boolean;
    readonly isNotQueued: boolean;
Severity: Major
Found in packages/types-augment/src/lookup/types-substrate.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 2791..2799
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

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 PolkadotRuntimeParachainsDisputesSlashingPalletError extends Enum {
    readonly isInvalidKeyOwnershipProof: boolean;
    readonly isInvalidSessionIndex: boolean;
    readonly isInvalidCandidateHash: boolean;
    readonly isInvalidValidatorIndex: 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 2791..2799
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

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

  interface PalletStateTrieMigrationError extends Enum {
    readonly isMaxSignedLimits: boolean;
    readonly isKeyTooLong: boolean;
    readonly isNotEnoughFunds: boolean;
    readonly isBadWitness: boolean;
Severity: Major
Found in packages/types-augment/src/lookup/types-substrate.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 2791..2799
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 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

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

  interface PolkadotRuntimeParachainsAssignerCoretimePalletError extends Enum {
    readonly isAssignmentsEmpty: boolean;
    readonly isOverScheduled: boolean;
    readonly isUnderScheduled: boolean;
    readonly isDisallowedInsert: boolean;
Severity: Major
Found in packages/types-augment/src/lookup/types-kusama.ts and 5 other locations - About 2 hrs to fix
packages/types-augment/src/lookup/types-polkadot.ts on lines 2791..2799
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

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

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

Identical blocks of code found in 2 locations. Consider refactoring.
Open

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

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

export interface IncomingParachain extends Enum {
  readonly isUnset: boolean;
  readonly asUnset: NewBidder;
  readonly isFixed: boolean;
  readonly asFixed: IncomingParachainFixed;
Severity: Major
Found in packages/types/src/interfaces/parachains/types.ts and 2 other locations - About 2 hrs to fix
packages/types/src/interfaces/extrinsics/types.ts on lines 54..62
packages/types/src/interfaces/runtime/types.ts on lines 234..242

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

export interface MultiSigner extends Enum {
  readonly isEd25519: boolean;
  readonly asEd25519: U8aFixed;
  readonly isSr25519: boolean;
  readonly asSr25519: U8aFixed;
Severity: Major
Found in packages/types/src/interfaces/runtime/types.ts and 2 other locations - About 2 hrs to fix
packages/types/src/interfaces/extrinsics/types.ts on lines 54..62
packages/types/src/interfaces/parachains/types.ts on lines 454..462

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