polkadot-js/apps

View on GitHub

Showing 1,440 of 2,040 total issues

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

function createOptions (blockTime: BN, voteLockingPeriod: BN, t: (key: string, options?: { replace: Record<string, unknown> }) => string): { text: string; value: number }[] {
  return [
    { text: t('0.1x voting balance, no lockup period'), value: 0 },
    ...CONVICTIONS.map(([value, duration, durationBn]): { text: string; value: number } => ({
      text: t('{{value}}x voting balance, locked for {{duration}}x duration{{period}}', {
Severity: Minor
Found in packages/react-components/src/ConvictionDropdown.tsx and 1 other location - About 45 mins to fix
packages/react-hooks/src/useBlockTime.ts on lines 18..55

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

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

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

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

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

Refactorings

Further Reading

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

    ['stakingEpoch', [{
      ...newDate(blocksSes, blockTime),
      blockNumber: bestNumber.add(blocksSes),
      blocks: blocksSes,
      info: sessionInfo.currentIndex.add(BN_ONE)
Severity: Minor
Found in packages/page-calendar/src/useScheduled.ts and 1 other location - About 45 mins to fix
packages/page-calendar/src/useScheduled.ts on lines 135..140

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

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

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

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

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

Refactorings

Further Reading

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

function BasicAccountId32 (props: Props): React.ReactElement<Props> {
  return (
    <BasicAccountIdBase
      {...props}
      bytesLength={32}
Severity: Minor
Found in packages/react-params/src/Param/BasicAccountId32.tsx and 1 other location - About 45 mins to fix
packages/react-params/src/Param/BasicAccountId20.tsx on lines 10..17

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

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 storageOptions = useMemo(
    () => [
      { text: t('Allow local in-browser account storage'), value: 'on' },
      { text: t('Do not allow local in-browser account storage'), value: 'off' }
    ],
Severity: Major
Found in packages/page-settings/src/General.tsx and 2 other locations - About 45 mins to fix
packages/page-referenda/src/Referenda/Submit/index.tsx on lines 110..116
packages/page-settings/src/General.tsx on lines 75..81

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

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

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

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

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

Refactorings

Further Reading

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

    ['stakingEra', [{
      ...newDate(blocksEra, blockTime),
      blockNumber: bestNumber.add(blocksEra),
      blocks: blocksEra,
      info: sessionInfo.activeEra.add(BN_ONE)
Severity: Minor
Found in packages/page-calendar/src/useScheduled.ts and 1 other location - About 45 mins to fix
packages/page-calendar/src/useScheduled.ts on lines 129..134

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

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

  {
    homepage: 'https://www.aventus.io/',
    info: 'aventus',
    paraId: 2056,
    providers: {
Severity: Major
Found in packages/apps-config/src/endpoints/productionRelayPolkadot.ts and 20 other locations - About 40 mins to fix
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 32..44
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 311..323
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 324..336
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 476..488
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 763..775
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 840..852
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 866..878
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 188..200
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 340..352
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 397..409
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 542..554
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 716..728
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 771..783
packages/apps-config/src/endpoints/testingRelayPaseo.ts on lines 60..72
packages/apps-config/src/endpoints/testingRelayPaseo.ts on lines 73..85
packages/apps-config/src/endpoints/testingRelayPaseo.ts on lines 111..123
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 55..67
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 245..257
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 332..344
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 393..405

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

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

  {
    homepage: 'https://mnet.io/?ref=polkadotjs',
    info: 'continuum',
    paraId: 3346,
    providers: {
Severity: Major
Found in packages/apps-config/src/endpoints/productionRelayPolkadot.ts and 20 other locations - About 40 mins to fix
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 32..44
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 311..323
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 324..336
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 476..488
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 763..775
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 840..852
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 866..878
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 87..99
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 340..352
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 397..409
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 542..554
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 716..728
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 771..783
packages/apps-config/src/endpoints/testingRelayPaseo.ts on lines 60..72
packages/apps-config/src/endpoints/testingRelayPaseo.ts on lines 73..85
packages/apps-config/src/endpoints/testingRelayPaseo.ts on lines 111..123
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 55..67
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 245..257
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 332..344
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 393..405

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

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

  {
    homepage: 'https://laosnetwork.io/',
    info: 'k-laos',
    paraId: 3336,
    providers: {
Severity: Major
Found in packages/apps-config/src/endpoints/productionRelayKusama.ts and 20 other locations - About 40 mins to fix
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 32..44
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 324..336
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 476..488
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 763..775
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 840..852
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 866..878
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 87..99
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 188..200
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 340..352
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 397..409
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 542..554
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 716..728
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 771..783
packages/apps-config/src/endpoints/testingRelayPaseo.ts on lines 60..72
packages/apps-config/src/endpoints/testingRelayPaseo.ts on lines 73..85
packages/apps-config/src/endpoints/testingRelayPaseo.ts on lines 111..123
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 55..67
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 245..257
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 332..344
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 393..405

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

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

  {
    homepage: 'https://sora.org/',
    info: 'sora',
    paraId: 2011,
    providers: {
Severity: Major
Found in packages/apps-config/src/endpoints/productionRelayKusama.ts and 20 other locations - About 40 mins to fix
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 32..44
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 311..323
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 324..336
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 476..488
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 840..852
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 866..878
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 87..99
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 188..200
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 340..352
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 397..409
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 542..554
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 716..728
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 771..783
packages/apps-config/src/endpoints/testingRelayPaseo.ts on lines 60..72
packages/apps-config/src/endpoints/testingRelayPaseo.ts on lines 73..85
packages/apps-config/src/endpoints/testingRelayPaseo.ts on lines 111..123
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 55..67
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 245..257
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 332..344
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 393..405

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

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

  {
    homepage: 'https://mythos.foundation/',
    info: 'mythos',
    paraId: 3369,
    providers: {
Severity: Major
Found in packages/apps-config/src/endpoints/productionRelayPolkadot.ts and 20 other locations - About 40 mins to fix
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 32..44
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 311..323
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 324..336
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 476..488
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 763..775
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 840..852
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 866..878
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 87..99
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 188..200
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 340..352
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 397..409
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 716..728
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 771..783
packages/apps-config/src/endpoints/testingRelayPaseo.ts on lines 60..72
packages/apps-config/src/endpoints/testingRelayPaseo.ts on lines 73..85
packages/apps-config/src/endpoints/testingRelayPaseo.ts on lines 111..123
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 55..67
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 245..257
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 332..344
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 393..405

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

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

  {
    homepage: 'https://sora.org/',
    info: 'sora',
    paraId: 2025,
    providers: {
Severity: Major
Found in packages/apps-config/src/endpoints/productionRelayPolkadot.ts and 20 other locations - About 40 mins to fix
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 32..44
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 311..323
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 324..336
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 476..488
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 763..775
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 840..852
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 866..878
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 87..99
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 188..200
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 340..352
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 397..409
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 542..554
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 771..783
packages/apps-config/src/endpoints/testingRelayPaseo.ts on lines 60..72
packages/apps-config/src/endpoints/testingRelayPaseo.ts on lines 73..85
packages/apps-config/src/endpoints/testingRelayPaseo.ts on lines 111..123
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 55..67
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 245..257
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 332..344
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 393..405

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

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

  {
    homepage: 'https://hyperbridge.network',
    info: 'rococoHyperbridge',
    paraId: 4374,
    providers: {
Severity: Major
Found in packages/apps-config/src/endpoints/testingRelayRococo.ts and 20 other locations - About 40 mins to fix
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 32..44
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 311..323
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 324..336
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 476..488
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 763..775
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 840..852
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 866..878
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 87..99
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 188..200
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 340..352
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 397..409
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 542..554
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 716..728
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 771..783
packages/apps-config/src/endpoints/testingRelayPaseo.ts on lines 60..72
packages/apps-config/src/endpoints/testingRelayPaseo.ts on lines 73..85
packages/apps-config/src/endpoints/testingRelayPaseo.ts on lines 111..123
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 55..67
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 332..344
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 393..405

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

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

  {
    homepage: 'https://integritee.network',
    info: 'integritee',
    paraId: 2039,
    providers: {
Severity: Major
Found in packages/apps-config/src/endpoints/testingRelayPaseo.ts and 20 other locations - About 40 mins to fix
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 32..44
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 311..323
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 324..336
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 476..488
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 763..775
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 840..852
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 866..878
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 87..99
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 188..200
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 340..352
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 397..409
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 542..554
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 716..728
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 771..783
packages/apps-config/src/endpoints/testingRelayPaseo.ts on lines 60..72
packages/apps-config/src/endpoints/testingRelayPaseo.ts on lines 111..123
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 55..67
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 245..257
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 332..344
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 393..405

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

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

  {
    homepage: 'https://kabocha.network',
    info: 'kabocha',
    paraId: 2113,
    providers: {
Severity: Major
Found in packages/apps-config/src/endpoints/productionRelayKusama.ts and 20 other locations - About 40 mins to fix
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 32..44
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 311..323
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 476..488
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 763..775
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 840..852
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 866..878
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 87..99
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 188..200
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 340..352
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 397..409
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 542..554
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 716..728
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 771..783
packages/apps-config/src/endpoints/testingRelayPaseo.ts on lines 60..72
packages/apps-config/src/endpoints/testingRelayPaseo.ts on lines 73..85
packages/apps-config/src/endpoints/testingRelayPaseo.ts on lines 111..123
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 55..67
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 245..257
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 332..344
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 393..405

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

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

  {
    homepage: 'https://hyperbridge.network',
    info: 'hyperbridge',
    paraId: 3367,
    providers: {
Severity: Major
Found in packages/apps-config/src/endpoints/productionRelayPolkadot.ts and 20 other locations - About 40 mins to fix
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 32..44
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 311..323
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 324..336
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 476..488
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 763..775
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 840..852
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 866..878
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 87..99
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 188..200
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 397..409
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 542..554
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 716..728
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 771..783
packages/apps-config/src/endpoints/testingRelayPaseo.ts on lines 60..72
packages/apps-config/src/endpoints/testingRelayPaseo.ts on lines 73..85
packages/apps-config/src/endpoints/testingRelayPaseo.ts on lines 111..123
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 55..67
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 245..257
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 332..344
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 393..405

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

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

  {
    homepage: 'https://acurast.com',
    info: 'acurast',
    paraId: 2239,
    providers: {
Severity: Major
Found in packages/apps-config/src/endpoints/productionRelayKusama.ts and 20 other locations - About 40 mins to fix
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 311..323
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 324..336
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 476..488
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 763..775
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 840..852
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 866..878
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 87..99
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 188..200
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 340..352
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 397..409
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 542..554
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 716..728
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 771..783
packages/apps-config/src/endpoints/testingRelayPaseo.ts on lines 60..72
packages/apps-config/src/endpoints/testingRelayPaseo.ts on lines 73..85
packages/apps-config/src/endpoints/testingRelayPaseo.ts on lines 111..123
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 55..67
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 245..257
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 332..344
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 393..405

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

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

  {
    homepage: 'https://www.litentry.com/',
    info: 'rococoLitentry',
    paraId: 2106,
    providers: {
Severity: Major
Found in packages/apps-config/src/endpoints/testingRelayRococo.ts and 20 other locations - About 40 mins to fix
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 32..44
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 311..323
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 324..336
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 476..488
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 763..775
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 840..852
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 866..878
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 87..99
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 188..200
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 340..352
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 397..409
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 542..554
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 716..728
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 771..783
packages/apps-config/src/endpoints/testingRelayPaseo.ts on lines 60..72
packages/apps-config/src/endpoints/testingRelayPaseo.ts on lines 73..85
packages/apps-config/src/endpoints/testingRelayPaseo.ts on lines 111..123
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 55..67
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 245..257
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 393..405

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

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

  {
    homepage: 'https://neuroweb.ai',
    info: 'rococoNeuroWeb',
    paraId: 2043,
    providers: {
Severity: Major
Found in packages/apps-config/src/endpoints/testingRelayRococo.ts and 20 other locations - About 40 mins to fix
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 32..44
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 311..323
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 324..336
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 476..488
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 763..775
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 840..852
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 866..878
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 87..99
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 188..200
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 340..352
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 397..409
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 542..554
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 716..728
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 771..783
packages/apps-config/src/endpoints/testingRelayPaseo.ts on lines 60..72
packages/apps-config/src/endpoints/testingRelayPaseo.ts on lines 73..85
packages/apps-config/src/endpoints/testingRelayPaseo.ts on lines 111..123
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 55..67
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 245..257
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 332..344

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

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

  {
    homepage: 'https://www.nodle.com/',
    info: 'NodleParadis',
    paraId: 2026,
    providers: {
Severity: Major
Found in packages/apps-config/src/endpoints/testingRelayPaseo.ts and 20 other locations - About 40 mins to fix
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 32..44
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 311..323
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 324..336
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 476..488
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 763..775
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 840..852
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 866..878
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 87..99
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 188..200
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 340..352
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 397..409
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 542..554
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 716..728
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 771..783
packages/apps-config/src/endpoints/testingRelayPaseo.ts on lines 60..72
packages/apps-config/src/endpoints/testingRelayPaseo.ts on lines 73..85
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 55..67
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 245..257
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 332..344
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 393..405

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

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

  {
    homepage: 'https://oak.tech',
    info: 'turing',
    paraId: 2114,
    providers: {
Severity: Major
Found in packages/apps-config/src/endpoints/productionRelayKusama.ts and 20 other locations - About 40 mins to fix
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 32..44
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 311..323
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 324..336
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 476..488
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 763..775
packages/apps-config/src/endpoints/productionRelayKusama.ts on lines 866..878
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 87..99
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 188..200
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 340..352
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 397..409
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 542..554
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 716..728
packages/apps-config/src/endpoints/productionRelayPolkadot.ts on lines 771..783
packages/apps-config/src/endpoints/testingRelayPaseo.ts on lines 60..72
packages/apps-config/src/endpoints/testingRelayPaseo.ts on lines 73..85
packages/apps-config/src/endpoints/testingRelayPaseo.ts on lines 111..123
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 55..67
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 245..257
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 332..344
packages/apps-config/src/endpoints/testingRelayRococo.ts on lines 393..405

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

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