aurelia/aurelia

View on GitHub
packages/__tests__/src/router/instruction-parser.spec.ts

Summary

Maintainability
F
1 wk
Test Coverage

File instruction-parser.spec.ts has 280 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import { IRouter, RouterConfiguration, RoutingInstruction } from '@aurelia/router';
import { CustomElement, Aurelia } from '@aurelia/runtime-html';
import { assert, MockBrowserHistoryLocation, TestContext } from '@aurelia/testing';

describe('router/instruction-parser.spec.ts', function () {
Severity: Minor
Found in packages/__tests__/src/router/instruction-parser.spec.ts - About 2 hrs to fix

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

          { instruction: 'a/b/c/d', parsed: [{ "component": "a", "children": [{ "component": "b", "children": [{ "component": "c", "children": [{ "component": "d" }] }] }] }], clean: 'a/b/c/d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 10 other locations - About 1 hr to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 249..249
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 250..250
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 251..251
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 252..252
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 253..253
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 254..254
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 255..255
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 256..256
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 257..257
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 258..258

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

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

          { instruction: '((a/b)/c)/d', parsed: [{ "component": "a", "children": [{ "component": "b", "children": [{ "component": "c", "children": [{ "component": "d" }] }] }] }], clean: 'a/b/c/d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 10 other locations - About 1 hr to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 248..248
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 249..249
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 250..250
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 251..251
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 252..252
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 253..253
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 255..255
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 256..256
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 257..257
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 258..258

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

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

          { instruction: 'a/((b/c)/d)', parsed: [{ "component": "a", "children": [{ "component": "b", "children": [{ "component": "c", "children": [{ "component": "d" }] }] }] }], clean: 'a/b/c/d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 10 other locations - About 1 hr to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 248..248
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 249..249
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 250..250
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 251..251
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 252..252
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 253..253
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 254..254
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 255..255
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 256..256
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 258..258

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

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

          { instruction: '(a/(b/c))/d', parsed: [{ "component": "a", "children": [{ "component": "b", "children": [{ "component": "c", "children": [{ "component": "d" }] }] }] }], clean: 'a/b/c/d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 10 other locations - About 1 hr to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 248..248
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 249..249
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 250..250
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 251..251
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 252..252
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 253..253
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 254..254
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 256..256
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 257..257
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 258..258

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

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

          { instruction: '(a/b)/c/d', parsed: [{ "component": "a", "children": [{ "component": "b", "children": [{ "component": "c", "children": [{ "component": "d" }] }] }] }], clean: 'a/b/c/d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 10 other locations - About 1 hr to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 248..248
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 250..250
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 251..251
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 252..252
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 253..253
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 254..254
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 255..255
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 256..256
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 257..257
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 258..258

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

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

          { instruction: 'a/b/(c/d)', parsed: [{ "component": "a", "children": [{ "component": "b", "children": [{ "component": "c", "children": [{ "component": "d" }] }] }] }], clean: 'a/b/c/d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 10 other locations - About 1 hr to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 248..248
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 249..249
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 250..250
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 252..252
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 253..253
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 254..254
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 255..255
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 256..256
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 257..257
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 258..258

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

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

          { instruction: '(a/b/c)/d', parsed: [{ "component": "a", "children": [{ "component": "b", "children": [{ "component": "c", "children": [{ "component": "d" }] }] }] }], clean: 'a/b/c/d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 10 other locations - About 1 hr to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 248..248
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 249..249
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 250..250
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 251..251
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 252..252
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 254..254
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 255..255
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 256..256
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 257..257
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 258..258

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

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

          { instruction: 'a/(b/(c/d))', parsed: [{ "component": "a", "children": [{ "component": "b", "children": [{ "component": "c", "children": [{ "component": "d" }] }] }] }], clean: 'a/b/c/d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 10 other locations - About 1 hr to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 248..248
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 249..249
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 250..250
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 251..251
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 252..252
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 253..253
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 254..254
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 255..255
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 256..256
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 257..257

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

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

          { instruction: '(a/b)/(c/d)', parsed: [{ "component": "a", "children": [{ "component": "b", "children": [{ "component": "c", "children": [{ "component": "d" }] }] }] }], clean: 'a/b/c/d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 10 other locations - About 1 hr to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 248..248
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 249..249
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 250..250
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 251..251
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 253..253
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 254..254
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 255..255
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 256..256
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 257..257
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 258..258

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

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

          { instruction: 'a/(b/c)/d', parsed: [{ "component": "a", "children": [{ "component": "b", "children": [{ "component": "c", "children": [{ "component": "d" }] }] }] }], clean: 'a/b/c/d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 10 other locations - About 1 hr to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 248..248
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 249..249
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 251..251
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 252..252
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 253..253
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 254..254
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 255..255
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 256..256
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 257..257
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 258..258

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

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

          { instruction: 'a/(b/c/d)', parsed: [{ "component": "a", "children": [{ "component": "b", "children": [{ "component": "c", "children": [{ "component": "d" }] }] }] }], clean: 'a/b/c/d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 10 other locations - About 1 hr to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 248..248
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 249..249
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 250..250
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 251..251
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 252..252
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 253..253
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 254..254
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 255..255
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 257..257
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 258..258

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

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

          { instruction: '(a+b/c)/d', parsed: [{ "component": "a" }, { "component": "b", "children": [{ "component": "c", "children": [{ "component": "d" }] }] }], clean: 'a+b/c/d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 7 other locations - About 1 hr to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 241..241
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 242..242
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 243..243
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 244..244
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 245..245
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 246..246
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 264..264

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

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

          { instruction: 'a+(b/c/d)', parsed: [{ "component": "a" }, { "component": "b", "children": [{ "component": "c", "children": [{ "component": "d" }] }] }], clean: 'a+b/c/d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 7 other locations - About 1 hr to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 241..241
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 242..242
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 243..243
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 245..245
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 246..246
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 262..262
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 264..264

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

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

          { instruction: 'a+((b/c)/d)', parsed: [{ "component": "a" }, { "component": "b", "children": [{ "component": "c", "children": [{ "component": "d" }] }] }], clean: 'a+b/c/d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 7 other locations - About 1 hr to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 241..241
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 242..242
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 243..243
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 244..244
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 246..246
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 262..262
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 264..264

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

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

          { instruction: '(a+(b/c))/d', parsed: [{ "component": "a" }, { "component": "b", "children": [{ "component": "c", "children": [{ "component": "d" }] }] }], clean: 'a+b/c/d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 7 other locations - About 1 hr to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 241..241
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 242..242
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 243..243
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 244..244
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 245..245
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 246..246
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 262..262

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

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

          { instruction: 'a+(b/c)/d', parsed: [{ "component": "a" }, { "component": "b", "children": [{ "component": "c", "children": [{ "component": "d" }] }] }], clean: 'a+b/c/d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 7 other locations - About 1 hr to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 241..241
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 243..243
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 244..244
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 245..245
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 246..246
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 262..262
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 264..264

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

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

          { instruction: 'a+b/c/d', parsed: [{ "component": "a" }, { "component": "b", "children": [{ "component": "c", "children": [{ "component": "d" }] }] }], clean: 'a+b/c/d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 7 other locations - About 1 hr to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 242..242
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 243..243
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 244..244
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 245..245
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 246..246
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 262..262
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 264..264

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

    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

          { instruction: '(a/b/c)+d', parsed: [{ "component": "a", "children": [{ "component": "b", "children": [{ "component": "c" }] }] }, { "component": "d" }], clean: 'a/b/c+d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 5 other locations - About 1 hr to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 234..234
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 235..235
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 236..236
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 238..238
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 239..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 58.

    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

          { instruction: '(a/(b/c))+d', parsed: [{ "component": "a", "children": [{ "component": "b", "children": [{ "component": "c" }] }] }, { "component": "d" }], clean: 'a/b/c+d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 5 other locations - About 1 hr to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 234..234
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 235..235
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 236..236
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 237..237
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 238..238

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

    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

          { instruction: 'a/(b/c)+d', parsed: [{ "component": "a", "children": [{ "component": "b", "children": [{ "component": "c" }] }] }, { "component": "d" }], clean: 'a/b/c+d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 5 other locations - About 1 hr to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 234..234
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 235..235
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 237..237
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 238..238
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 239..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 58.

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

          { instruction: 'a+b/(c/d)', parsed: [{ "component": "a" }, { "component": "b", "children": [{ "component": "c", "children": [{ "component": "d" }] }] }], clean: 'a+b/c/d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 7 other locations - About 1 hr to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 241..241
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 242..242
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 244..244
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 245..245
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 246..246
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 262..262
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 264..264

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

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

          { instruction: 'a+(b/(c/d))', parsed: [{ "component": "a" }, { "component": "b", "children": [{ "component": "c", "children": [{ "component": "d" }] }] }], clean: 'a+b/c/d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 7 other locations - About 1 hr to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 241..241
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 242..242
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 243..243
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 244..244
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 245..245
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 262..262
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 264..264

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

    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

          { instruction: 'a/b/c+d', parsed: [{ "component": "a", "children": [{ "component": "b", "children": [{ "component": "c" }] }] }, { "component": "d" }], clean: 'a/b/c+d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 5 other locations - About 1 hr to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 235..235
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 236..236
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 237..237
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 238..238
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 239..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 58.

    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

          { instruction: '((a/b)/c)+d', parsed: [{ "component": "a", "children": [{ "component": "b", "children": [{ "component": "c" }] }] }, { "component": "d" }], clean: 'a/b/c+d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 5 other locations - About 1 hr to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 234..234
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 235..235
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 236..236
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 237..237
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 239..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 58.

    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

          { instruction: '(a/b)/c+d', parsed: [{ "component": "a", "children": [{ "component": "b", "children": [{ "component": "c" }] }] }, { "component": "d" }], clean: 'a/b/c+d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 5 other locations - About 1 hr to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 234..234
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 236..236
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 237..237
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 238..238
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 239..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 58.

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

          { instruction: '(a/b)+c/d', parsed: [{ "component": "a", "children": [{ "component": "b" }] }, { "component": "c", "children": [{ "component": "d" }] }], clean: 'a/b+c/d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 3 other locations - About 1 hr to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 229..229
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 231..231
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 232..232

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

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

          { instruction: 'a/b+c/d', parsed: [{ "component": "a", "children": [{ "component": "b" }] }, { "component": "c", "children": [{ "component": "d" }] }], clean: 'a/b+c/d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 3 other locations - About 1 hr to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 230..230
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 231..231
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 232..232

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

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

          { instruction: '(a/b)+(c/d)', parsed: [{ "component": "a", "children": [{ "component": "b" }] }, { "component": "c", "children": [{ "component": "d" }] }], clean: 'a/b+c/d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 3 other locations - About 1 hr to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 229..229
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 230..230
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 231..231

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

    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

          { instruction: '(a/b)/(c+d)', parsed: [{ "component": "a", "children": [{ "component": "b", "children": [{ "component": "c" }, { "component": "d" }] }] }], clean: 'a/b/(c+d)' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 2 other locations - About 1 hr to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 274..274
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 278..278

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

    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

          { instruction: 'a/(b/(c+d))', parsed: [{ "component": "a", "children": [{ "component": "b", "children": [{ "component": "c" }, { "component": "d" }] }] }], clean: 'a/b/(c+d)' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 2 other locations - About 1 hr to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 274..274
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 275..275

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

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

          { instruction: 'a/b+(c/d)', parsed: [{ "component": "a", "children": [{ "component": "b" }] }, { "component": "c", "children": [{ "component": "d" }] }], clean: 'a/b+c/d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 3 other locations - About 1 hr to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 229..229
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 230..230
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 232..232

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

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

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

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

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

    Refactorings

    Further Reading

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

          { instruction: 'a/(b+c/d)', parsed: [{ "component": "a", "children": [{ "component": "b" }, { "component": "c", "children": [{ "component": "d" }] }] }], clean: 'a/(b+c/d)' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 1 other location - About 1 hr to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 272..272

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

    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

          { instruction: 'a/b/(c+d)', parsed: [{ "component": "a", "children": [{ "component": "b", "children": [{ "component": "c" }, { "component": "d" }] }] }], clean: 'a/b/(c+d)' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 2 other locations - About 1 hr to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 275..275
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 278..278

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

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

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

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

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

    Refactorings

    Further Reading

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

          { instruction: 'a/(b/c+d)', parsed: [{ "component": "a", "children": [{ "component": "b", "children": [{ "component": "c" }] }, { "component": "d" }] }], clean: 'a/(b/c+d)' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 1 other location - About 1 hr to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 277..277

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

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

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

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

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

    Refactorings

    Further Reading

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

          { instruction: 'a/(b+(c/d))', parsed: [{ "component": "a", "children": [{ "component": "b" }, { "component": "c", "children": [{ "component": "d" }] }] }], clean: 'a/(b+c/d)' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 1 other location - About 1 hr to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 270..270

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

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

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

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

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

    Refactorings

    Further Reading

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

          { instruction: 'a/((b/c)+d)', parsed: [{ "component": "a", "children": [{ "component": "b", "children": [{ "component": "c" }] }, { "component": "d" }] }], clean: 'a/(b/c+d)' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 1 other location - About 1 hr to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 276..276

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

    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

            case 'error:children':
              errMsg = 'Error: Instruction parser error: Children below scope';
              assert.equal(error.toString().slice(0, errMsg.length), errMsg, `error:scopes:${msg}`);
              break;
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 2 other locations - About 55 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 294..297
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 298..301

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

    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

            case 'error:siblings':
              errMsg = 'Error: Instruction parser error: Unnecessary siblings separator';
              assert.equal(error.toString().slice(0, errMsg.length), errMsg, `error:siblings:${msg}`);
              break;
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 2 other locations - About 55 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 298..301
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 302..305

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

    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

            case 'error:scopes':
              errMsg = 'Error: Instruction parser error: Unnecessary scopes';
              assert.equal(error.toString().slice(0, errMsg.length), errMsg, `error:scopes:${msg}`);
              break;
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 2 other locations - About 55 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 294..297
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 302..305

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

    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

          { instruction: 'a/b+c+d', parsed: [{ "component": "a", "children": [{ "component": "b" }] }, { "component": "c" }, { "component": "d" }], clean: 'a/b+c+d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 5 other locations - About 50 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 201..201
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 203..203
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 204..204
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 205..205
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 206..206

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

    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

          { instruction: '((a/b)+c)+d', parsed: [{ "component": "a", "children": [{ "component": "b" }] }, { "component": "c" }, { "component": "d" }], clean: 'a/b+c+d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 5 other locations - About 50 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 200..200
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 201..201
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 203..203
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 204..204
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 205..205

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

    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

          { instruction: '(a/b)+(c+d)', parsed: [{ "component": "a", "children": [{ "component": "b" }] }, { "component": "c" }, { "component": "d" }], clean: 'a/b+c+d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 5 other locations - About 50 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 200..200
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 201..201
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 203..203
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 205..205
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 206..206

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

    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

          { instruction: 'a+(b/c)+d', parsed: [{ "component": "a" }, { "component": "b", "children": [{ "component": "c" }] }, { "component": "d" }], clean: 'a+b/c+d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 5 other locations - About 50 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 209..209
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 213..213
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 215..215
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 216..216
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 217..217

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

    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

          { instruction: 'a+(b+c/d)', parsed: [{ "component": "a" }, { "component": "b" }, { "component": "c", "children": [{ "component": "d" }] }], clean: 'a+b+c/d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 5 other locations - About 50 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 220..220
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 221..221
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 223..223
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 224..224
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 227..227

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

    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

          { instruction: '(a/b)+c+d', parsed: [{ "component": "a", "children": [{ "component": "b" }] }, { "component": "c" }, { "component": "d" }], clean: 'a/b+c+d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 5 other locations - About 50 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 200..200
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 203..203
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 204..204
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 205..205
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 206..206

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

    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

          { instruction: 'a+(b+(c/d))', parsed: [{ "component": "a" }, { "component": "b" }, { "component": "c", "children": [{ "component": "d" }] }], clean: 'a+b+c/d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 5 other locations - About 50 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 220..220
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 221..221
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 223..223
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 224..224
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 225..225

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

    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

          { instruction: 'a+b+(c/d)', parsed: [{ "component": "a" }, { "component": "b" }, { "component": "c", "children": [{ "component": "d" }] }], clean: 'a+b+c/d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 5 other locations - About 50 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 220..220
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 221..221
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 224..224
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 225..225
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 227..227

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

    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

          { instruction: 'a+b/c+d', parsed: [{ "component": "a" }, { "component": "b", "children": [{ "component": "c" }] }, { "component": "d" }], clean: 'a+b/c+d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 5 other locations - About 50 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 211..211
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 213..213
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 215..215
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 216..216
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 217..217

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

    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

          { instruction: '(a+b)+(c/d)', parsed: [{ "component": "a" }, { "component": "b" }, { "component": "c", "children": [{ "component": "d" }] }], clean: 'a+b+c/d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 5 other locations - About 50 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 220..220
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 221..221
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 223..223
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 225..225
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 227..227

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

    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

          { instruction: 'a+(b/c+d)', parsed: [{ "component": "a" }, { "component": "b", "children": [{ "component": "c" }] }, { "component": "d" }], clean: 'a+b/c+d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 5 other locations - About 50 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 209..209
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 211..211
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 213..213
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 215..215
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 217..217

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

    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

          { instruction: '(a+b)+c/d', parsed: [{ "component": "a" }, { "component": "b" }, { "component": "c", "children": [{ "component": "d" }] }], clean: 'a+b+c/d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 5 other locations - About 50 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 220..220
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 223..223
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 224..224
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 225..225
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 227..227

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

    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

          { instruction: 'a/b+(c+d)', parsed: [{ "component": "a", "children": [{ "component": "b" }] }, { "component": "c" }, { "component": "d" }], clean: 'a/b+c+d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 5 other locations - About 50 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 200..200
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 201..201
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 204..204
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 205..205
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 206..206

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

    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

          { instruction: '(a/b+c)+d', parsed: [{ "component": "a", "children": [{ "component": "b" }] }, { "component": "c" }, { "component": "d" }], clean: 'a/b+c+d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 5 other locations - About 50 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 200..200
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 201..201
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 203..203
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 204..204
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 206..206

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

    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

          { instruction: '(a+(b/c))+d', parsed: [{ "component": "a" }, { "component": "b", "children": [{ "component": "c" }] }, { "component": "d" }], clean: 'a+b/c+d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 5 other locations - About 50 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 209..209
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 211..211
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 213..213
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 216..216
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 217..217

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

    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

          { instruction: '(a+b/c)+d', parsed: [{ "component": "a" }, { "component": "b", "children": [{ "component": "c" }] }, { "component": "d" }], clean: 'a+b/c+d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 5 other locations - About 50 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 209..209
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 211..211
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 215..215
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 216..216
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 217..217

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

    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

          { instruction: 'a+((b/c)+d)', parsed: [{ "component": "a" }, { "component": "b", "children": [{ "component": "c" }] }, { "component": "d" }], clean: 'a+b/c+d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 5 other locations - About 50 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 209..209
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 211..211
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 213..213
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 215..215
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 216..216

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

    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

          { instruction: 'a+b+c/d', parsed: [{ "component": "a" }, { "component": "b" }, { "component": "c", "children": [{ "component": "d" }] }], clean: 'a+b+c/d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 5 other locations - About 50 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 221..221
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 223..223
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 224..224
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 225..225
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 227..227

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

    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

          { instruction: 'a/(b+c+d)', parsed: [{ "component": "a", "children": [{ "component": "b" }, { "component": "c" }, { "component": "d" }] }], clean: 'a/(b+c+d)' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 2 other locations - About 50 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 287..287
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 288..288

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

    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

          { instruction: 'a/(b+(c+d))', parsed: [{ "component": "a", "children": [{ "component": "b" }, { "component": "c" }, { "component": "d" }] }], clean: 'a/(b+c+d)' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 2 other locations - About 50 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 286..286
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 287..287

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

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

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

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

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

    Refactorings

    Further Reading

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

          { instruction: 'a+b/(c+d)', parsed: [{ "component": "a" }, { "component": "b", "children": [{ "component": "c" }, { "component": "d" }] }], clean: 'a+b/(c+d)' },
    Severity: Minor
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 1 other location - About 50 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 218..218

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

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

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

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

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

    Refactorings

    Further Reading

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

          { instruction: '(a/(b+c))+d', parsed: [{ "component": "a", "children": [{ "component": "b" }, { "component": "c" }] }, { "component": "d" }], clean: 'a/(b+c)+d' },
    Severity: Minor
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 1 other location - About 50 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 202..202

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

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

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

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

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

    Refactorings

    Further Reading

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

          { instruction: 'a/(b+c)+d', parsed: [{ "component": "a", "children": [{ "component": "b" }, { "component": "c" }] }, { "component": "d" }], clean: 'a/(b+c)+d' },
    Severity: Minor
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 1 other location - About 50 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 207..207

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

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

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

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

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

    Refactorings

    Further Reading

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

          { instruction: 'a+(b/(c+d))', parsed: [{ "component": "a" }, { "component": "b", "children": [{ "component": "c" }, { "component": "d" }] }], clean: 'a+b/(c+d)' },
    Severity: Minor
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 1 other location - About 50 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 212..212

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

    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

          { instruction: 'a/((b+c)+d)', parsed: [{ "component": "a", "children": [{ "component": "b" }, { "component": "c" }, { "component": "d" }] }], clean: 'a/(b+c+d)' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 2 other locations - About 50 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 286..286
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 288..288

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

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

          { instruction: 'b/c/d', parsed: [{ "component": "b", "children": [{ "component": "c", "children": [{ "component": "d" }] }] }], clean: 'b/c/d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 13 other locations - About 50 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 142..142
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 143..143
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 148..148
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 149..149
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 151..151
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 155..155
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 157..157
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 176..176
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 177..177
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 179..179
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 182..182
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 183..183
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 185..185

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

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

          { instruction: '((b/c)/d)', parsed: [{ "component": "b", "children": [{ "component": "c", "children": [{ "component": "d" }] }] }], clean: 'b/c/d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 13 other locations - About 50 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 142..142
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 143..143
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 148..148
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 149..149
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 151..151
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 154..154
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 155..155
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 157..157
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 176..176
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 177..177
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 179..179
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 182..182
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 183..183

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

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

          { instruction: '(a/(b/c))', parsed: [{ "component": "a", "children": [{ "component": "b", "children": [{ "component": "c" }] }] }], clean: 'a/b/c' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 13 other locations - About 50 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 142..142
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 143..143
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 148..148
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 149..149
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 151..151
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 154..154
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 155..155
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 157..157
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 176..176
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 179..179
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 182..182
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 183..183
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 185..185

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

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

          { instruction: '((a/b)/c)', parsed: [{ "component": "a", "children": [{ "component": "b", "children": [{ "component": "c" }] }] }], clean: 'a/b/c' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 13 other locations - About 50 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 142..142
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 143..143
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 148..148
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 149..149
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 151..151
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 154..154
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 155..155
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 157..157
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 176..176
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 177..177
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 182..182
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 183..183
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 185..185

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

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

          { instruction: '(b/c)/d', parsed: [{ "component": "b", "children": [{ "component": "c", "children": [{ "component": "d" }] }] }], clean: 'b/c/d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 13 other locations - About 50 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 142..142
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 143..143
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 148..148
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 149..149
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 151..151
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 154..154
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 155..155
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 176..176
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 177..177
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 179..179
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 182..182
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 183..183
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 185..185

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

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

          { instruction: '+a/b/c', parsed: [{ "component": "a", "children": [{ "component": "b", "children": [{ "component": "c" }] }] }], clean: 'error:siblings' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 13 other locations - About 50 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 142..142
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 143..143
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 149..149
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 151..151
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 154..154
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 155..155
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 157..157
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 176..176
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 177..177
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 179..179
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 182..182
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 183..183
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 185..185

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

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

          { instruction: 'b/(c/d)', parsed: [{ "component": "b", "children": [{ "component": "c", "children": [{ "component": "d" }] }] }], clean: 'b/c/d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 13 other locations - About 50 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 142..142
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 143..143
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 148..148
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 149..149
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 151..151
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 154..154
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 157..157
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 176..176
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 177..177
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 179..179
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 182..182
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 183..183
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 185..185

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

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

          { instruction: 'a/b/c', parsed: [{ "component": "a", "children": [{ "component": "b", "children": [{ "component": "c" }] }] }], clean: 'a/b/c' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 13 other locations - About 50 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 143..143
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 148..148
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 149..149
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 151..151
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 154..154
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 155..155
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 157..157
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 176..176
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 177..177
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 179..179
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 182..182
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 183..183
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 185..185

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

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

          { instruction: '(a/b/c)', parsed: [{ "component": "a", "children": [{ "component": "b", "children": [{ "component": "c" }] }] }], clean: 'a/b/c' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 13 other locations - About 50 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 142..142
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 143..143
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 148..148
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 149..149
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 151..151
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 154..154
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 155..155
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 157..157
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 177..177
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 179..179
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 182..182
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 183..183
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 185..185

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

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

          { instruction: '(b/c/d)', parsed: [{ "component": "b", "children": [{ "component": "c", "children": [{ "component": "d" }] }] }], clean: 'b/c/d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 13 other locations - About 50 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 142..142
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 143..143
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 148..148
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 149..149
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 151..151
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 154..154
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 155..155
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 157..157
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 176..176
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 177..177
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 179..179
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 183..183
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 185..185

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

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

          { instruction: 'a/(b/c)', parsed: [{ "component": "a", "children": [{ "component": "b", "children": [{ "component": "c" }] }] }], clean: 'a/b/c' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 13 other locations - About 50 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 142..142
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 148..148
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 149..149
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 151..151
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 154..154
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 155..155
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 157..157
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 176..176
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 177..177
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 179..179
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 182..182
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 183..183
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 185..185

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

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

          { instruction: '+a/(b/c)', parsed: [{ "component": "a", "children": [{ "component": "b", "children": [{ "component": "c" }] }] }], clean: 'error:siblings' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 13 other locations - About 50 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 142..142
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 143..143
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 148..148
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 151..151
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 154..154
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 155..155
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 157..157
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 176..176
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 177..177
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 179..179
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 182..182
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 183..183
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 185..185

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

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

          { instruction: '+(a/b)/c', parsed: [{ "component": "a", "children": [{ "component": "b", "children": [{ "component": "c" }] }] }], clean: 'error:siblings' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 13 other locations - About 50 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 142..142
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 143..143
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 148..148
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 149..149
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 154..154
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 155..155
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 157..157
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 176..176
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 177..177
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 179..179
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 182..182
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 183..183
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 185..185

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

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

          { instruction: '(b/(c/d))', parsed: [{ "component": "b", "children": [{ "component": "c", "children": [{ "component": "d" }] }] }], clean: 'b/c/d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 13 other locations - About 50 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 142..142
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 143..143
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 148..148
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 149..149
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 151..151
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 154..154
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 155..155
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 157..157
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 176..176
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 177..177
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 179..179
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 182..182
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 185..185

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

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

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

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

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

    Refactorings

    Further Reading

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

        const au = ctx.wnd['au'] = new Aurelia(container)
          .register(RouterConfiguration)
          .app({ host: host, component: App });
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 2 other locations - About 45 mins to fix
    packages/__tests__/src/router/router.local-deps.spec.ts on lines 19..21
    packages/__tests__/src/router/routing-instruction.spec.ts on lines 28..30

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 50.

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

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

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

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

    Refactorings

    Further Reading

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

        async function tearDown() {
          await au.stop(true);
          ctx.doc.body.removeChild(host);
    
          au.dispose();
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 3 other locations - About 45 mins to fix
    packages/__tests__/src/router/configuration.spec.ts on lines 33..38
    packages/__tests__/src/router/router.local-deps.spec.ts on lines 31..36
    packages/__tests__/src/router/routing-instruction.spec.ts on lines 40..45

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 50.

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

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

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

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

    Refactorings

    Further Reading

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

          { instruction: 'a+(b+c+d)', parsed: [{ "component": "a" }, { "component": "b" }, { "component": "c" }, { "component": "d" }], clean: 'a+b+c+d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 10 other locations - About 35 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 188..188
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 189..189
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 190..190
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 191..191
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 192..192
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 193..193
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 194..194
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 195..195
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 197..197
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 198..198

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

          { instruction: 'a+((b+c)+d)', parsed: [{ "component": "a" }, { "component": "b" }, { "component": "c" }, { "component": "d" }], clean: 'a+b+c+d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 10 other locations - About 35 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 188..188
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 189..189
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 190..190
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 191..191
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 192..192
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 193..193
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 194..194
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 195..195
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 196..196
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 198..198

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

          { instruction: 'a+b+c+d', parsed: [{ "component": "a" }, { "component": "b" }, { "component": "c" }, { "component": "d" }], clean: 'a+b+c+d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 10 other locations - About 35 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 189..189
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 190..190
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 191..191
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 192..192
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 193..193
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 194..194
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 195..195
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 196..196
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 197..197
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 198..198

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

          { instruction: '(a+(b+c))+d', parsed: [{ "component": "a" }, { "component": "b" }, { "component": "c" }, { "component": "d" }], clean: 'a+b+c+d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 10 other locations - About 35 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 188..188
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 189..189
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 190..190
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 191..191
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 192..192
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 193..193
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 194..194
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 196..196
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 197..197
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 198..198

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

          { instruction: '(a+b+c)+d', parsed: [{ "component": "a" }, { "component": "b" }, { "component": "c" }, { "component": "d" }], clean: 'a+b+c+d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 10 other locations - About 35 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 188..188
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 189..189
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 190..190
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 191..191
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 192..192
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 194..194
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 195..195
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 196..196
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 197..197
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 198..198

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

          { instruction: '((a+b)+c)+d', parsed: [{ "component": "a" }, { "component": "b" }, { "component": "c" }, { "component": "d" }], clean: 'a+b+c+d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 10 other locations - About 35 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 188..188
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 189..189
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 190..190
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 191..191
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 192..192
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 193..193
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 195..195
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 196..196
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 197..197
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 198..198

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

          { instruction: '(a+b)+c+d', parsed: [{ "component": "a" }, { "component": "b" }, { "component": "c" }, { "component": "d" }], clean: 'a+b+c+d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 10 other locations - About 35 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 188..188
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 190..190
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 191..191
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 192..192
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 193..193
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 194..194
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 195..195
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 196..196
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 197..197
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 198..198

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

          { instruction: '(a+b)+(c+d)', parsed: [{ "component": "a" }, { "component": "b" }, { "component": "c" }, { "component": "d" }], clean: 'a+b+c+d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 10 other locations - About 35 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 188..188
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 189..189
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 190..190
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 191..191
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 193..193
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 194..194
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 195..195
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 196..196
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 197..197
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 198..198

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

          { instruction: 'a+(b+(c+d))', parsed: [{ "component": "a" }, { "component": "b" }, { "component": "c" }, { "component": "d" }], clean: 'a+b+c+d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 10 other locations - About 35 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 188..188
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 189..189
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 190..190
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 191..191
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 192..192
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 193..193
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 194..194
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 195..195
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 196..196
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 197..197

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

          { instruction: 'a+(b+c)+d', parsed: [{ "component": "a" }, { "component": "b" }, { "component": "c" }, { "component": "d" }], clean: 'a+b+c+d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 10 other locations - About 35 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 188..188
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 189..189
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 191..191
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 192..192
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 193..193
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 194..194
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 195..195
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 196..196
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 197..197
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 198..198

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

          { instruction: 'a+b+(c+d)', parsed: [{ "component": "a" }, { "component": "b" }, { "component": "c" }, { "component": "d" }], clean: 'a+b+c+d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 10 other locations - About 35 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 188..188
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 189..189
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 190..190
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 192..192
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 193..193
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 194..194
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 195..195
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 196..196
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 197..197
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 198..198

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

          { instruction: '(a+b)/c', parsed: [{ "component": "a" }, { "component": "b", "children": [{ "component": "c" }] }], clean: 'error:children' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 11 other locations - About 30 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 123..123
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 124..124
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 131..131
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 132..132
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 139..139
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 140..140
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 152..152
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 165..165
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 166..166
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 173..173
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 174..174

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

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

          { instruction: '+a+b/c', parsed: [{ "component": "a" }, { "component": "b", "children": [{ "component": "c" }] }], clean: 'error:siblings' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 11 other locations - About 30 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 123..123
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 124..124
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 132..132
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 139..139
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 140..140
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 146..146
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 152..152
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 165..165
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 166..166
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 173..173
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 174..174

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

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

          { instruction: 'b+c/d', parsed: [{ "component": "b" }, { "component": "c", "children": [{ "component": "d" }] }], clean: 'b+c/d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 11 other locations - About 30 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 123..123
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 124..124
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 131..131
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 132..132
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 140..140
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 146..146
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 152..152
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 165..165
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 166..166
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 173..173
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 174..174

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

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

          { instruction: 'a+b/c', parsed: [{ "component": "a" }, { "component": "b", "children": [{ "component": "c" }] }], clean: 'a+b/c' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 11 other locations - About 30 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 124..124
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 131..131
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 132..132
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 139..139
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 140..140
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 146..146
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 152..152
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 165..165
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 166..166
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 173..173
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 174..174

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

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

          { instruction: 'b+(c/d)', parsed: [{ "component": "b" }, { "component": "c", "children": [{ "component": "d" }] }], clean: 'b+c/d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 11 other locations - About 30 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 123..123
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 124..124
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 131..131
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 132..132
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 139..139
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 146..146
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 152..152
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 165..165
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 166..166
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 173..173
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 174..174

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

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

          { instruction: '(a+(b/c))', parsed: [{ "component": "a" }, { "component": "b", "children": [{ "component": "c" }] }], clean: 'a+b/c' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 11 other locations - About 30 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 123..123
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 124..124
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 131..131
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 132..132
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 139..139
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 140..140
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 146..146
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 152..152
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 165..165
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 173..173
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 174..174

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

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

          { instruction: 'a+(b/c)', parsed: [{ "component": "a" }, { "component": "b", "children": [{ "component": "c" }] }], clean: 'a+b/c' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 11 other locations - About 30 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 123..123
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 131..131
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 132..132
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 139..139
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 140..140
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 146..146
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 152..152
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 165..165
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 166..166
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 173..173
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 174..174

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

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

          { instruction: '(a+b/c)', parsed: [{ "component": "a" }, { "component": "b", "children": [{ "component": "c" }] }], clean: 'a+b/c' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 11 other locations - About 30 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 123..123
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 124..124
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 131..131
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 132..132
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 139..139
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 140..140
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 146..146
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 152..152
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 166..166
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 173..173
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 174..174

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

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

          { instruction: '+a+(b/c)', parsed: [{ "component": "a" }, { "component": "b", "children": [{ "component": "c" }] }], clean: 'error:siblings' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 11 other locations - About 30 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 123..123
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 124..124
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 131..131
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 139..139
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 140..140
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 146..146
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 152..152
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 165..165
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 166..166
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 173..173
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 174..174

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

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

          { instruction: '+(a+b)/c', parsed: [{ "component": "a" }, { "component": "b", "children": [{ "component": "c" }] }], clean: 'error:siblings' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 11 other locations - About 30 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 123..123
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 124..124
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 131..131
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 132..132
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 139..139
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 140..140
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 146..146
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 165..165
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 166..166
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 173..173
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 174..174

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

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

          { instruction: '+(a/b)+c', parsed: [{ "component": "a", "children": [{ "component": "b" }] }, { "component": "c" }], clean: 'error:siblings' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 9 other locations - About 30 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 121..121
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 122..122
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 129..129
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 137..137
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 138..138
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 163..163
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 164..164
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 171..171
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 172..172

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

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

          { instruction: '(b/c)+d', parsed: [{ "component": "b", "children": [{ "component": "c" }] }, { "component": "d" }], clean: 'b/c+d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 9 other locations - About 30 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 121..121
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 122..122
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 129..129
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 130..130
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 137..137
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 163..163
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 164..164
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 171..171
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 172..172

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

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

          { instruction: '+a/b+c', parsed: [{ "component": "a", "children": [{ "component": "b" }] }, { "component": "c" }], clean: 'error:siblings' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 9 other locations - About 30 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 121..121
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 122..122
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 130..130
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 137..137
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 138..138
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 163..163
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 164..164
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 171..171
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 172..172

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

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

          { instruction: '((b/c)+d)', parsed: [{ "component": "b", "children": [{ "component": "c" }] }, { "component": "d" }], clean: 'b/c+d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 9 other locations - About 30 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 121..121
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 122..122
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 129..129
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 130..130
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 137..137
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 138..138
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 163..163
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 164..164
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 171..171

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

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

          { instruction: '(b+(c/d))', parsed: [{ "component": "b" }, { "component": "c", "children": [{ "component": "d" }] }], clean: 'b+c/d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 11 other locations - About 30 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 123..123
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 124..124
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 131..131
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 132..132
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 139..139
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 140..140
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 146..146
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 152..152
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 165..165
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 166..166
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 173..173

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

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

          { instruction: 'a/b+c', parsed: [{ "component": "a", "children": [{ "component": "b" }] }, { "component": "c" }], clean: 'a/b+c' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 9 other locations - About 30 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 122..122
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 129..129
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 130..130
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 137..137
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 138..138
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 163..163
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 164..164
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 171..171
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 172..172

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

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

          { instruction: '(b+c/d)', parsed: [{ "component": "b" }, { "component": "c", "children": [{ "component": "d" }] }], clean: 'b+c/d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 11 other locations - About 30 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 123..123
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 124..124
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 131..131
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 132..132
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 139..139
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 140..140
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 146..146
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 152..152
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 165..165
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 166..166
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 174..174

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

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

          { instruction: '((a/b)+c)', parsed: [{ "component": "a", "children": [{ "component": "b" }] }, { "component": "c" }], clean: 'a/b+c' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 9 other locations - About 30 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 121..121
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 122..122
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 129..129
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 130..130
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 137..137
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 138..138
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 163..163
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 171..171
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 172..172

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

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

          { instruction: '(a/b+c)', parsed: [{ "component": "a", "children": [{ "component": "b" }] }, { "component": "c" }], clean: 'a/b+c' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 9 other locations - About 30 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 121..121
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 122..122
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 129..129
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 130..130
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 137..137
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 138..138
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 164..164
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 171..171
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 172..172

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

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

          { instruction: '(b/c+d)', parsed: [{ "component": "b", "children": [{ "component": "c" }] }, { "component": "d" }], clean: 'b/c+d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 9 other locations - About 30 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 121..121
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 122..122
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 129..129
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 130..130
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 137..137
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 138..138
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 163..163
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 164..164
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 172..172

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

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

          { instruction: 'b/c+d', parsed: [{ "component": "b", "children": [{ "component": "c" }] }, { "component": "d" }], clean: 'b/c+d' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 9 other locations - About 30 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 121..121
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 122..122
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 129..129
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 130..130
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 138..138
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 163..163
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 164..164
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 171..171
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 172..172

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

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

          { instruction: '(a/b)+c', parsed: [{ "component": "a", "children": [{ "component": "b" }] }, { "component": "c" }], clean: 'a/b+c' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 9 other locations - About 30 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 121..121
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 129..129
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 130..130
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 137..137
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 138..138
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 163..163
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 164..164
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 171..171
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 172..172

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

    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

          { instruction: '(a/(b+c))', parsed: [{ "component": "a", "children": [{ "component": "b" }, { "component": "c" }] }], clean: 'a/(b+c)' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 4 other locations - About 30 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 144..144
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 150..150
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 156..156
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 184..184

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

    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

          { instruction: '+a/(b+c)', parsed: [{ "component": "a", "children": [{ "component": "b" }, { "component": "c" }] }], clean: 'error:siblings' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 4 other locations - About 30 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 144..144
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 156..156
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 178..178
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 184..184

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

    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

          { instruction: 'b/(c+d)', parsed: [{ "component": "b", "children": [{ "component": "c" }, { "component": "d" }] }], clean: 'b/(c+d)' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 4 other locations - About 30 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 144..144
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 150..150
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 178..178
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 184..184

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

    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

          { instruction: '(b/(c+d))', parsed: [{ "component": "b", "children": [{ "component": "c" }, { "component": "d" }] }], clean: 'b/(c+d)' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 4 other locations - About 30 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 144..144
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 150..150
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 156..156
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 178..178

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

    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

          { instruction: 'a/(b+c)', parsed: [{ "component": "a", "children": [{ "component": "b" }, { "component": "c" }] }], clean: 'a/(b+c)' },
    Severity: Major
    Found in packages/__tests__/src/router/instruction-parser.spec.ts and 4 other locations - About 30 mins to fix
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 150..150
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 156..156
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 178..178
    packages/__tests__/src/router/instruction-parser.spec.ts on lines 184..184

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

    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