synapsecns/sanguine

View on GitHub
packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts

Summary

Maintainability
F
1 wk
Test Coverage

File mockRoutes.ts has 3429 lines of code (exceeds 250 allowed). Consider refactoring.
Open

export const mockRoutes = {
  'AVAX-1284': [
    'AVAX-8217',
    'WAVAX-43114',
    'AVAX-43114',
Severity: Major
Found in packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts - About 1 wk to fix

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

      'DAI-1': [
        'USDC-10',
        'nUSD-10',
        'USDC.e-10',
        'USDC.e-10',
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 1105..1169
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 1803..1867

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

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

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

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

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

    Refactorings

    Further Reading

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

      'USDC-1': [
        'USDC-10',
        'nUSD-10',
        'USDC.e-10',
        'USDC.e-10',
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 85..149
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 1803..1867

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

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

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

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

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

    Refactorings

    Further Reading

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

      'USDT-1': [
        'USDC-10',
        'nUSD-10',
        'USDC.e-10',
        'USDC.e-10',
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 85..149
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 1105..1169

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

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

      'DAI-10': [
        'nUSD-1',
        'DAI-1',
        'DAI-1',
        'USDC-1',
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 1170..1228
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 1593..1651
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 1868..1926
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 3332..3390

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

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

      'USDC-10': [
        'nUSD-1',
        'DAI-1',
        'DAI-1',
        'USDC-1',
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 150..208
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 1593..1651
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 1868..1926
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 3332..3390

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

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

      'USDT-10': [
        'nUSD-1',
        'DAI-1',
        'DAI-1',
        'USDC-1',
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 150..208
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 1170..1228
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 1593..1651
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 3332..3390

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

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

      'sUSD-10': [
        'nUSD-1',
        'DAI-1',
        'DAI-1',
        'USDC-1',
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 150..208
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 1170..1228
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 1593..1651
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 1868..1926

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

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

      'USDC.e-10': [
        'nUSD-1',
        'DAI-1',
        'DAI-1',
        'USDC-1',
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 150..208
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 1170..1228
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 1868..1926
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 3332..3390

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

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

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

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

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

    Refactorings

    Further Reading

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

      'FRAX-42161': [
        'nUSD-1',
        'DAI-1',
        'DAI-1',
        'USDC-1',
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 307..363
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 1440..1496
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 1652..1708
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 2077..2133
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 3141..3197

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

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

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

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

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

    Refactorings

    Further Reading

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

      'nUSD-42161': [
        'nUSD-1',
        'DAI-1',
        'DAI-1',
        'USDC-1',
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 307..363
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 565..621
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 1440..1496
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 1652..1708
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 2077..2133

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

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

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

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

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

    Refactorings

    Further Reading

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

      'DAI-42161': [
        'nUSD-1',
        'DAI-1',
        'DAI-1',
        'USDC-1',
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 565..621
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 1440..1496
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 1652..1708
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 2077..2133
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 3141..3197

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

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

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

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

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

    Refactorings

    Further Reading

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

      'USDC-42161': [
        'nUSD-1',
        'DAI-1',
        'DAI-1',
        'USDC-1',
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 307..363
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 565..621
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 1652..1708
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 2077..2133
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 3141..3197

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

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

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

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

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

    Refactorings

    Further Reading

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

      'USDC.e-42161': [
        'nUSD-1',
        'DAI-1',
        'DAI-1',
        'USDC-1',
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 307..363
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 565..621
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 1440..1496
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 2077..2133
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 3141..3197

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

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

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

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

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

    Refactorings

    Further Reading

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

      'USDT-42161': [
        'nUSD-1',
        'DAI-1',
        'DAI-1',
        'USDC-1',
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 307..363
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 565..621
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 1440..1496
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 1652..1708
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 3141..3197

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

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

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

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

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

    Refactorings

    Further Reading

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

      'USDT-43114': [
        'nUSD-1',
        'DAI-1',
        'DAI-1',
        'USDC-1',
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 364..419
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 1497..1552
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 1709..1764
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 2190..2245
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 3198..3253

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

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

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

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

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

    Refactorings

    Further Reading

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

      'USDC.e-43114': [
        'nUSD-1',
        'DAI-1',
        'DAI-1',
        'USDC-1',
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 364..419
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 1497..1552
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 2134..2189
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 2190..2245
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 3198..3253

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

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

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

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

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

    Refactorings

    Further Reading

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

      'nUSD-43114': [
        'nUSD-1',
        'DAI-1',
        'DAI-1',
        'USDC-1',
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 364..419
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 1497..1552
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 1709..1764
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 2134..2189
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 2190..2245

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

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

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

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

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

    Refactorings

    Further Reading

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

      'DAI.e-43114': [
        'nUSD-1',
        'DAI-1',
        'DAI-1',
        'USDC-1',
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 1497..1552
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 1709..1764
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 2134..2189
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 2190..2245
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 3198..3253

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

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

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

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

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

    Refactorings

    Further Reading

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

      'USDC-43114': [
        'nUSD-1',
        'DAI-1',
        'DAI-1',
        'USDC-1',
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 364..419
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 1709..1764
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 2134..2189
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 2190..2245
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 3198..3253

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

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

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

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

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

    Refactorings

    Further Reading

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

      'USDT.e-43114': [
        'nUSD-1',
        'DAI-1',
        'DAI-1',
        'USDC-1',
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 364..419
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 1497..1552
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 1709..1764
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 2134..2189
    packages/synapse-interface/__tests__/__fixtures__/mockRoutes.ts on lines 3198..3253

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

    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