polkadot-js/apps

View on GitHub

Showing 2,050 of 2,050 total issues

Function SettingsApp has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
Open

function SettingsApp ({ basePath, onStatusChange }: Props): React.ReactElement<Props> {
  const { t } = useTranslation();
  const { api, isApiConnected, isApiReady, isDevelopment } = useApi();
  const numExtensions = useCounter();

Severity: Minor
Found in packages/page-settings/src/index.tsx - About 35 mins to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Function InputExtrinsic has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
Open

function InputExtrinsic ({ className = '', defaultValue, filter, isDisabled, label, onChange, withLabel }: Props): React.ReactElement<Props> {
  const { api } = useApi();
  const [optionsMethod, setOptionsMethod] = useState<DropdownOptions>(() => methodOptions(api, defaultValue.section, filter));
  const [optionsSection] = useState<DropdownOptions>(() => sectionOptions(api, filter));
  const [value, setValue] = useState<SubmittableExtrinsicFunction<'promise'>>((): SubmittableExtrinsicFunction<'promise'> => defaultValue);
Severity: Minor
Found in packages/react-components/src/InputExtrinsic/index.tsx - About 35 mins to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Function Labelled has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
Open

function Labelled ({ children, className = '', isFull, isHidden, isOuter, isSmall, label = defaultLabel, labelExtra, withEllipsis, withLabel = true }: Props): React.ReactElement<Props> | null {
  if (isHidden) {
    return null;
  } else if (!withLabel) {
    return (
Severity: Minor
Found in packages/react-components/src/Labelled.tsx - About 35 mins to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Function AddressToggle has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
Open

function AddressToggle ({ address, className = '', filter, isHidden, noToggle, onChange, value }: Props): React.ReactElement<Props> | null {
  const { apiIdentity } = useApi();
  const info = useDeriveAccountInfo(address);

  const isVisible = useMemo(
Severity: Minor
Found in packages/react-components/src/AddressToggle.tsx - About 35 mins to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Function renderItem has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
Open

function renderItem ({ error, extrinsic, id, removeItem, rpc, status }: QueueTx): React.ReactNode {
  let { method, section } = rpc;

  if (extrinsic) {
    const found = extrinsic.registry.findMetaCall(extrinsic.callIndex);
Severity: Minor
Found in packages/react-components/src/Status/index.tsx - About 35 mins to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Function renderValidatorPrefs has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
Open

function renderValidatorPrefs ({ stakingInfo, withValidatorPrefs = false }: Props, t: TFunction): React.ReactNode {
  const validatorPrefsDisplay = withValidatorPrefs === true
    ? DEFAULT_PREFS
    : withValidatorPrefs;

Severity: Minor
Found in packages/react-components/src/AddressInfo.tsx - About 35 mins to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

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

  {
    homepage: 'https://ourinvo.com/',
    info: 'rococoInvo',
    paraId: 4377,
    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 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://a.band',
    info: 'aband',
    paraId: 2257,
    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 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 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://dorafactory.org/kusama/',
    info: 'dorafactory',
    paraId: 2115,
    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 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 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/mars',
    info: 'mars',
    paraId: 2008,
    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 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: 'http://subgame.org/',
    info: 'subgame',
    paraId: 2017,
    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 628..640
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://hyperbridge.network',
    info: 'hyperbridge',
    paraId: 3340,
    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 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 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: 'pichiu',
    paraId: 2102,
    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 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://standard.tech/',
    info: 'unorthodox',
    paraId: 2094,
    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 820..832
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://totemaccounting.com/',
    info: 'stagex',
    paraId: 2007,
    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 487..499

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://moonsama.com',
    info: 'moonsama',
    paraId: 3334,
    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 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://hyperbridge.network',
    info: 'rococoHyperbridge',
    paraId: 4374,
    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 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://polkasmith.polkafoundry.com/',
    info: 'polkasmith',
    paraId: 2009,
    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 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://genshiro.io',
    info: 'Genshiro',
    paraId: 2024,
    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 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 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://subgame.org/',
    info: 'subgame',
    paraId: 2018,
    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 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

Severity
Category
Status
Source
Language