polkadot-js/apps

View on GitHub

Showing 2,050 of 2,050 total issues

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

  {
    homepage: 'https://riodefi.com',
    info: 'riodefi',
    paraId: 2227,
    providers: {
Severity: Major
Found in packages/apps-config/src/endpoints/productionRelayKusama.ts and 26 other locations - About 35 mins to fix
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 19..31
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 201..213
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 214..226
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 259..271
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 394..406
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 520..532
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 593..605
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 620..632
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 781..793
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 794..806
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 807..819
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 820..832
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 859..871
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 55..67
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 160..172
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 442..454
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 531..543
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 628..640
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 745..757
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 19..31
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 184..196
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 220..232
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 269..281
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 294..306
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 487..499
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 582..594

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 46.

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

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

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

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

Refactorings

Further Reading

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

  {
    homepage: 'https://www.datahighway.com/',
    info: 'tanganika',
    paraId: 2116,
    providers: {
Severity: Major
Found in packages/apps-config/src/endpoints/productionRelayKusama.ts and 26 other locations - About 35 mins to fix
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 19..31
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 201..213
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 214..226
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 259..271
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 394..406
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 520..532
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 593..605
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 620..632
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 663..675
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 781..793
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 794..806
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 807..819
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 859..871
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 55..67
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 160..172
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 442..454
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 531..543
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 628..640
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 745..757
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 19..31
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 184..196
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 220..232
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 269..281
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 294..306
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 487..499
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 582..594

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 46.

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

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

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

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

Refactorings

Further Reading

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

  {
    homepage: 'https://www.aresprotocol.io/',
    info: 'odyssey',
    paraId: 2028,
    providers: {
Severity: Major
Found in packages/apps-config/src/endpoints/productionRelayPolkadot.ts and 26 other locations - About 35 mins to fix
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 19..31
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 201..213
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 214..226
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 259..271
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 394..406
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 520..532
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 593..605
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 620..632
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 663..675
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 781..793
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 794..806
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 807..819
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 820..832
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 859..871
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 160..172
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 442..454
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 531..543
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 628..640
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 745..757
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 19..31
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 184..196
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 220..232
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 269..281
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 294..306
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 487..499
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 582..594

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 46.

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

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

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

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

Refactorings

Further Reading

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

  {
    homepage: 'https://laosnetwork.io/',
    info: 'rorocoLaos',
    paraId: 4343,
    providers: {
Severity: Major
Found in packages/apps-config/src/endpoints/testingRelayRococo.ts and 26 other locations - About 35 mins to fix
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 19..31
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 201..213
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 214..226
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 259..271
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 394..406
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 520..532
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 593..605
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 620..632
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 663..675
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 781..793
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 794..806
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 807..819
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 820..832
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 859..871
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 55..67
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 160..172
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 442..454
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 531..543
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 628..640
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 745..757
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 19..31
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 220..232
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 269..281
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 294..306
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 487..499
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 582..594

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 46.

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

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

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

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

Refactorings

Further Reading

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

  {
    homepage: 'https://kylin.network/',
    info: 'kylin',
    paraId: 2052,
    providers: {
Severity: Major
Found in packages/apps-config/src/endpoints/productionRelayPolkadot.ts and 26 other locations - About 35 mins to fix
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 19..31
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 201..213
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 214..226
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 259..271
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 394..406
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 520..532
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 593..605
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 620..632
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 663..675
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 781..793
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 794..806
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 807..819
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 820..832
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 859..871
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 55..67
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 160..172
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 531..543
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 628..640
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 745..757
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 19..31
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 184..196
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 220..232
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 269..281
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 294..306
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 487..499
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 582..594

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 46.

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

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

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

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

Refactorings

Further Reading

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

  {
    homepage: 'https://dico.io/',
    info: 'kico 2',
    paraId: 2235,
    providers: {
Severity: Major
Found in packages/apps-config/src/endpoints/productionRelayKusama.ts and 26 other locations - About 35 mins to fix
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 19..31
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 201..213
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 214..226
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 259..271
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 520..532
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 593..605
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 620..632
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 663..675
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 781..793
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 794..806
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 807..819
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 820..832
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 859..871
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 55..67
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 160..172
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 442..454
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 531..543
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 628..640
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 745..757
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 19..31
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 184..196
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 220..232
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 269..281
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 294..306
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 487..499
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 582..594

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 46.

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

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

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

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

Refactorings

Further Reading

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

  {
    homepage: 'https://subsocial.network/',
    info: 'subsocialX',
    paraId: 2100,
    providers: {
Severity: Major
Found in packages/apps-config/src/endpoints/productionRelayKusama.ts and 26 other locations - About 35 mins to fix
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 19..31
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 201..213
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 214..226
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 259..271
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 394..406
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 520..532
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 593..605
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 620..632
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 663..675
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 781..793
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 807..819
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 820..832
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 859..871
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 55..67
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 160..172
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 442..454
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 531..543
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 628..640
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 745..757
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 19..31
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 184..196
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 220..232
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 269..281
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 294..306
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 487..499
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 582..594

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 46.

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

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

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

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

Refactorings

Further Reading

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

  {
    homepage: 'http://www.coinversation.io/',
    info: 'coinversation',
    paraId: 2027,
    providers: {
Severity: Major
Found in packages/apps-config/src/endpoints/productionRelayPolkadot.ts and 26 other locations - About 35 mins to fix
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 19..31
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 201..213
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 214..226
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 259..271
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 394..406
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 520..532
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 593..605
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 620..632
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 663..675
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 781..793
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 794..806
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 807..819
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 820..832
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 859..871
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 55..67
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 442..454
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 531..543
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 628..640
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 745..757
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 19..31
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 184..196
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 220..232
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 269..281
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 294..306
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 487..499
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 582..594

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 46.

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

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

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

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

Refactorings

Further Reading

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

  {
    homepage: 'https://acurast.com',
    info: 'rococoAcurast',
    paraId: 2239,
    providers: {
Severity: Major
Found in packages/apps-config/src/endpoints/testingRelayRococo.ts and 26 other locations - About 35 mins to fix
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 19..31
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 201..213
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 214..226
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 259..271
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 394..406
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 520..532
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 593..605
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 620..632
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 663..675
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 781..793
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 794..806
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 807..819
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 820..832
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 859..871
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 55..67
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 160..172
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 442..454
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 531..543
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 628..640
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 745..757
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 184..196
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 220..232
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 269..281
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 294..306
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 487..499
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 582..594

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 46.

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

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

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

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

Refactorings

Further Reading

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

  {
    homepage: 'https://peaq.network/',
    info: 'peaq',
    paraId: 3338,
    providers: {
Severity: Major
Found in packages/apps-config/src/endpoints/productionRelayPolkadot.ts and 26 other locations - About 35 mins to fix
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 19..31
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 201..213
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 214..226
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 259..271
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 394..406
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 520..532
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 593..605
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 620..632
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 663..675
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 781..793
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 794..806
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 807..819
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 820..832
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 859..871
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 55..67
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 160..172
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 442..454
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 531..543
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 745..757
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 19..31
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 184..196
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 220..232
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 269..281
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 294..306
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 487..499
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 582..594

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 46.

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

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

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

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

Refactorings

Further Reading

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

  {
    homepage: 'https://www.t3rn.io/',
    info: 't1rn',
    paraId: 3334,
    providers: {
Severity: Major
Found in packages/apps-config/src/endpoints/productionRelayKusama.ts and 26 other locations - About 35 mins to fix
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 19..31
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 201..213
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 214..226
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 259..271
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 394..406
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 520..532
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 593..605
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 620..632
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 663..675
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 781..793
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 794..806
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 820..832
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 859..871
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 55..67
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 160..172
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 442..454
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 531..543
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 628..640
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 745..757
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 19..31
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 184..196
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 220..232
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 269..281
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 294..306
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 487..499
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 582..594

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 46.

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

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

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

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

Refactorings

Further Reading

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

  {
    homepage: 'https://polkadex.trade',
    info: 'rococoKaizen',
    paraId: 2040,
    providers: {
Severity: Major
Found in packages/apps-config/src/endpoints/testingRelayRococo.ts and 26 other locations - About 35 mins to fix
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 19..31
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 201..213
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 214..226
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 259..271
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 394..406
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 520..532
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 593..605
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 620..632
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 663..675
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 781..793
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 794..806
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 807..819
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 820..832
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 859..871
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 55..67
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 160..172
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 442..454
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 531..543
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 628..640
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 745..757
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 19..31
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 184..196
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 220..232
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 269..281
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 487..499
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 582..594

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 46.

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

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

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

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

Refactorings

Further Reading

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

  {
    homepage: 'http://robonomics.network/',
    info: 'robonomics',
    paraId: 2048,
    providers: {
Severity: Major
Found in packages/apps-config/src/endpoints/testingRelayRococo.ts and 26 other locations - About 35 mins to fix
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 19..31
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 201..213
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 214..226
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 259..271
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 394..406
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 520..532
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 593..605
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 620..632
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 663..675
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 781..793
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 794..806
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 807..819
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 820..832
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 859..871
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 55..67
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 160..172
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 442..454
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 531..543
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 628..640
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 745..757
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 19..31
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 184..196
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 220..232
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 269..281
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 294..306
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 582..594

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 46.

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

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

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

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

Refactorings

Further Reading

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

interface Props {
  controllerId: string | null;
  onClose: () => void;
  stakingInfo?: DeriveStakingAccount;
  stashId: string;
Severity: Minor
Found in packages/page-staking/src/Actions/Account/Rebond.tsx and 1 other location - About 35 mins to fix
packages/page-staking-legacy/src/Actions/Account/Rebond.tsx on lines 15..20

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 46.

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

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

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

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

Refactorings

Further Reading

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

  const { flags: { isDevelopment, isEditable, isEthereum, isExternal, isHardware, isInjected, isMultisig, isProxied }, genesisHash, identity, name: accName, onSetGenesisHash, tags } = useAccountInfo(address);
Severity: Minor
Found in packages/page-accounts/src/Accounts/Account.tsx and 2 other locations - About 35 mins to fix
packages/apps/src/Endpoints/Network.tsx on lines 21..21
packages/react-signer/src/TxSigned.tsx on lines 195..195

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 46.

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

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

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

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

Refactorings

Further Reading

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

const OPT_CURRENTERA = {
  transform: (currentEra: Option<u32>): BN | null =>
    currentEra.unwrapOr(null)
};
Severity: Minor
Found in packages/page-staking2/src/useSessionInfo.ts and 2 other locations - About 35 mins to fix
packages/page-staking-legacy/src/Actions/Pool/useAccountInfo.ts on lines 12..15
packages/page-staking/src/Actions/Pool/useAccountInfo.ts on lines 12..15

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 46.

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

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

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

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

Refactorings

Further Reading

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

interface Props {
  index: number;
  isSelected: boolean;
  onSelect?: (index: number) => void;
  slash: Slash;
Severity: Minor
Found in packages/page-staking/src/Slashes/Row.tsx and 1 other location - About 35 mins to fix
packages/page-staking-legacy/src/Slashes/Row.tsx on lines 15..20

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 46.

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

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

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

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

Refactorings

Further Reading

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

      <div className='storage--actionrow-buttons'>
        <Button
          icon='plus'
          isDisabled={!isValid}
          onClick={_onAdd}
Severity: Minor
Found in packages/page-storage/src/Selection/Raw.tsx and 1 other location - About 35 mins to fix
packages/page-storage/src/Selection/Modules.tsx on lines 257..263

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 46.

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

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

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

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

Refactorings

Further Reading

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

                <CreateAccountInputs
                  name={{ isNameValid, name }}
                  onCommit={_onCommit}
                  setName={setName}
                  setPassword={setPassword}
Severity: Minor
Found in packages/page-accounts/src/modals/Derive.tsx and 1 other location - About 35 mins to fix
packages/page-accounts/src/modals/Create.tsx on lines 371..376

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 46.

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

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

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

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

Refactorings

Further Reading

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

interface Props {
  controllerId: string | null;
  onClose: () => void;
  stakingInfo?: DeriveStakingAccount;
  stashId: string;
Severity: Minor
Found in packages/page-staking-legacy/src/Actions/Account/Rebond.tsx and 1 other location - About 35 mins to fix
packages/page-staking/src/Actions/Account/Rebond.tsx on lines 15..20

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 46.

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

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

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

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

Refactorings

Further Reading

Severity
Category
Status
Source
Language