synapsecns/sanguine

View on GitHub
packages/rfq-indexer/indexer/ponder.config.ts

Summary

Maintainability
D
1 day
Test Coverage

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

  [blastChainId]: {
    name: configByChainId[blastChainId].chainName,
    FastBridgeV2: {
      address: configByChainId[blastChainId].FastBridgeV2Address,
      abi: FastBridgeV2Abi,
Severity: Major
Found in packages/rfq-indexer/indexer/ponder.config.ts and 8 other locations - About 1 hr to fix
packages/rfq-indexer/indexer/ponder.config.ts on lines 83..90
packages/rfq-indexer/indexer/ponder.config.ts on lines 91..98
packages/rfq-indexer/indexer/ponder.config.ts on lines 99..106
packages/rfq-indexer/indexer/ponder.config.ts on lines 107..114
packages/rfq-indexer/indexer/ponder.config.ts on lines 123..130
packages/rfq-indexer/indexer/ponder.config.ts on lines 131..138
packages/rfq-indexer/indexer/ponder.config.ts on lines 139..146
packages/rfq-indexer/indexer/ponder.config.ts on lines 147..154

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

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

  [optimismChainId]: {
    name: configByChainId[optimismChainId].chainName,
    FastBridgeV2: {
      address: configByChainId[optimismChainId].FastBridgeV2Address,
      abi: FastBridgeV2Abi,
Severity: Major
Found in packages/rfq-indexer/indexer/ponder.config.ts and 8 other locations - About 1 hr to fix
packages/rfq-indexer/indexer/ponder.config.ts on lines 83..90
packages/rfq-indexer/indexer/ponder.config.ts on lines 99..106
packages/rfq-indexer/indexer/ponder.config.ts on lines 107..114
packages/rfq-indexer/indexer/ponder.config.ts on lines 115..122
packages/rfq-indexer/indexer/ponder.config.ts on lines 123..130
packages/rfq-indexer/indexer/ponder.config.ts on lines 131..138
packages/rfq-indexer/indexer/ponder.config.ts on lines 139..146
packages/rfq-indexer/indexer/ponder.config.ts on lines 147..154

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

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

  [ethereumChainId]: {
    name: configByChainId[ethereumChainId].chainName,
    FastBridgeV2: {
      address: configByChainId[ethereumChainId].FastBridgeV2Address,
      abi: FastBridgeV2Abi,
Severity: Major
Found in packages/rfq-indexer/indexer/ponder.config.ts and 8 other locations - About 1 hr to fix
packages/rfq-indexer/indexer/ponder.config.ts on lines 91..98
packages/rfq-indexer/indexer/ponder.config.ts on lines 99..106
packages/rfq-indexer/indexer/ponder.config.ts on lines 107..114
packages/rfq-indexer/indexer/ponder.config.ts on lines 115..122
packages/rfq-indexer/indexer/ponder.config.ts on lines 123..130
packages/rfq-indexer/indexer/ponder.config.ts on lines 131..138
packages/rfq-indexer/indexer/ponder.config.ts on lines 139..146
packages/rfq-indexer/indexer/ponder.config.ts on lines 147..154

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

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

  [arbitrumChainId]: {
    name: configByChainId[arbitrumChainId].chainName,
    FastBridgeV2: {
      address: configByChainId[arbitrumChainId].FastBridgeV2Address,
      abi: FastBridgeV2Abi,
Severity: Major
Found in packages/rfq-indexer/indexer/ponder.config.ts and 8 other locations - About 1 hr to fix
packages/rfq-indexer/indexer/ponder.config.ts on lines 83..90
packages/rfq-indexer/indexer/ponder.config.ts on lines 91..98
packages/rfq-indexer/indexer/ponder.config.ts on lines 107..114
packages/rfq-indexer/indexer/ponder.config.ts on lines 115..122
packages/rfq-indexer/indexer/ponder.config.ts on lines 123..130
packages/rfq-indexer/indexer/ponder.config.ts on lines 131..138
packages/rfq-indexer/indexer/ponder.config.ts on lines 139..146
packages/rfq-indexer/indexer/ponder.config.ts on lines 147..154

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

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

  [worldchainChainId]: {
    name: configByChainId[worldchainChainId].chainName,
    FastBridgeV2: {
      address: configByChainId[worldchainChainId].FastBridgeV2Address,
      abi: FastBridgeV2Abi,
Severity: Major
Found in packages/rfq-indexer/indexer/ponder.config.ts and 8 other locations - About 1 hr to fix
packages/rfq-indexer/indexer/ponder.config.ts on lines 83..90
packages/rfq-indexer/indexer/ponder.config.ts on lines 91..98
packages/rfq-indexer/indexer/ponder.config.ts on lines 99..106
packages/rfq-indexer/indexer/ponder.config.ts on lines 107..114
packages/rfq-indexer/indexer/ponder.config.ts on lines 115..122
packages/rfq-indexer/indexer/ponder.config.ts on lines 123..130
packages/rfq-indexer/indexer/ponder.config.ts on lines 131..138
packages/rfq-indexer/indexer/ponder.config.ts on lines 139..146

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

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

  [lineaChainId]: {
    name: configByChainId[lineaChainId].chainName,
    FastBridgeV2: {
      address: configByChainId[lineaChainId].FastBridgeV2Address,
      abi: FastBridgeV2Abi,
Severity: Major
Found in packages/rfq-indexer/indexer/ponder.config.ts and 8 other locations - About 1 hr to fix
packages/rfq-indexer/indexer/ponder.config.ts on lines 83..90
packages/rfq-indexer/indexer/ponder.config.ts on lines 91..98
packages/rfq-indexer/indexer/ponder.config.ts on lines 99..106
packages/rfq-indexer/indexer/ponder.config.ts on lines 107..114
packages/rfq-indexer/indexer/ponder.config.ts on lines 115..122
packages/rfq-indexer/indexer/ponder.config.ts on lines 123..130
packages/rfq-indexer/indexer/ponder.config.ts on lines 139..146
packages/rfq-indexer/indexer/ponder.config.ts on lines 147..154

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

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

  [baseChainId]: {
    name: configByChainId[baseChainId].chainName,
    FastBridgeV2: {
      address: configByChainId[baseChainId].FastBridgeV2Address,
      abi: FastBridgeV2Abi,
Severity: Major
Found in packages/rfq-indexer/indexer/ponder.config.ts and 8 other locations - About 1 hr to fix
packages/rfq-indexer/indexer/ponder.config.ts on lines 83..90
packages/rfq-indexer/indexer/ponder.config.ts on lines 91..98
packages/rfq-indexer/indexer/ponder.config.ts on lines 99..106
packages/rfq-indexer/indexer/ponder.config.ts on lines 115..122
packages/rfq-indexer/indexer/ponder.config.ts on lines 123..130
packages/rfq-indexer/indexer/ponder.config.ts on lines 131..138
packages/rfq-indexer/indexer/ponder.config.ts on lines 139..146
packages/rfq-indexer/indexer/ponder.config.ts on lines 147..154

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

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

  [scrollChainId]: {
    name: configByChainId[scrollChainId].chainName,
    FastBridgeV2: {
      address: configByChainId[scrollChainId].FastBridgeV2Address,
      abi: FastBridgeV2Abi,
Severity: Major
Found in packages/rfq-indexer/indexer/ponder.config.ts and 8 other locations - About 1 hr to fix
packages/rfq-indexer/indexer/ponder.config.ts on lines 83..90
packages/rfq-indexer/indexer/ponder.config.ts on lines 91..98
packages/rfq-indexer/indexer/ponder.config.ts on lines 99..106
packages/rfq-indexer/indexer/ponder.config.ts on lines 107..114
packages/rfq-indexer/indexer/ponder.config.ts on lines 115..122
packages/rfq-indexer/indexer/ponder.config.ts on lines 131..138
packages/rfq-indexer/indexer/ponder.config.ts on lines 139..146
packages/rfq-indexer/indexer/ponder.config.ts on lines 147..154

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

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

  [bnbChainId]: {
    name: configByChainId[bnbChainId].chainName,
    FastBridgeV2: {
      address: configByChainId[bnbChainId].FastBridgeV2Address,
      abi: FastBridgeV2Abi,
Severity: Major
Found in packages/rfq-indexer/indexer/ponder.config.ts and 8 other locations - About 1 hr to fix
packages/rfq-indexer/indexer/ponder.config.ts on lines 83..90
packages/rfq-indexer/indexer/ponder.config.ts on lines 91..98
packages/rfq-indexer/indexer/ponder.config.ts on lines 99..106
packages/rfq-indexer/indexer/ponder.config.ts on lines 107..114
packages/rfq-indexer/indexer/ponder.config.ts on lines 115..122
packages/rfq-indexer/indexer/ponder.config.ts on lines 123..130
packages/rfq-indexer/indexer/ponder.config.ts on lines 131..138
packages/rfq-indexer/indexer/ponder.config.ts on lines 147..154

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

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

        [configByChainId[baseChainId].chainName]: {
          address: networkDetails[baseChainId]?.FastBridgeV2.address,
          startBlock: networkDetails[baseChainId]?.FastBridgeV2.startBlock,
        },
Severity: Major
Found in packages/rfq-indexer/indexer/ponder.config.ts and 8 other locations - About 40 mins to fix
packages/rfq-indexer/indexer/ponder.config.ts on lines 208..211
packages/rfq-indexer/indexer/ponder.config.ts on lines 212..215
packages/rfq-indexer/indexer/ponder.config.ts on lines 216..219
packages/rfq-indexer/indexer/ponder.config.ts on lines 224..227
packages/rfq-indexer/indexer/ponder.config.ts on lines 228..231
packages/rfq-indexer/indexer/ponder.config.ts on lines 232..235
packages/rfq-indexer/indexer/ponder.config.ts on lines 236..239
packages/rfq-indexer/indexer/ponder.config.ts on lines 240..244

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

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

        [configByChainId[arbitrumChainId].chainName]: {
          address: networkDetails[arbitrumChainId]?.FastBridgeV2.address,
          startBlock: networkDetails[arbitrumChainId]?.FastBridgeV2.startBlock,
        },
Severity: Major
Found in packages/rfq-indexer/indexer/ponder.config.ts and 8 other locations - About 40 mins to fix
packages/rfq-indexer/indexer/ponder.config.ts on lines 208..211
packages/rfq-indexer/indexer/ponder.config.ts on lines 212..215
packages/rfq-indexer/indexer/ponder.config.ts on lines 220..223
packages/rfq-indexer/indexer/ponder.config.ts on lines 224..227
packages/rfq-indexer/indexer/ponder.config.ts on lines 228..231
packages/rfq-indexer/indexer/ponder.config.ts on lines 232..235
packages/rfq-indexer/indexer/ponder.config.ts on lines 236..239
packages/rfq-indexer/indexer/ponder.config.ts on lines 240..244

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

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

        [configByChainId[scrollChainId].chainName]: {
          address: networkDetails[scrollChainId]?.FastBridgeV2.address,
          startBlock: networkDetails[scrollChainId]?.FastBridgeV2.startBlock,
        },
Severity: Major
Found in packages/rfq-indexer/indexer/ponder.config.ts and 8 other locations - About 40 mins to fix
packages/rfq-indexer/indexer/ponder.config.ts on lines 208..211
packages/rfq-indexer/indexer/ponder.config.ts on lines 212..215
packages/rfq-indexer/indexer/ponder.config.ts on lines 216..219
packages/rfq-indexer/indexer/ponder.config.ts on lines 220..223
packages/rfq-indexer/indexer/ponder.config.ts on lines 224..227
packages/rfq-indexer/indexer/ponder.config.ts on lines 232..235
packages/rfq-indexer/indexer/ponder.config.ts on lines 236..239
packages/rfq-indexer/indexer/ponder.config.ts on lines 240..244

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

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

        [configByChainId[optimismChainId].chainName]: {
          address: networkDetails[optimismChainId]?.FastBridgeV2.address,
          startBlock: networkDetails[optimismChainId]?.FastBridgeV2.startBlock,
        },
Severity: Major
Found in packages/rfq-indexer/indexer/ponder.config.ts and 8 other locations - About 40 mins to fix
packages/rfq-indexer/indexer/ponder.config.ts on lines 208..211
packages/rfq-indexer/indexer/ponder.config.ts on lines 216..219
packages/rfq-indexer/indexer/ponder.config.ts on lines 220..223
packages/rfq-indexer/indexer/ponder.config.ts on lines 224..227
packages/rfq-indexer/indexer/ponder.config.ts on lines 228..231
packages/rfq-indexer/indexer/ponder.config.ts on lines 232..235
packages/rfq-indexer/indexer/ponder.config.ts on lines 236..239
packages/rfq-indexer/indexer/ponder.config.ts on lines 240..244

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

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

        [configByChainId[blastChainId].chainName]: {
          address: networkDetails[blastChainId]?.FastBridgeV2.address,
          startBlock: networkDetails[blastChainId]?.FastBridgeV2.startBlock,
        },
Severity: Major
Found in packages/rfq-indexer/indexer/ponder.config.ts and 8 other locations - About 40 mins to fix
packages/rfq-indexer/indexer/ponder.config.ts on lines 208..211
packages/rfq-indexer/indexer/ponder.config.ts on lines 212..215
packages/rfq-indexer/indexer/ponder.config.ts on lines 216..219
packages/rfq-indexer/indexer/ponder.config.ts on lines 220..223
packages/rfq-indexer/indexer/ponder.config.ts on lines 228..231
packages/rfq-indexer/indexer/ponder.config.ts on lines 232..235
packages/rfq-indexer/indexer/ponder.config.ts on lines 236..239
packages/rfq-indexer/indexer/ponder.config.ts on lines 240..244

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

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

        [configByChainId[lineaChainId].chainName]: {
          address: networkDetails[lineaChainId]?.FastBridgeV2.address,
          startBlock: networkDetails[lineaChainId]?.FastBridgeV2.startBlock,
        },
Severity: Major
Found in packages/rfq-indexer/indexer/ponder.config.ts and 8 other locations - About 40 mins to fix
packages/rfq-indexer/indexer/ponder.config.ts on lines 208..211
packages/rfq-indexer/indexer/ponder.config.ts on lines 212..215
packages/rfq-indexer/indexer/ponder.config.ts on lines 216..219
packages/rfq-indexer/indexer/ponder.config.ts on lines 220..223
packages/rfq-indexer/indexer/ponder.config.ts on lines 224..227
packages/rfq-indexer/indexer/ponder.config.ts on lines 228..231
packages/rfq-indexer/indexer/ponder.config.ts on lines 236..239
packages/rfq-indexer/indexer/ponder.config.ts on lines 240..244

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

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

        [configByChainId[ethereumChainId].chainName]: {
          address: networkDetails[ethereumChainId]?.FastBridgeV2.address,
          startBlock: networkDetails[ethereumChainId]?.FastBridgeV2.startBlock,
        },
Severity: Major
Found in packages/rfq-indexer/indexer/ponder.config.ts and 8 other locations - About 40 mins to fix
packages/rfq-indexer/indexer/ponder.config.ts on lines 212..215
packages/rfq-indexer/indexer/ponder.config.ts on lines 216..219
packages/rfq-indexer/indexer/ponder.config.ts on lines 220..223
packages/rfq-indexer/indexer/ponder.config.ts on lines 224..227
packages/rfq-indexer/indexer/ponder.config.ts on lines 228..231
packages/rfq-indexer/indexer/ponder.config.ts on lines 232..235
packages/rfq-indexer/indexer/ponder.config.ts on lines 236..239
packages/rfq-indexer/indexer/ponder.config.ts on lines 240..244

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

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

        [configByChainId[bnbChainId].chainName]: {
          address: networkDetails[bnbChainId]?.FastBridgeV2.address,
          startBlock: networkDetails[bnbChainId]?.FastBridgeV2.startBlock,
        },
Severity: Major
Found in packages/rfq-indexer/indexer/ponder.config.ts and 8 other locations - About 40 mins to fix
packages/rfq-indexer/indexer/ponder.config.ts on lines 208..211
packages/rfq-indexer/indexer/ponder.config.ts on lines 212..215
packages/rfq-indexer/indexer/ponder.config.ts on lines 216..219
packages/rfq-indexer/indexer/ponder.config.ts on lines 220..223
packages/rfq-indexer/indexer/ponder.config.ts on lines 224..227
packages/rfq-indexer/indexer/ponder.config.ts on lines 228..231
packages/rfq-indexer/indexer/ponder.config.ts on lines 232..235
packages/rfq-indexer/indexer/ponder.config.ts on lines 240..244

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

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

        [configByChainId[worldchainChainId].chainName]: {
          address: networkDetails[worldchainChainId]?.FastBridgeV2.address,
          startBlock:
            networkDetails[worldchainChainId]?.FastBridgeV2.startBlock,
        },
Severity: Major
Found in packages/rfq-indexer/indexer/ponder.config.ts and 8 other locations - About 40 mins to fix
packages/rfq-indexer/indexer/ponder.config.ts on lines 208..211
packages/rfq-indexer/indexer/ponder.config.ts on lines 212..215
packages/rfq-indexer/indexer/ponder.config.ts on lines 216..219
packages/rfq-indexer/indexer/ponder.config.ts on lines 220..223
packages/rfq-indexer/indexer/ponder.config.ts on lines 224..227
packages/rfq-indexer/indexer/ponder.config.ts on lines 228..231
packages/rfq-indexer/indexer/ponder.config.ts on lines 232..235
packages/rfq-indexer/indexer/ponder.config.ts on lines 236..239

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

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

There are no issues that match your filters.

Category
Status