FarmBot/Farmbot-Web-App

View on GitHub
frontend/route_config.tsx

Summary

Maintainability
F
1 wk
Test Coverage

File route_config.tsx has 566 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import { RouteConfig } from "takeme";
import { Apology } from "./apology";
import { Path } from "./internal_urls";
import { AnyConnectedComponent, ChangeRoute } from "./routes";

Severity: Major
Found in frontend/route_config.tsx - About 1 day to fix

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

      route({
        children: true,
        $: Path.route(Path.points("add")),
        getModule,
        key,
    Severity: Major
    Found in frontend/route_config.tsx and 33 other locations - About 1 hr to fix
    frontend/route_config.tsx on lines 152..159
    frontend/route_config.tsx on lines 160..167
    frontend/route_config.tsx on lines 184..191
    frontend/route_config.tsx on lines 192..199
    frontend/route_config.tsx on lines 216..223
    frontend/route_config.tsx on lines 232..239
    frontend/route_config.tsx on lines 248..255
    frontend/route_config.tsx on lines 256..263
    frontend/route_config.tsx on lines 264..271
    frontend/route_config.tsx on lines 288..295
    frontend/route_config.tsx on lines 296..303
    frontend/route_config.tsx on lines 304..311
    frontend/route_config.tsx on lines 328..335
    frontend/route_config.tsx on lines 352..359
    frontend/route_config.tsx on lines 360..367
    frontend/route_config.tsx on lines 376..383
    frontend/route_config.tsx on lines 392..399
    frontend/route_config.tsx on lines 408..415
    frontend/route_config.tsx on lines 416..423
    frontend/route_config.tsx on lines 448..455
    frontend/route_config.tsx on lines 456..463
    frontend/route_config.tsx on lines 464..471
    frontend/route_config.tsx on lines 472..479
    frontend/route_config.tsx on lines 496..503
    frontend/route_config.tsx on lines 520..527
    frontend/route_config.tsx on lines 528..535
    frontend/route_config.tsx on lines 536..543
    frontend/route_config.tsx on lines 544..551
    frontend/route_config.tsx on lines 560..567
    frontend/route_config.tsx on lines 576..583
    frontend/route_config.tsx on lines 584..591
    frontend/route_config.tsx on lines 600..607
    frontend/route_config.tsx on lines 608..615

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

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

      route({
        children: true,
        $: Path.route(Path.plants(":plant_id")),
        getModule,
        key,
    Severity: Major
    Found in frontend/route_config.tsx and 33 other locations - About 1 hr to fix
    frontend/route_config.tsx on lines 152..159
    frontend/route_config.tsx on lines 160..167
    frontend/route_config.tsx on lines 184..191
    frontend/route_config.tsx on lines 192..199
    frontend/route_config.tsx on lines 208..215
    frontend/route_config.tsx on lines 216..223
    frontend/route_config.tsx on lines 232..239
    frontend/route_config.tsx on lines 248..255
    frontend/route_config.tsx on lines 256..263
    frontend/route_config.tsx on lines 288..295
    frontend/route_config.tsx on lines 296..303
    frontend/route_config.tsx on lines 304..311
    frontend/route_config.tsx on lines 328..335
    frontend/route_config.tsx on lines 352..359
    frontend/route_config.tsx on lines 360..367
    frontend/route_config.tsx on lines 376..383
    frontend/route_config.tsx on lines 392..399
    frontend/route_config.tsx on lines 408..415
    frontend/route_config.tsx on lines 416..423
    frontend/route_config.tsx on lines 448..455
    frontend/route_config.tsx on lines 456..463
    frontend/route_config.tsx on lines 464..471
    frontend/route_config.tsx on lines 472..479
    frontend/route_config.tsx on lines 496..503
    frontend/route_config.tsx on lines 520..527
    frontend/route_config.tsx on lines 528..535
    frontend/route_config.tsx on lines 536..543
    frontend/route_config.tsx on lines 544..551
    frontend/route_config.tsx on lines 560..567
    frontend/route_config.tsx on lines 576..583
    frontend/route_config.tsx on lines 584..591
    frontend/route_config.tsx on lines 600..607
    frontend/route_config.tsx on lines 608..615

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

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

      route({
        children: true,
        $: Path.route(Path.regimens(":regimen_name")),
        getModule,
        key,
    Severity: Major
    Found in frontend/route_config.tsx and 33 other locations - About 1 hr to fix
    frontend/route_config.tsx on lines 152..159
    frontend/route_config.tsx on lines 160..167
    frontend/route_config.tsx on lines 184..191
    frontend/route_config.tsx on lines 192..199
    frontend/route_config.tsx on lines 208..215
    frontend/route_config.tsx on lines 216..223
    frontend/route_config.tsx on lines 232..239
    frontend/route_config.tsx on lines 248..255
    frontend/route_config.tsx on lines 256..263
    frontend/route_config.tsx on lines 264..271
    frontend/route_config.tsx on lines 288..295
    frontend/route_config.tsx on lines 296..303
    frontend/route_config.tsx on lines 304..311
    frontend/route_config.tsx on lines 328..335
    frontend/route_config.tsx on lines 352..359
    frontend/route_config.tsx on lines 360..367
    frontend/route_config.tsx on lines 376..383
    frontend/route_config.tsx on lines 392..399
    frontend/route_config.tsx on lines 408..415
    frontend/route_config.tsx on lines 448..455
    frontend/route_config.tsx on lines 456..463
    frontend/route_config.tsx on lines 464..471
    frontend/route_config.tsx on lines 472..479
    frontend/route_config.tsx on lines 496..503
    frontend/route_config.tsx on lines 520..527
    frontend/route_config.tsx on lines 528..535
    frontend/route_config.tsx on lines 536..543
    frontend/route_config.tsx on lines 544..551
    frontend/route_config.tsx on lines 560..567
    frontend/route_config.tsx on lines 576..583
    frontend/route_config.tsx on lines 584..591
    frontend/route_config.tsx on lines 600..607
    frontend/route_config.tsx on lines 608..615

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

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

      route({
        children: true,
        $: Path.route(Path.designer("express")),
        getModule,
        key,
    Severity: Major
    Found in frontend/route_config.tsx and 33 other locations - About 1 hr to fix
    frontend/route_config.tsx on lines 152..159
    frontend/route_config.tsx on lines 160..167
    frontend/route_config.tsx on lines 184..191
    frontend/route_config.tsx on lines 192..199
    frontend/route_config.tsx on lines 208..215
    frontend/route_config.tsx on lines 216..223
    frontend/route_config.tsx on lines 232..239
    frontend/route_config.tsx on lines 248..255
    frontend/route_config.tsx on lines 256..263
    frontend/route_config.tsx on lines 264..271
    frontend/route_config.tsx on lines 288..295
    frontend/route_config.tsx on lines 296..303
    frontend/route_config.tsx on lines 304..311
    frontend/route_config.tsx on lines 328..335
    frontend/route_config.tsx on lines 352..359
    frontend/route_config.tsx on lines 360..367
    frontend/route_config.tsx on lines 376..383
    frontend/route_config.tsx on lines 392..399
    frontend/route_config.tsx on lines 408..415
    frontend/route_config.tsx on lines 416..423
    frontend/route_config.tsx on lines 448..455
    frontend/route_config.tsx on lines 464..471
    frontend/route_config.tsx on lines 472..479
    frontend/route_config.tsx on lines 496..503
    frontend/route_config.tsx on lines 520..527
    frontend/route_config.tsx on lines 528..535
    frontend/route_config.tsx on lines 536..543
    frontend/route_config.tsx on lines 544..551
    frontend/route_config.tsx on lines 560..567
    frontend/route_config.tsx on lines 576..583
    frontend/route_config.tsx on lines 584..591
    frontend/route_config.tsx on lines 600..607
    frontend/route_config.tsx on lines 608..615

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

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

      route({
        children: true,
        $: Path.route(Path.groups(":group_id")),
        getModule,
        key,
    Severity: Major
    Found in frontend/route_config.tsx and 33 other locations - About 1 hr to fix
    frontend/route_config.tsx on lines 152..159
    frontend/route_config.tsx on lines 160..167
    frontend/route_config.tsx on lines 184..191
    frontend/route_config.tsx on lines 192..199
    frontend/route_config.tsx on lines 208..215
    frontend/route_config.tsx on lines 216..223
    frontend/route_config.tsx on lines 232..239
    frontend/route_config.tsx on lines 248..255
    frontend/route_config.tsx on lines 256..263
    frontend/route_config.tsx on lines 264..271
    frontend/route_config.tsx on lines 288..295
    frontend/route_config.tsx on lines 296..303
    frontend/route_config.tsx on lines 304..311
    frontend/route_config.tsx on lines 328..335
    frontend/route_config.tsx on lines 352..359
    frontend/route_config.tsx on lines 360..367
    frontend/route_config.tsx on lines 376..383
    frontend/route_config.tsx on lines 392..399
    frontend/route_config.tsx on lines 408..415
    frontend/route_config.tsx on lines 416..423
    frontend/route_config.tsx on lines 448..455
    frontend/route_config.tsx on lines 456..463
    frontend/route_config.tsx on lines 464..471
    frontend/route_config.tsx on lines 472..479
    frontend/route_config.tsx on lines 496..503
    frontend/route_config.tsx on lines 520..527
    frontend/route_config.tsx on lines 528..535
    frontend/route_config.tsx on lines 536..543
    frontend/route_config.tsx on lines 544..551
    frontend/route_config.tsx on lines 576..583
    frontend/route_config.tsx on lines 584..591
    frontend/route_config.tsx on lines 600..607
    frontend/route_config.tsx on lines 608..615

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

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

      route({
        children: true,
        $: Path.route(Path.zones("add")),
        getModule,
        key,
    Severity: Major
    Found in frontend/route_config.tsx and 33 other locations - About 1 hr to fix
    frontend/route_config.tsx on lines 152..159
    frontend/route_config.tsx on lines 160..167
    frontend/route_config.tsx on lines 184..191
    frontend/route_config.tsx on lines 192..199
    frontend/route_config.tsx on lines 208..215
    frontend/route_config.tsx on lines 216..223
    frontend/route_config.tsx on lines 232..239
    frontend/route_config.tsx on lines 248..255
    frontend/route_config.tsx on lines 256..263
    frontend/route_config.tsx on lines 264..271
    frontend/route_config.tsx on lines 288..295
    frontend/route_config.tsx on lines 296..303
    frontend/route_config.tsx on lines 304..311
    frontend/route_config.tsx on lines 328..335
    frontend/route_config.tsx on lines 352..359
    frontend/route_config.tsx on lines 360..367
    frontend/route_config.tsx on lines 376..383
    frontend/route_config.tsx on lines 392..399
    frontend/route_config.tsx on lines 408..415
    frontend/route_config.tsx on lines 416..423
    frontend/route_config.tsx on lines 448..455
    frontend/route_config.tsx on lines 456..463
    frontend/route_config.tsx on lines 464..471
    frontend/route_config.tsx on lines 472..479
    frontend/route_config.tsx on lines 496..503
    frontend/route_config.tsx on lines 520..527
    frontend/route_config.tsx on lines 528..535
    frontend/route_config.tsx on lines 536..543
    frontend/route_config.tsx on lines 544..551
    frontend/route_config.tsx on lines 560..567
    frontend/route_config.tsx on lines 576..583
    frontend/route_config.tsx on lines 584..591
    frontend/route_config.tsx on lines 608..615

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

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

      route({
        children: true,
        $: Path.route(Path.weeds("add")),
        getModule,
        key,
    Severity: Major
    Found in frontend/route_config.tsx and 33 other locations - About 1 hr to fix
    frontend/route_config.tsx on lines 152..159
    frontend/route_config.tsx on lines 160..167
    frontend/route_config.tsx on lines 184..191
    frontend/route_config.tsx on lines 192..199
    frontend/route_config.tsx on lines 208..215
    frontend/route_config.tsx on lines 216..223
    frontend/route_config.tsx on lines 232..239
    frontend/route_config.tsx on lines 248..255
    frontend/route_config.tsx on lines 256..263
    frontend/route_config.tsx on lines 264..271
    frontend/route_config.tsx on lines 288..295
    frontend/route_config.tsx on lines 296..303
    frontend/route_config.tsx on lines 304..311
    frontend/route_config.tsx on lines 328..335
    frontend/route_config.tsx on lines 352..359
    frontend/route_config.tsx on lines 360..367
    frontend/route_config.tsx on lines 376..383
    frontend/route_config.tsx on lines 392..399
    frontend/route_config.tsx on lines 408..415
    frontend/route_config.tsx on lines 416..423
    frontend/route_config.tsx on lines 448..455
    frontend/route_config.tsx on lines 456..463
    frontend/route_config.tsx on lines 464..471
    frontend/route_config.tsx on lines 472..479
    frontend/route_config.tsx on lines 496..503
    frontend/route_config.tsx on lines 520..527
    frontend/route_config.tsx on lines 528..535
    frontend/route_config.tsx on lines 536..543
    frontend/route_config.tsx on lines 544..551
    frontend/route_config.tsx on lines 560..567
    frontend/route_config.tsx on lines 584..591
    frontend/route_config.tsx on lines 600..607
    frontend/route_config.tsx on lines 608..615

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

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

      route({
        children: true,
        $: Path.route(Path.savedGardens(":saved_garden_id")),
        getModule,
        key,
    Severity: Major
    Found in frontend/route_config.tsx and 33 other locations - About 1 hr to fix
    frontend/route_config.tsx on lines 152..159
    frontend/route_config.tsx on lines 160..167
    frontend/route_config.tsx on lines 184..191
    frontend/route_config.tsx on lines 192..199
    frontend/route_config.tsx on lines 208..215
    frontend/route_config.tsx on lines 216..223
    frontend/route_config.tsx on lines 232..239
    frontend/route_config.tsx on lines 248..255
    frontend/route_config.tsx on lines 256..263
    frontend/route_config.tsx on lines 264..271
    frontend/route_config.tsx on lines 288..295
    frontend/route_config.tsx on lines 296..303
    frontend/route_config.tsx on lines 328..335
    frontend/route_config.tsx on lines 352..359
    frontend/route_config.tsx on lines 360..367
    frontend/route_config.tsx on lines 376..383
    frontend/route_config.tsx on lines 392..399
    frontend/route_config.tsx on lines 408..415
    frontend/route_config.tsx on lines 416..423
    frontend/route_config.tsx on lines 448..455
    frontend/route_config.tsx on lines 456..463
    frontend/route_config.tsx on lines 464..471
    frontend/route_config.tsx on lines 472..479
    frontend/route_config.tsx on lines 496..503
    frontend/route_config.tsx on lines 520..527
    frontend/route_config.tsx on lines 528..535
    frontend/route_config.tsx on lines 536..543
    frontend/route_config.tsx on lines 544..551
    frontend/route_config.tsx on lines 560..567
    frontend/route_config.tsx on lines 576..583
    frontend/route_config.tsx on lines 584..591
    frontend/route_config.tsx on lines 600..607
    frontend/route_config.tsx on lines 608..615

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

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

      route({
        children: true,
        $: Path.route(Path.farmware("add")),
        getModule,
        key,
    Severity: Major
    Found in frontend/route_config.tsx and 33 other locations - About 1 hr to fix
    frontend/route_config.tsx on lines 152..159
    frontend/route_config.tsx on lines 160..167
    frontend/route_config.tsx on lines 184..191
    frontend/route_config.tsx on lines 192..199
    frontend/route_config.tsx on lines 208..215
    frontend/route_config.tsx on lines 216..223
    frontend/route_config.tsx on lines 232..239
    frontend/route_config.tsx on lines 248..255
    frontend/route_config.tsx on lines 256..263
    frontend/route_config.tsx on lines 264..271
    frontend/route_config.tsx on lines 288..295
    frontend/route_config.tsx on lines 296..303
    frontend/route_config.tsx on lines 304..311
    frontend/route_config.tsx on lines 328..335
    frontend/route_config.tsx on lines 360..367
    frontend/route_config.tsx on lines 376..383
    frontend/route_config.tsx on lines 392..399
    frontend/route_config.tsx on lines 408..415
    frontend/route_config.tsx on lines 416..423
    frontend/route_config.tsx on lines 448..455
    frontend/route_config.tsx on lines 456..463
    frontend/route_config.tsx on lines 464..471
    frontend/route_config.tsx on lines 472..479
    frontend/route_config.tsx on lines 496..503
    frontend/route_config.tsx on lines 520..527
    frontend/route_config.tsx on lines 528..535
    frontend/route_config.tsx on lines 536..543
    frontend/route_config.tsx on lines 544..551
    frontend/route_config.tsx on lines 560..567
    frontend/route_config.tsx on lines 576..583
    frontend/route_config.tsx on lines 584..591
    frontend/route_config.tsx on lines 600..607
    frontend/route_config.tsx on lines 608..615

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

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

      route({
        children: true,
        $: Path.route(Path.regimens("scheduler")),
        getModule,
        key,
    Severity: Major
    Found in frontend/route_config.tsx and 33 other locations - About 1 hr to fix
    frontend/route_config.tsx on lines 152..159
    frontend/route_config.tsx on lines 160..167
    frontend/route_config.tsx on lines 184..191
    frontend/route_config.tsx on lines 192..199
    frontend/route_config.tsx on lines 208..215
    frontend/route_config.tsx on lines 216..223
    frontend/route_config.tsx on lines 232..239
    frontend/route_config.tsx on lines 248..255
    frontend/route_config.tsx on lines 256..263
    frontend/route_config.tsx on lines 264..271
    frontend/route_config.tsx on lines 288..295
    frontend/route_config.tsx on lines 296..303
    frontend/route_config.tsx on lines 304..311
    frontend/route_config.tsx on lines 328..335
    frontend/route_config.tsx on lines 352..359
    frontend/route_config.tsx on lines 360..367
    frontend/route_config.tsx on lines 376..383
    frontend/route_config.tsx on lines 392..399
    frontend/route_config.tsx on lines 416..423
    frontend/route_config.tsx on lines 448..455
    frontend/route_config.tsx on lines 456..463
    frontend/route_config.tsx on lines 464..471
    frontend/route_config.tsx on lines 472..479
    frontend/route_config.tsx on lines 496..503
    frontend/route_config.tsx on lines 520..527
    frontend/route_config.tsx on lines 528..535
    frontend/route_config.tsx on lines 536..543
    frontend/route_config.tsx on lines 544..551
    frontend/route_config.tsx on lines 560..567
    frontend/route_config.tsx on lines 576..583
    frontend/route_config.tsx on lines 584..591
    frontend/route_config.tsx on lines 600..607
    frontend/route_config.tsx on lines 608..615

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

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

      route({
        children: true,
        $: Path.route(Path.designer("jobs")),
        getModule,
        key,
    Severity: Major
    Found in frontend/route_config.tsx and 33 other locations - About 1 hr to fix
    frontend/route_config.tsx on lines 152..159
    frontend/route_config.tsx on lines 160..167
    frontend/route_config.tsx on lines 184..191
    frontend/route_config.tsx on lines 192..199
    frontend/route_config.tsx on lines 208..215
    frontend/route_config.tsx on lines 216..223
    frontend/route_config.tsx on lines 232..239
    frontend/route_config.tsx on lines 248..255
    frontend/route_config.tsx on lines 256..263
    frontend/route_config.tsx on lines 264..271
    frontend/route_config.tsx on lines 288..295
    frontend/route_config.tsx on lines 296..303
    frontend/route_config.tsx on lines 304..311
    frontend/route_config.tsx on lines 328..335
    frontend/route_config.tsx on lines 352..359
    frontend/route_config.tsx on lines 360..367
    frontend/route_config.tsx on lines 376..383
    frontend/route_config.tsx on lines 392..399
    frontend/route_config.tsx on lines 408..415
    frontend/route_config.tsx on lines 416..423
    frontend/route_config.tsx on lines 448..455
    frontend/route_config.tsx on lines 456..463
    frontend/route_config.tsx on lines 464..471
    frontend/route_config.tsx on lines 472..479
    frontend/route_config.tsx on lines 520..527
    frontend/route_config.tsx on lines 528..535
    frontend/route_config.tsx on lines 536..543
    frontend/route_config.tsx on lines 544..551
    frontend/route_config.tsx on lines 560..567
    frontend/route_config.tsx on lines 576..583
    frontend/route_config.tsx on lines 584..591
    frontend/route_config.tsx on lines 600..607
    frontend/route_config.tsx on lines 608..615

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

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

      route({
        children: true,
        $: Path.route(Path.tools("add")),
        getModule,
        key,
    Severity: Major
    Found in frontend/route_config.tsx and 33 other locations - About 1 hr to fix
    frontend/route_config.tsx on lines 152..159
    frontend/route_config.tsx on lines 160..167
    frontend/route_config.tsx on lines 184..191
    frontend/route_config.tsx on lines 192..199
    frontend/route_config.tsx on lines 208..215
    frontend/route_config.tsx on lines 216..223
    frontend/route_config.tsx on lines 232..239
    frontend/route_config.tsx on lines 248..255
    frontend/route_config.tsx on lines 256..263
    frontend/route_config.tsx on lines 264..271
    frontend/route_config.tsx on lines 288..295
    frontend/route_config.tsx on lines 296..303
    frontend/route_config.tsx on lines 304..311
    frontend/route_config.tsx on lines 328..335
    frontend/route_config.tsx on lines 352..359
    frontend/route_config.tsx on lines 360..367
    frontend/route_config.tsx on lines 376..383
    frontend/route_config.tsx on lines 392..399
    frontend/route_config.tsx on lines 408..415
    frontend/route_config.tsx on lines 416..423
    frontend/route_config.tsx on lines 448..455
    frontend/route_config.tsx on lines 456..463
    frontend/route_config.tsx on lines 464..471
    frontend/route_config.tsx on lines 472..479
    frontend/route_config.tsx on lines 496..503
    frontend/route_config.tsx on lines 528..535
    frontend/route_config.tsx on lines 536..543
    frontend/route_config.tsx on lines 544..551
    frontend/route_config.tsx on lines 560..567
    frontend/route_config.tsx on lines 576..583
    frontend/route_config.tsx on lines 584..591
    frontend/route_config.tsx on lines 600..607
    frontend/route_config.tsx on lines 608..615

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

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

      route({
        children: true,
        $: Path.route(Path.designer("sensors")),
        getModule,
        key,
    Severity: Major
    Found in frontend/route_config.tsx and 33 other locations - About 1 hr to fix
    frontend/route_config.tsx on lines 152..159
    frontend/route_config.tsx on lines 160..167
    frontend/route_config.tsx on lines 184..191
    frontend/route_config.tsx on lines 192..199
    frontend/route_config.tsx on lines 208..215
    frontend/route_config.tsx on lines 216..223
    frontend/route_config.tsx on lines 232..239
    frontend/route_config.tsx on lines 248..255
    frontend/route_config.tsx on lines 256..263
    frontend/route_config.tsx on lines 264..271
    frontend/route_config.tsx on lines 288..295
    frontend/route_config.tsx on lines 296..303
    frontend/route_config.tsx on lines 304..311
    frontend/route_config.tsx on lines 352..359
    frontend/route_config.tsx on lines 360..367
    frontend/route_config.tsx on lines 376..383
    frontend/route_config.tsx on lines 392..399
    frontend/route_config.tsx on lines 408..415
    frontend/route_config.tsx on lines 416..423
    frontend/route_config.tsx on lines 448..455
    frontend/route_config.tsx on lines 456..463
    frontend/route_config.tsx on lines 464..471
    frontend/route_config.tsx on lines 472..479
    frontend/route_config.tsx on lines 496..503
    frontend/route_config.tsx on lines 520..527
    frontend/route_config.tsx on lines 528..535
    frontend/route_config.tsx on lines 536..543
    frontend/route_config.tsx on lines 544..551
    frontend/route_config.tsx on lines 560..567
    frontend/route_config.tsx on lines 576..583
    frontend/route_config.tsx on lines 584..591
    frontend/route_config.tsx on lines 600..607
    frontend/route_config.tsx on lines 608..615

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

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

      route({
        children: true,
        $: Path.route(Path.toolSlots(":tool_id")),
        getModule,
        key,
    Severity: Major
    Found in frontend/route_config.tsx and 33 other locations - About 1 hr to fix
    frontend/route_config.tsx on lines 152..159
    frontend/route_config.tsx on lines 160..167
    frontend/route_config.tsx on lines 184..191
    frontend/route_config.tsx on lines 192..199
    frontend/route_config.tsx on lines 208..215
    frontend/route_config.tsx on lines 216..223
    frontend/route_config.tsx on lines 232..239
    frontend/route_config.tsx on lines 248..255
    frontend/route_config.tsx on lines 256..263
    frontend/route_config.tsx on lines 264..271
    frontend/route_config.tsx on lines 288..295
    frontend/route_config.tsx on lines 296..303
    frontend/route_config.tsx on lines 304..311
    frontend/route_config.tsx on lines 328..335
    frontend/route_config.tsx on lines 352..359
    frontend/route_config.tsx on lines 360..367
    frontend/route_config.tsx on lines 376..383
    frontend/route_config.tsx on lines 392..399
    frontend/route_config.tsx on lines 408..415
    frontend/route_config.tsx on lines 416..423
    frontend/route_config.tsx on lines 448..455
    frontend/route_config.tsx on lines 456..463
    frontend/route_config.tsx on lines 464..471
    frontend/route_config.tsx on lines 472..479
    frontend/route_config.tsx on lines 496..503
    frontend/route_config.tsx on lines 520..527
    frontend/route_config.tsx on lines 528..535
    frontend/route_config.tsx on lines 536..543
    frontend/route_config.tsx on lines 560..567
    frontend/route_config.tsx on lines 576..583
    frontend/route_config.tsx on lines 584..591
    frontend/route_config.tsx on lines 600..607
    frontend/route_config.tsx on lines 608..615

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

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

      route({
        children: true,
        $: Path.route(Path.designer("business")),
        getModule,
        key,
    Severity: Major
    Found in frontend/route_config.tsx and 33 other locations - About 1 hr to fix
    frontend/route_config.tsx on lines 152..159
    frontend/route_config.tsx on lines 160..167
    frontend/route_config.tsx on lines 184..191
    frontend/route_config.tsx on lines 192..199
    frontend/route_config.tsx on lines 208..215
    frontend/route_config.tsx on lines 216..223
    frontend/route_config.tsx on lines 232..239
    frontend/route_config.tsx on lines 248..255
    frontend/route_config.tsx on lines 256..263
    frontend/route_config.tsx on lines 264..271
    frontend/route_config.tsx on lines 288..295
    frontend/route_config.tsx on lines 296..303
    frontend/route_config.tsx on lines 304..311
    frontend/route_config.tsx on lines 328..335
    frontend/route_config.tsx on lines 352..359
    frontend/route_config.tsx on lines 360..367
    frontend/route_config.tsx on lines 376..383
    frontend/route_config.tsx on lines 392..399
    frontend/route_config.tsx on lines 408..415
    frontend/route_config.tsx on lines 416..423
    frontend/route_config.tsx on lines 448..455
    frontend/route_config.tsx on lines 456..463
    frontend/route_config.tsx on lines 472..479
    frontend/route_config.tsx on lines 496..503
    frontend/route_config.tsx on lines 520..527
    frontend/route_config.tsx on lines 528..535
    frontend/route_config.tsx on lines 536..543
    frontend/route_config.tsx on lines 544..551
    frontend/route_config.tsx on lines 560..567
    frontend/route_config.tsx on lines 576..583
    frontend/route_config.tsx on lines 584..591
    frontend/route_config.tsx on lines 600..607
    frontend/route_config.tsx on lines 608..615

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

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

      route({
        children: true,
        $: Path.route(Path.toolSlots("add")),
        getModule,
        key,
    Severity: Major
    Found in frontend/route_config.tsx and 33 other locations - About 1 hr to fix
    frontend/route_config.tsx on lines 152..159
    frontend/route_config.tsx on lines 160..167
    frontend/route_config.tsx on lines 184..191
    frontend/route_config.tsx on lines 192..199
    frontend/route_config.tsx on lines 208..215
    frontend/route_config.tsx on lines 216..223
    frontend/route_config.tsx on lines 232..239
    frontend/route_config.tsx on lines 248..255
    frontend/route_config.tsx on lines 256..263
    frontend/route_config.tsx on lines 264..271
    frontend/route_config.tsx on lines 288..295
    frontend/route_config.tsx on lines 296..303
    frontend/route_config.tsx on lines 304..311
    frontend/route_config.tsx on lines 328..335
    frontend/route_config.tsx on lines 352..359
    frontend/route_config.tsx on lines 360..367
    frontend/route_config.tsx on lines 376..383
    frontend/route_config.tsx on lines 392..399
    frontend/route_config.tsx on lines 408..415
    frontend/route_config.tsx on lines 416..423
    frontend/route_config.tsx on lines 448..455
    frontend/route_config.tsx on lines 456..463
    frontend/route_config.tsx on lines 464..471
    frontend/route_config.tsx on lines 472..479
    frontend/route_config.tsx on lines 496..503
    frontend/route_config.tsx on lines 520..527
    frontend/route_config.tsx on lines 528..535
    frontend/route_config.tsx on lines 544..551
    frontend/route_config.tsx on lines 560..567
    frontend/route_config.tsx on lines 576..583
    frontend/route_config.tsx on lines 584..591
    frontend/route_config.tsx on lines 600..607
    frontend/route_config.tsx on lines 608..615

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

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

      route({
        children: true,
        $: Path.route(Path.points(":point_id")),
        getModule,
        key,
    Severity: Major
    Found in frontend/route_config.tsx and 33 other locations - About 1 hr to fix
    frontend/route_config.tsx on lines 152..159
    frontend/route_config.tsx on lines 160..167
    frontend/route_config.tsx on lines 184..191
    frontend/route_config.tsx on lines 192..199
    frontend/route_config.tsx on lines 208..215
    frontend/route_config.tsx on lines 232..239
    frontend/route_config.tsx on lines 248..255
    frontend/route_config.tsx on lines 256..263
    frontend/route_config.tsx on lines 264..271
    frontend/route_config.tsx on lines 288..295
    frontend/route_config.tsx on lines 296..303
    frontend/route_config.tsx on lines 304..311
    frontend/route_config.tsx on lines 328..335
    frontend/route_config.tsx on lines 352..359
    frontend/route_config.tsx on lines 360..367
    frontend/route_config.tsx on lines 376..383
    frontend/route_config.tsx on lines 392..399
    frontend/route_config.tsx on lines 408..415
    frontend/route_config.tsx on lines 416..423
    frontend/route_config.tsx on lines 448..455
    frontend/route_config.tsx on lines 456..463
    frontend/route_config.tsx on lines 464..471
    frontend/route_config.tsx on lines 472..479
    frontend/route_config.tsx on lines 496..503
    frontend/route_config.tsx on lines 520..527
    frontend/route_config.tsx on lines 528..535
    frontend/route_config.tsx on lines 536..543
    frontend/route_config.tsx on lines 544..551
    frontend/route_config.tsx on lines 560..567
    frontend/route_config.tsx on lines 576..583
    frontend/route_config.tsx on lines 584..591
    frontend/route_config.tsx on lines 600..607
    frontend/route_config.tsx on lines 608..615

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

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

      route({
        children: true,
        $: Path.route(Path.cropSearch(":crop")),
        getModule,
        key,
    Severity: Major
    Found in frontend/route_config.tsx and 33 other locations - About 1 hr to fix
    frontend/route_config.tsx on lines 152..159
    frontend/route_config.tsx on lines 160..167
    frontend/route_config.tsx on lines 184..191
    frontend/route_config.tsx on lines 192..199
    frontend/route_config.tsx on lines 208..215
    frontend/route_config.tsx on lines 216..223
    frontend/route_config.tsx on lines 232..239
    frontend/route_config.tsx on lines 248..255
    frontend/route_config.tsx on lines 264..271
    frontend/route_config.tsx on lines 288..295
    frontend/route_config.tsx on lines 296..303
    frontend/route_config.tsx on lines 304..311
    frontend/route_config.tsx on lines 328..335
    frontend/route_config.tsx on lines 352..359
    frontend/route_config.tsx on lines 360..367
    frontend/route_config.tsx on lines 376..383
    frontend/route_config.tsx on lines 392..399
    frontend/route_config.tsx on lines 408..415
    frontend/route_config.tsx on lines 416..423
    frontend/route_config.tsx on lines 448..455
    frontend/route_config.tsx on lines 456..463
    frontend/route_config.tsx on lines 464..471
    frontend/route_config.tsx on lines 472..479
    frontend/route_config.tsx on lines 496..503
    frontend/route_config.tsx on lines 520..527
    frontend/route_config.tsx on lines 528..535
    frontend/route_config.tsx on lines 536..543
    frontend/route_config.tsx on lines 544..551
    frontend/route_config.tsx on lines 560..567
    frontend/route_config.tsx on lines 576..583
    frontend/route_config.tsx on lines 584..591
    frontend/route_config.tsx on lines 600..607
    frontend/route_config.tsx on lines 608..615

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

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

      route({
        children: true,
        $: Path.route(Path.tools(":tool_id")),
        getModule,
        key,
    Severity: Major
    Found in frontend/route_config.tsx and 33 other locations - About 1 hr to fix
    frontend/route_config.tsx on lines 152..159
    frontend/route_config.tsx on lines 160..167
    frontend/route_config.tsx on lines 184..191
    frontend/route_config.tsx on lines 192..199
    frontend/route_config.tsx on lines 208..215
    frontend/route_config.tsx on lines 216..223
    frontend/route_config.tsx on lines 232..239
    frontend/route_config.tsx on lines 248..255
    frontend/route_config.tsx on lines 256..263
    frontend/route_config.tsx on lines 264..271
    frontend/route_config.tsx on lines 288..295
    frontend/route_config.tsx on lines 296..303
    frontend/route_config.tsx on lines 304..311
    frontend/route_config.tsx on lines 328..335
    frontend/route_config.tsx on lines 352..359
    frontend/route_config.tsx on lines 360..367
    frontend/route_config.tsx on lines 376..383
    frontend/route_config.tsx on lines 392..399
    frontend/route_config.tsx on lines 408..415
    frontend/route_config.tsx on lines 416..423
    frontend/route_config.tsx on lines 448..455
    frontend/route_config.tsx on lines 456..463
    frontend/route_config.tsx on lines 464..471
    frontend/route_config.tsx on lines 472..479
    frontend/route_config.tsx on lines 496..503
    frontend/route_config.tsx on lines 520..527
    frontend/route_config.tsx on lines 536..543
    frontend/route_config.tsx on lines 544..551
    frontend/route_config.tsx on lines 560..567
    frontend/route_config.tsx on lines 576..583
    frontend/route_config.tsx on lines 584..591
    frontend/route_config.tsx on lines 600..607
    frontend/route_config.tsx on lines 608..615

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

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

      route({
        children: true,
        $: Path.route(Path.plants("select")),
        getModule,
        key,
    Severity: Major
    Found in frontend/route_config.tsx and 33 other locations - About 1 hr to fix
    frontend/route_config.tsx on lines 152..159
    frontend/route_config.tsx on lines 160..167
    frontend/route_config.tsx on lines 184..191
    frontend/route_config.tsx on lines 208..215
    frontend/route_config.tsx on lines 216..223
    frontend/route_config.tsx on lines 232..239
    frontend/route_config.tsx on lines 248..255
    frontend/route_config.tsx on lines 256..263
    frontend/route_config.tsx on lines 264..271
    frontend/route_config.tsx on lines 288..295
    frontend/route_config.tsx on lines 296..303
    frontend/route_config.tsx on lines 304..311
    frontend/route_config.tsx on lines 328..335
    frontend/route_config.tsx on lines 352..359
    frontend/route_config.tsx on lines 360..367
    frontend/route_config.tsx on lines 376..383
    frontend/route_config.tsx on lines 392..399
    frontend/route_config.tsx on lines 408..415
    frontend/route_config.tsx on lines 416..423
    frontend/route_config.tsx on lines 448..455
    frontend/route_config.tsx on lines 456..463
    frontend/route_config.tsx on lines 464..471
    frontend/route_config.tsx on lines 472..479
    frontend/route_config.tsx on lines 496..503
    frontend/route_config.tsx on lines 520..527
    frontend/route_config.tsx on lines 528..535
    frontend/route_config.tsx on lines 536..543
    frontend/route_config.tsx on lines 544..551
    frontend/route_config.tsx on lines 560..567
    frontend/route_config.tsx on lines 576..583
    frontend/route_config.tsx on lines 584..591
    frontend/route_config.tsx on lines 600..607
    frontend/route_config.tsx on lines 608..615

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

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

      route({
        children: true,
        $: Path.route(Path.weeds(":point_id")),
        getModule,
        key,
    Severity: Major
    Found in frontend/route_config.tsx and 33 other locations - About 1 hr to fix
    frontend/route_config.tsx on lines 152..159
    frontend/route_config.tsx on lines 160..167
    frontend/route_config.tsx on lines 184..191
    frontend/route_config.tsx on lines 192..199
    frontend/route_config.tsx on lines 208..215
    frontend/route_config.tsx on lines 216..223
    frontend/route_config.tsx on lines 232..239
    frontend/route_config.tsx on lines 248..255
    frontend/route_config.tsx on lines 256..263
    frontend/route_config.tsx on lines 264..271
    frontend/route_config.tsx on lines 288..295
    frontend/route_config.tsx on lines 296..303
    frontend/route_config.tsx on lines 304..311
    frontend/route_config.tsx on lines 328..335
    frontend/route_config.tsx on lines 352..359
    frontend/route_config.tsx on lines 360..367
    frontend/route_config.tsx on lines 376..383
    frontend/route_config.tsx on lines 392..399
    frontend/route_config.tsx on lines 408..415
    frontend/route_config.tsx on lines 416..423
    frontend/route_config.tsx on lines 448..455
    frontend/route_config.tsx on lines 456..463
    frontend/route_config.tsx on lines 464..471
    frontend/route_config.tsx on lines 472..479
    frontend/route_config.tsx on lines 496..503
    frontend/route_config.tsx on lines 520..527
    frontend/route_config.tsx on lines 528..535
    frontend/route_config.tsx on lines 536..543
    frontend/route_config.tsx on lines 544..551
    frontend/route_config.tsx on lines 560..567
    frontend/route_config.tsx on lines 576..583
    frontend/route_config.tsx on lines 600..607
    frontend/route_config.tsx on lines 608..615

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

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

      route({
        children: true,
        $: Path.route(Path.farmEvents(":farm_event_id")),
        getModule,
        key,
    Severity: Major
    Found in frontend/route_config.tsx and 33 other locations - About 1 hr to fix
    frontend/route_config.tsx on lines 152..159
    frontend/route_config.tsx on lines 184..191
    frontend/route_config.tsx on lines 192..199
    frontend/route_config.tsx on lines 208..215
    frontend/route_config.tsx on lines 216..223
    frontend/route_config.tsx on lines 232..239
    frontend/route_config.tsx on lines 248..255
    frontend/route_config.tsx on lines 256..263
    frontend/route_config.tsx on lines 264..271
    frontend/route_config.tsx on lines 288..295
    frontend/route_config.tsx on lines 296..303
    frontend/route_config.tsx on lines 304..311
    frontend/route_config.tsx on lines 328..335
    frontend/route_config.tsx on lines 352..359
    frontend/route_config.tsx on lines 360..367
    frontend/route_config.tsx on lines 376..383
    frontend/route_config.tsx on lines 392..399
    frontend/route_config.tsx on lines 408..415
    frontend/route_config.tsx on lines 416..423
    frontend/route_config.tsx on lines 448..455
    frontend/route_config.tsx on lines 456..463
    frontend/route_config.tsx on lines 464..471
    frontend/route_config.tsx on lines 472..479
    frontend/route_config.tsx on lines 496..503
    frontend/route_config.tsx on lines 520..527
    frontend/route_config.tsx on lines 528..535
    frontend/route_config.tsx on lines 536..543
    frontend/route_config.tsx on lines 544..551
    frontend/route_config.tsx on lines 560..567
    frontend/route_config.tsx on lines 576..583
    frontend/route_config.tsx on lines 584..591
    frontend/route_config.tsx on lines 600..607
    frontend/route_config.tsx on lines 608..615

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

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

      route({
        children: true,
        $: Path.route(Path.curves(":curve_id")),
        getModule,
        key,
    Severity: Major
    Found in frontend/route_config.tsx and 33 other locations - About 1 hr to fix
    frontend/route_config.tsx on lines 152..159
    frontend/route_config.tsx on lines 160..167
    frontend/route_config.tsx on lines 184..191
    frontend/route_config.tsx on lines 192..199
    frontend/route_config.tsx on lines 208..215
    frontend/route_config.tsx on lines 216..223
    frontend/route_config.tsx on lines 248..255
    frontend/route_config.tsx on lines 256..263
    frontend/route_config.tsx on lines 264..271
    frontend/route_config.tsx on lines 288..295
    frontend/route_config.tsx on lines 296..303
    frontend/route_config.tsx on lines 304..311
    frontend/route_config.tsx on lines 328..335
    frontend/route_config.tsx on lines 352..359
    frontend/route_config.tsx on lines 360..367
    frontend/route_config.tsx on lines 376..383
    frontend/route_config.tsx on lines 392..399
    frontend/route_config.tsx on lines 408..415
    frontend/route_config.tsx on lines 416..423
    frontend/route_config.tsx on lines 448..455
    frontend/route_config.tsx on lines 456..463
    frontend/route_config.tsx on lines 464..471
    frontend/route_config.tsx on lines 472..479
    frontend/route_config.tsx on lines 496..503
    frontend/route_config.tsx on lines 520..527
    frontend/route_config.tsx on lines 528..535
    frontend/route_config.tsx on lines 536..543
    frontend/route_config.tsx on lines 544..551
    frontend/route_config.tsx on lines 560..567
    frontend/route_config.tsx on lines 576..583
    frontend/route_config.tsx on lines 584..591
    frontend/route_config.tsx on lines 600..607
    frontend/route_config.tsx on lines 608..615

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

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

      route({
        children: true,
        $: Path.route(Path.cropSearch(":crop/add")),
        getModule,
        key,
    Severity: Major
    Found in frontend/route_config.tsx and 33 other locations - About 1 hr to fix
    frontend/route_config.tsx on lines 152..159
    frontend/route_config.tsx on lines 160..167
    frontend/route_config.tsx on lines 184..191
    frontend/route_config.tsx on lines 192..199
    frontend/route_config.tsx on lines 208..215
    frontend/route_config.tsx on lines 216..223
    frontend/route_config.tsx on lines 232..239
    frontend/route_config.tsx on lines 256..263
    frontend/route_config.tsx on lines 264..271
    frontend/route_config.tsx on lines 288..295
    frontend/route_config.tsx on lines 296..303
    frontend/route_config.tsx on lines 304..311
    frontend/route_config.tsx on lines 328..335
    frontend/route_config.tsx on lines 352..359
    frontend/route_config.tsx on lines 360..367
    frontend/route_config.tsx on lines 376..383
    frontend/route_config.tsx on lines 392..399
    frontend/route_config.tsx on lines 408..415
    frontend/route_config.tsx on lines 416..423
    frontend/route_config.tsx on lines 448..455
    frontend/route_config.tsx on lines 456..463
    frontend/route_config.tsx on lines 464..471
    frontend/route_config.tsx on lines 472..479
    frontend/route_config.tsx on lines 496..503
    frontend/route_config.tsx on lines 520..527
    frontend/route_config.tsx on lines 528..535
    frontend/route_config.tsx on lines 536..543
    frontend/route_config.tsx on lines 544..551
    frontend/route_config.tsx on lines 560..567
    frontend/route_config.tsx on lines 576..583
    frontend/route_config.tsx on lines 584..591
    frontend/route_config.tsx on lines 600..607
    frontend/route_config.tsx on lines 608..615

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

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

      route({
        children: true,
        $: Path.route(Path.designer("genesis")),
        getModule,
        key,
    Severity: Major
    Found in frontend/route_config.tsx and 33 other locations - About 1 hr to fix
    frontend/route_config.tsx on lines 152..159
    frontend/route_config.tsx on lines 160..167
    frontend/route_config.tsx on lines 184..191
    frontend/route_config.tsx on lines 192..199
    frontend/route_config.tsx on lines 208..215
    frontend/route_config.tsx on lines 216..223
    frontend/route_config.tsx on lines 232..239
    frontend/route_config.tsx on lines 248..255
    frontend/route_config.tsx on lines 256..263
    frontend/route_config.tsx on lines 264..271
    frontend/route_config.tsx on lines 288..295
    frontend/route_config.tsx on lines 296..303
    frontend/route_config.tsx on lines 304..311
    frontend/route_config.tsx on lines 328..335
    frontend/route_config.tsx on lines 352..359
    frontend/route_config.tsx on lines 360..367
    frontend/route_config.tsx on lines 376..383
    frontend/route_config.tsx on lines 392..399
    frontend/route_config.tsx on lines 408..415
    frontend/route_config.tsx on lines 416..423
    frontend/route_config.tsx on lines 456..463
    frontend/route_config.tsx on lines 464..471
    frontend/route_config.tsx on lines 472..479
    frontend/route_config.tsx on lines 496..503
    frontend/route_config.tsx on lines 520..527
    frontend/route_config.tsx on lines 528..535
    frontend/route_config.tsx on lines 536..543
    frontend/route_config.tsx on lines 544..551
    frontend/route_config.tsx on lines 560..567
    frontend/route_config.tsx on lines 576..583
    frontend/route_config.tsx on lines 584..591
    frontend/route_config.tsx on lines 600..607
    frontend/route_config.tsx on lines 608..615

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

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

      route({
        children: true,
        $: Path.route(Path.designer("education")),
        getModule,
        key,
    Severity: Major
    Found in frontend/route_config.tsx and 33 other locations - About 1 hr to fix
    frontend/route_config.tsx on lines 152..159
    frontend/route_config.tsx on lines 160..167
    frontend/route_config.tsx on lines 184..191
    frontend/route_config.tsx on lines 192..199
    frontend/route_config.tsx on lines 208..215
    frontend/route_config.tsx on lines 216..223
    frontend/route_config.tsx on lines 232..239
    frontend/route_config.tsx on lines 248..255
    frontend/route_config.tsx on lines 256..263
    frontend/route_config.tsx on lines 264..271
    frontend/route_config.tsx on lines 288..295
    frontend/route_config.tsx on lines 296..303
    frontend/route_config.tsx on lines 304..311
    frontend/route_config.tsx on lines 328..335
    frontend/route_config.tsx on lines 352..359
    frontend/route_config.tsx on lines 360..367
    frontend/route_config.tsx on lines 376..383
    frontend/route_config.tsx on lines 392..399
    frontend/route_config.tsx on lines 408..415
    frontend/route_config.tsx on lines 416..423
    frontend/route_config.tsx on lines 448..455
    frontend/route_config.tsx on lines 456..463
    frontend/route_config.tsx on lines 464..471
    frontend/route_config.tsx on lines 496..503
    frontend/route_config.tsx on lines 520..527
    frontend/route_config.tsx on lines 528..535
    frontend/route_config.tsx on lines 536..543
    frontend/route_config.tsx on lines 544..551
    frontend/route_config.tsx on lines 560..567
    frontend/route_config.tsx on lines 576..583
    frontend/route_config.tsx on lines 584..591
    frontend/route_config.tsx on lines 600..607
    frontend/route_config.tsx on lines 608..615

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

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

      route({
        children: true,
        $: Path.route(Path.farmEvents("add")),
        getModule,
        key,
    Severity: Major
    Found in frontend/route_config.tsx and 33 other locations - About 1 hr to fix
    frontend/route_config.tsx on lines 160..167
    frontend/route_config.tsx on lines 184..191
    frontend/route_config.tsx on lines 192..199
    frontend/route_config.tsx on lines 208..215
    frontend/route_config.tsx on lines 216..223
    frontend/route_config.tsx on lines 232..239
    frontend/route_config.tsx on lines 248..255
    frontend/route_config.tsx on lines 256..263
    frontend/route_config.tsx on lines 264..271
    frontend/route_config.tsx on lines 288..295
    frontend/route_config.tsx on lines 296..303
    frontend/route_config.tsx on lines 304..311
    frontend/route_config.tsx on lines 328..335
    frontend/route_config.tsx on lines 352..359
    frontend/route_config.tsx on lines 360..367
    frontend/route_config.tsx on lines 376..383
    frontend/route_config.tsx on lines 392..399
    frontend/route_config.tsx on lines 408..415
    frontend/route_config.tsx on lines 416..423
    frontend/route_config.tsx on lines 448..455
    frontend/route_config.tsx on lines 456..463
    frontend/route_config.tsx on lines 464..471
    frontend/route_config.tsx on lines 472..479
    frontend/route_config.tsx on lines 496..503
    frontend/route_config.tsx on lines 520..527
    frontend/route_config.tsx on lines 528..535
    frontend/route_config.tsx on lines 536..543
    frontend/route_config.tsx on lines 544..551
    frontend/route_config.tsx on lines 560..567
    frontend/route_config.tsx on lines 576..583
    frontend/route_config.tsx on lines 584..591
    frontend/route_config.tsx on lines 600..607
    frontend/route_config.tsx on lines 608..615

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

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

      route({
        children: true,
        $: Path.route(Path.plantTemplates(":plant_template_id")),
        getModule,
        key,
    Severity: Major
    Found in frontend/route_config.tsx and 33 other locations - About 1 hr to fix
    frontend/route_config.tsx on lines 152..159
    frontend/route_config.tsx on lines 160..167
    frontend/route_config.tsx on lines 184..191
    frontend/route_config.tsx on lines 192..199
    frontend/route_config.tsx on lines 208..215
    frontend/route_config.tsx on lines 216..223
    frontend/route_config.tsx on lines 232..239
    frontend/route_config.tsx on lines 248..255
    frontend/route_config.tsx on lines 256..263
    frontend/route_config.tsx on lines 264..271
    frontend/route_config.tsx on lines 296..303
    frontend/route_config.tsx on lines 304..311
    frontend/route_config.tsx on lines 328..335
    frontend/route_config.tsx on lines 352..359
    frontend/route_config.tsx on lines 360..367
    frontend/route_config.tsx on lines 376..383
    frontend/route_config.tsx on lines 392..399
    frontend/route_config.tsx on lines 408..415
    frontend/route_config.tsx on lines 416..423
    frontend/route_config.tsx on lines 448..455
    frontend/route_config.tsx on lines 456..463
    frontend/route_config.tsx on lines 464..471
    frontend/route_config.tsx on lines 472..479
    frontend/route_config.tsx on lines 496..503
    frontend/route_config.tsx on lines 520..527
    frontend/route_config.tsx on lines 528..535
    frontend/route_config.tsx on lines 536..543
    frontend/route_config.tsx on lines 544..551
    frontend/route_config.tsx on lines 560..567
    frontend/route_config.tsx on lines 576..583
    frontend/route_config.tsx on lines 584..591
    frontend/route_config.tsx on lines 600..607
    frontend/route_config.tsx on lines 608..615

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

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

      route({
        children: true,
        $: Path.route(Path.farmware(":farmware_name")),
        getModule,
        key,
    Severity: Major
    Found in frontend/route_config.tsx and 33 other locations - About 1 hr to fix
    frontend/route_config.tsx on lines 152..159
    frontend/route_config.tsx on lines 160..167
    frontend/route_config.tsx on lines 184..191
    frontend/route_config.tsx on lines 192..199
    frontend/route_config.tsx on lines 208..215
    frontend/route_config.tsx on lines 216..223
    frontend/route_config.tsx on lines 232..239
    frontend/route_config.tsx on lines 248..255
    frontend/route_config.tsx on lines 256..263
    frontend/route_config.tsx on lines 264..271
    frontend/route_config.tsx on lines 288..295
    frontend/route_config.tsx on lines 296..303
    frontend/route_config.tsx on lines 304..311
    frontend/route_config.tsx on lines 328..335
    frontend/route_config.tsx on lines 352..359
    frontend/route_config.tsx on lines 376..383
    frontend/route_config.tsx on lines 392..399
    frontend/route_config.tsx on lines 408..415
    frontend/route_config.tsx on lines 416..423
    frontend/route_config.tsx on lines 448..455
    frontend/route_config.tsx on lines 456..463
    frontend/route_config.tsx on lines 464..471
    frontend/route_config.tsx on lines 472..479
    frontend/route_config.tsx on lines 496..503
    frontend/route_config.tsx on lines 520..527
    frontend/route_config.tsx on lines 528..535
    frontend/route_config.tsx on lines 536..543
    frontend/route_config.tsx on lines 544..551
    frontend/route_config.tsx on lines 560..567
    frontend/route_config.tsx on lines 576..583
    frontend/route_config.tsx on lines 584..591
    frontend/route_config.tsx on lines 600..607
    frontend/route_config.tsx on lines 608..615

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

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

      route({
        children: true,
        $: Path.route(Path.designerSequences(":sequence_name")),
        getModule,
        key,
    Severity: Major
    Found in frontend/route_config.tsx and 33 other locations - About 1 hr to fix
    frontend/route_config.tsx on lines 152..159
    frontend/route_config.tsx on lines 160..167
    frontend/route_config.tsx on lines 184..191
    frontend/route_config.tsx on lines 192..199
    frontend/route_config.tsx on lines 208..215
    frontend/route_config.tsx on lines 216..223
    frontend/route_config.tsx on lines 232..239
    frontend/route_config.tsx on lines 248..255
    frontend/route_config.tsx on lines 256..263
    frontend/route_config.tsx on lines 264..271
    frontend/route_config.tsx on lines 288..295
    frontend/route_config.tsx on lines 296..303
    frontend/route_config.tsx on lines 304..311
    frontend/route_config.tsx on lines 328..335
    frontend/route_config.tsx on lines 352..359
    frontend/route_config.tsx on lines 360..367
    frontend/route_config.tsx on lines 392..399
    frontend/route_config.tsx on lines 408..415
    frontend/route_config.tsx on lines 416..423
    frontend/route_config.tsx on lines 448..455
    frontend/route_config.tsx on lines 456..463
    frontend/route_config.tsx on lines 464..471
    frontend/route_config.tsx on lines 472..479
    frontend/route_config.tsx on lines 496..503
    frontend/route_config.tsx on lines 520..527
    frontend/route_config.tsx on lines 528..535
    frontend/route_config.tsx on lines 536..543
    frontend/route_config.tsx on lines 544..551
    frontend/route_config.tsx on lines 560..567
    frontend/route_config.tsx on lines 576..583
    frontend/route_config.tsx on lines 584..591
    frontend/route_config.tsx on lines 600..607
    frontend/route_config.tsx on lines 608..615

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

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

      route({
        children: true,
        $: Path.route(Path.plants("gardens")),
        getModule,
        key,
    Severity: Major
    Found in frontend/route_config.tsx and 33 other locations - About 1 hr to fix
    frontend/route_config.tsx on lines 152..159
    frontend/route_config.tsx on lines 160..167
    frontend/route_config.tsx on lines 192..199
    frontend/route_config.tsx on lines 208..215
    frontend/route_config.tsx on lines 216..223
    frontend/route_config.tsx on lines 232..239
    frontend/route_config.tsx on lines 248..255
    frontend/route_config.tsx on lines 256..263
    frontend/route_config.tsx on lines 264..271
    frontend/route_config.tsx on lines 288..295
    frontend/route_config.tsx on lines 296..303
    frontend/route_config.tsx on lines 304..311
    frontend/route_config.tsx on lines 328..335
    frontend/route_config.tsx on lines 352..359
    frontend/route_config.tsx on lines 360..367
    frontend/route_config.tsx on lines 376..383
    frontend/route_config.tsx on lines 392..399
    frontend/route_config.tsx on lines 408..415
    frontend/route_config.tsx on lines 416..423
    frontend/route_config.tsx on lines 448..455
    frontend/route_config.tsx on lines 456..463
    frontend/route_config.tsx on lines 464..471
    frontend/route_config.tsx on lines 472..479
    frontend/route_config.tsx on lines 496..503
    frontend/route_config.tsx on lines 520..527
    frontend/route_config.tsx on lines 528..535
    frontend/route_config.tsx on lines 536..543
    frontend/route_config.tsx on lines 544..551
    frontend/route_config.tsx on lines 560..567
    frontend/route_config.tsx on lines 576..583
    frontend/route_config.tsx on lines 584..591
    frontend/route_config.tsx on lines 600..607
    frontend/route_config.tsx on lines 608..615

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

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

      route({
        children: true,
        $: Path.route(Path.savedGardens("add")),
        getModule,
        key,
    Severity: Major
    Found in frontend/route_config.tsx and 33 other locations - About 1 hr to fix
    frontend/route_config.tsx on lines 152..159
    frontend/route_config.tsx on lines 160..167
    frontend/route_config.tsx on lines 184..191
    frontend/route_config.tsx on lines 192..199
    frontend/route_config.tsx on lines 208..215
    frontend/route_config.tsx on lines 216..223
    frontend/route_config.tsx on lines 232..239
    frontend/route_config.tsx on lines 248..255
    frontend/route_config.tsx on lines 256..263
    frontend/route_config.tsx on lines 264..271
    frontend/route_config.tsx on lines 288..295
    frontend/route_config.tsx on lines 304..311
    frontend/route_config.tsx on lines 328..335
    frontend/route_config.tsx on lines 352..359
    frontend/route_config.tsx on lines 360..367
    frontend/route_config.tsx on lines 376..383
    frontend/route_config.tsx on lines 392..399
    frontend/route_config.tsx on lines 408..415
    frontend/route_config.tsx on lines 416..423
    frontend/route_config.tsx on lines 448..455
    frontend/route_config.tsx on lines 456..463
    frontend/route_config.tsx on lines 464..471
    frontend/route_config.tsx on lines 472..479
    frontend/route_config.tsx on lines 496..503
    frontend/route_config.tsx on lines 520..527
    frontend/route_config.tsx on lines 528..535
    frontend/route_config.tsx on lines 536..543
    frontend/route_config.tsx on lines 544..551
    frontend/route_config.tsx on lines 560..567
    frontend/route_config.tsx on lines 576..583
    frontend/route_config.tsx on lines 584..591
    frontend/route_config.tsx on lines 600..607
    frontend/route_config.tsx on lines 608..615

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

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

      route({
        children: true,
        $: Path.route(Path.sequenceVersion(":sequence_version_id")),
        getModule,
        key,
    Severity: Major
    Found in frontend/route_config.tsx and 33 other locations - About 1 hr to fix
    frontend/route_config.tsx on lines 152..159
    frontend/route_config.tsx on lines 160..167
    frontend/route_config.tsx on lines 184..191
    frontend/route_config.tsx on lines 192..199
    frontend/route_config.tsx on lines 208..215
    frontend/route_config.tsx on lines 216..223
    frontend/route_config.tsx on lines 232..239
    frontend/route_config.tsx on lines 248..255
    frontend/route_config.tsx on lines 256..263
    frontend/route_config.tsx on lines 264..271
    frontend/route_config.tsx on lines 288..295
    frontend/route_config.tsx on lines 296..303
    frontend/route_config.tsx on lines 304..311
    frontend/route_config.tsx on lines 328..335
    frontend/route_config.tsx on lines 352..359
    frontend/route_config.tsx on lines 360..367
    frontend/route_config.tsx on lines 376..383
    frontend/route_config.tsx on lines 408..415
    frontend/route_config.tsx on lines 416..423
    frontend/route_config.tsx on lines 448..455
    frontend/route_config.tsx on lines 456..463
    frontend/route_config.tsx on lines 464..471
    frontend/route_config.tsx on lines 472..479
    frontend/route_config.tsx on lines 496..503
    frontend/route_config.tsx on lines 520..527
    frontend/route_config.tsx on lines 528..535
    frontend/route_config.tsx on lines 536..543
    frontend/route_config.tsx on lines 544..551
    frontend/route_config.tsx on lines 560..567
    frontend/route_config.tsx on lines 576..583
    frontend/route_config.tsx on lines 584..591
    frontend/route_config.tsx on lines 600..607
    frontend/route_config.tsx on lines 608..615

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

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

      route({
        children: true,
        $: Path.route(Path.zones(":zone_id")),
        getModule,
        key,
    Severity: Major
    Found in frontend/route_config.tsx and 33 other locations - About 1 hr to fix
    frontend/route_config.tsx on lines 152..159
    frontend/route_config.tsx on lines 160..167
    frontend/route_config.tsx on lines 184..191
    frontend/route_config.tsx on lines 192..199
    frontend/route_config.tsx on lines 208..215
    frontend/route_config.tsx on lines 216..223
    frontend/route_config.tsx on lines 232..239
    frontend/route_config.tsx on lines 248..255
    frontend/route_config.tsx on lines 256..263
    frontend/route_config.tsx on lines 264..271
    frontend/route_config.tsx on lines 288..295
    frontend/route_config.tsx on lines 296..303
    frontend/route_config.tsx on lines 304..311
    frontend/route_config.tsx on lines 328..335
    frontend/route_config.tsx on lines 352..359
    frontend/route_config.tsx on lines 360..367
    frontend/route_config.tsx on lines 376..383
    frontend/route_config.tsx on lines 392..399
    frontend/route_config.tsx on lines 408..415
    frontend/route_config.tsx on lines 416..423
    frontend/route_config.tsx on lines 448..455
    frontend/route_config.tsx on lines 456..463
    frontend/route_config.tsx on lines 464..471
    frontend/route_config.tsx on lines 472..479
    frontend/route_config.tsx on lines 496..503
    frontend/route_config.tsx on lines 520..527
    frontend/route_config.tsx on lines 528..535
    frontend/route_config.tsx on lines 536..543
    frontend/route_config.tsx on lines 544..551
    frontend/route_config.tsx on lines 560..567
    frontend/route_config.tsx on lines 576..583
    frontend/route_config.tsx on lines 584..591
    frontend/route_config.tsx on lines 600..607

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

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

      route({
        children: true,
        $: Path.route(Path.setup()),
        getModule,
        key,
    Severity: Major
    Found in frontend/route_config.tsx and 24 other locations - About 1 hr to fix
    frontend/route_config.tsx on lines 144..151
    frontend/route_config.tsx on lines 168..175
    frontend/route_config.tsx on lines 176..183
    frontend/route_config.tsx on lines 200..207
    frontend/route_config.tsx on lines 224..231
    frontend/route_config.tsx on lines 240..247
    frontend/route_config.tsx on lines 272..279
    frontend/route_config.tsx on lines 280..287
    frontend/route_config.tsx on lines 312..319
    frontend/route_config.tsx on lines 336..343
    frontend/route_config.tsx on lines 344..351
    frontend/route_config.tsx on lines 368..375
    frontend/route_config.tsx on lines 384..391
    frontend/route_config.tsx on lines 400..407
    frontend/route_config.tsx on lines 424..431
    frontend/route_config.tsx on lines 432..439
    frontend/route_config.tsx on lines 440..447
    frontend/route_config.tsx on lines 480..487
    frontend/route_config.tsx on lines 488..495
    frontend/route_config.tsx on lines 504..511
    frontend/route_config.tsx on lines 512..519
    frontend/route_config.tsx on lines 552..559
    frontend/route_config.tsx on lines 568..575
    frontend/route_config.tsx on lines 592..599

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

      route({
        children: true,
        $: Path.route(Path.sequenceVersion()),
        getModule,
        key,
    Severity: Major
    Found in frontend/route_config.tsx and 24 other locations - About 1 hr to fix
    frontend/route_config.tsx on lines 144..151
    frontend/route_config.tsx on lines 168..175
    frontend/route_config.tsx on lines 176..183
    frontend/route_config.tsx on lines 200..207
    frontend/route_config.tsx on lines 224..231
    frontend/route_config.tsx on lines 240..247
    frontend/route_config.tsx on lines 272..279
    frontend/route_config.tsx on lines 280..287
    frontend/route_config.tsx on lines 312..319
    frontend/route_config.tsx on lines 320..327
    frontend/route_config.tsx on lines 336..343
    frontend/route_config.tsx on lines 344..351
    frontend/route_config.tsx on lines 368..375
    frontend/route_config.tsx on lines 400..407
    frontend/route_config.tsx on lines 424..431
    frontend/route_config.tsx on lines 432..439
    frontend/route_config.tsx on lines 440..447
    frontend/route_config.tsx on lines 480..487
    frontend/route_config.tsx on lines 488..495
    frontend/route_config.tsx on lines 504..511
    frontend/route_config.tsx on lines 512..519
    frontend/route_config.tsx on lines 552..559
    frontend/route_config.tsx on lines 568..575
    frontend/route_config.tsx on lines 592..599

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

      route({
        children: true,
        $: Path.route(Path.tools()),
        getModule,
        key,
    Severity: Major
    Found in frontend/route_config.tsx and 24 other locations - About 1 hr to fix
    frontend/route_config.tsx on lines 144..151
    frontend/route_config.tsx on lines 168..175
    frontend/route_config.tsx on lines 176..183
    frontend/route_config.tsx on lines 200..207
    frontend/route_config.tsx on lines 224..231
    frontend/route_config.tsx on lines 240..247
    frontend/route_config.tsx on lines 272..279
    frontend/route_config.tsx on lines 280..287
    frontend/route_config.tsx on lines 312..319
    frontend/route_config.tsx on lines 320..327
    frontend/route_config.tsx on lines 336..343
    frontend/route_config.tsx on lines 344..351
    frontend/route_config.tsx on lines 368..375
    frontend/route_config.tsx on lines 384..391
    frontend/route_config.tsx on lines 400..407
    frontend/route_config.tsx on lines 424..431
    frontend/route_config.tsx on lines 432..439
    frontend/route_config.tsx on lines 440..447
    frontend/route_config.tsx on lines 480..487
    frontend/route_config.tsx on lines 488..495
    frontend/route_config.tsx on lines 504..511
    frontend/route_config.tsx on lines 552..559
    frontend/route_config.tsx on lines 568..575
    frontend/route_config.tsx on lines 592..599

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

      route({
        children: true,
        $: Path.route(Path.zones()),
        getModule,
        key,
    Severity: Major
    Found in frontend/route_config.tsx and 24 other locations - About 1 hr to fix
    frontend/route_config.tsx on lines 144..151
    frontend/route_config.tsx on lines 168..175
    frontend/route_config.tsx on lines 176..183
    frontend/route_config.tsx on lines 200..207
    frontend/route_config.tsx on lines 224..231
    frontend/route_config.tsx on lines 240..247
    frontend/route_config.tsx on lines 272..279
    frontend/route_config.tsx on lines 280..287
    frontend/route_config.tsx on lines 312..319
    frontend/route_config.tsx on lines 320..327
    frontend/route_config.tsx on lines 336..343
    frontend/route_config.tsx on lines 344..351
    frontend/route_config.tsx on lines 368..375
    frontend/route_config.tsx on lines 384..391
    frontend/route_config.tsx on lines 400..407
    frontend/route_config.tsx on lines 424..431
    frontend/route_config.tsx on lines 432..439
    frontend/route_config.tsx on lines 440..447
    frontend/route_config.tsx on lines 480..487
    frontend/route_config.tsx on lines 488..495
    frontend/route_config.tsx on lines 504..511
    frontend/route_config.tsx on lines 512..519
    frontend/route_config.tsx on lines 552..559
    frontend/route_config.tsx on lines 568..575

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

      route({
        children: true,
        $: Path.route(Path.regimens()),
        getModule,
        key,
    Severity: Major
    Found in frontend/route_config.tsx and 24 other locations - About 1 hr to fix
    frontend/route_config.tsx on lines 144..151
    frontend/route_config.tsx on lines 168..175
    frontend/route_config.tsx on lines 176..183
    frontend/route_config.tsx on lines 200..207
    frontend/route_config.tsx on lines 224..231
    frontend/route_config.tsx on lines 240..247
    frontend/route_config.tsx on lines 272..279
    frontend/route_config.tsx on lines 280..287
    frontend/route_config.tsx on lines 312..319
    frontend/route_config.tsx on lines 320..327
    frontend/route_config.tsx on lines 336..343
    frontend/route_config.tsx on lines 344..351
    frontend/route_config.tsx on lines 368..375
    frontend/route_config.tsx on lines 384..391
    frontend/route_config.tsx on lines 424..431
    frontend/route_config.tsx on lines 432..439
    frontend/route_config.tsx on lines 440..447
    frontend/route_config.tsx on lines 480..487
    frontend/route_config.tsx on lines 488..495
    frontend/route_config.tsx on lines 504..511
    frontend/route_config.tsx on lines 512..519
    frontend/route_config.tsx on lines 552..559
    frontend/route_config.tsx on lines 568..575
    frontend/route_config.tsx on lines 592..599

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

      route({
        children: true,
        $: Path.route(Path.developer()),
        getModule,
        key,
    Severity: Major
    Found in frontend/route_config.tsx and 24 other locations - About 1 hr to fix
    frontend/route_config.tsx on lines 144..151
    frontend/route_config.tsx on lines 168..175
    frontend/route_config.tsx on lines 176..183
    frontend/route_config.tsx on lines 200..207
    frontend/route_config.tsx on lines 224..231
    frontend/route_config.tsx on lines 240..247
    frontend/route_config.tsx on lines 272..279
    frontend/route_config.tsx on lines 280..287
    frontend/route_config.tsx on lines 312..319
    frontend/route_config.tsx on lines 320..327
    frontend/route_config.tsx on lines 336..343
    frontend/route_config.tsx on lines 344..351
    frontend/route_config.tsx on lines 368..375
    frontend/route_config.tsx on lines 384..391
    frontend/route_config.tsx on lines 400..407
    frontend/route_config.tsx on lines 424..431
    frontend/route_config.tsx on lines 432..439
    frontend/route_config.tsx on lines 480..487
    frontend/route_config.tsx on lines 488..495
    frontend/route_config.tsx on lines 504..511
    frontend/route_config.tsx on lines 512..519
    frontend/route_config.tsx on lines 552..559
    frontend/route_config.tsx on lines 568..575
    frontend/route_config.tsx on lines 592..599

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

      route({
        children: true,
        $: Path.route(Path.photos()),
        getModule,
        key,
    Severity: Major
    Found in frontend/route_config.tsx and 24 other locations - About 1 hr to fix
    frontend/route_config.tsx on lines 144..151
    frontend/route_config.tsx on lines 168..175
    frontend/route_config.tsx on lines 176..183
    frontend/route_config.tsx on lines 200..207
    frontend/route_config.tsx on lines 224..231
    frontend/route_config.tsx on lines 240..247
    frontend/route_config.tsx on lines 272..279
    frontend/route_config.tsx on lines 280..287
    frontend/route_config.tsx on lines 312..319
    frontend/route_config.tsx on lines 320..327
    frontend/route_config.tsx on lines 344..351
    frontend/route_config.tsx on lines 368..375
    frontend/route_config.tsx on lines 384..391
    frontend/route_config.tsx on lines 400..407
    frontend/route_config.tsx on lines 424..431
    frontend/route_config.tsx on lines 432..439
    frontend/route_config.tsx on lines 440..447
    frontend/route_config.tsx on lines 480..487
    frontend/route_config.tsx on lines 488..495
    frontend/route_config.tsx on lines 504..511
    frontend/route_config.tsx on lines 512..519
    frontend/route_config.tsx on lines 552..559
    frontend/route_config.tsx on lines 568..575
    frontend/route_config.tsx on lines 592..599

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

      route({
        children: true,
        $: Path.route(Path.support()),
        getModule,
        key,
    Severity: Major
    Found in frontend/route_config.tsx and 24 other locations - About 1 hr to fix
    frontend/route_config.tsx on lines 144..151
    frontend/route_config.tsx on lines 168..175
    frontend/route_config.tsx on lines 176..183
    frontend/route_config.tsx on lines 200..207
    frontend/route_config.tsx on lines 224..231
    frontend/route_config.tsx on lines 240..247
    frontend/route_config.tsx on lines 272..279
    frontend/route_config.tsx on lines 280..287
    frontend/route_config.tsx on lines 312..319
    frontend/route_config.tsx on lines 320..327
    frontend/route_config.tsx on lines 336..343
    frontend/route_config.tsx on lines 344..351
    frontend/route_config.tsx on lines 368..375
    frontend/route_config.tsx on lines 384..391
    frontend/route_config.tsx on lines 400..407
    frontend/route_config.tsx on lines 424..431
    frontend/route_config.tsx on lines 432..439
    frontend/route_config.tsx on lines 440..447
    frontend/route_config.tsx on lines 480..487
    frontend/route_config.tsx on lines 504..511
    frontend/route_config.tsx on lines 512..519
    frontend/route_config.tsx on lines 552..559
    frontend/route_config.tsx on lines 568..575
    frontend/route_config.tsx on lines 592..599

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

      route({
        children: true,
        $: Path.route(Path.groups()),
        getModule,
        key,
    Severity: Major
    Found in frontend/route_config.tsx and 24 other locations - About 1 hr to fix
    frontend/route_config.tsx on lines 144..151
    frontend/route_config.tsx on lines 168..175
    frontend/route_config.tsx on lines 176..183
    frontend/route_config.tsx on lines 200..207
    frontend/route_config.tsx on lines 224..231
    frontend/route_config.tsx on lines 240..247
    frontend/route_config.tsx on lines 272..279
    frontend/route_config.tsx on lines 280..287
    frontend/route_config.tsx on lines 312..319
    frontend/route_config.tsx on lines 320..327
    frontend/route_config.tsx on lines 336..343
    frontend/route_config.tsx on lines 344..351
    frontend/route_config.tsx on lines 368..375
    frontend/route_config.tsx on lines 384..391
    frontend/route_config.tsx on lines 400..407
    frontend/route_config.tsx on lines 424..431
    frontend/route_config.tsx on lines 432..439
    frontend/route_config.tsx on lines 440..447
    frontend/route_config.tsx on lines 480..487
    frontend/route_config.tsx on lines 488..495
    frontend/route_config.tsx on lines 504..511
    frontend/route_config.tsx on lines 512..519
    frontend/route_config.tsx on lines 568..575
    frontend/route_config.tsx on lines 592..599

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

      route({
        children: true,
        $: Path.route(Path.farmEvents()),
        getModule,
        key,
    Severity: Major
    Found in frontend/route_config.tsx and 24 other locations - About 1 hr to fix
    frontend/route_config.tsx on lines 168..175
    frontend/route_config.tsx on lines 176..183
    frontend/route_config.tsx on lines 200..207
    frontend/route_config.tsx on lines 224..231
    frontend/route_config.tsx on lines 240..247
    frontend/route_config.tsx on lines 272..279
    frontend/route_config.tsx on lines 280..287
    frontend/route_config.tsx on lines 312..319
    frontend/route_config.tsx on lines 320..327
    frontend/route_config.tsx on lines 336..343
    frontend/route_config.tsx on lines 344..351
    frontend/route_config.tsx on lines 368..375
    frontend/route_config.tsx on lines 384..391
    frontend/route_config.tsx on lines 400..407
    frontend/route_config.tsx on lines 424..431
    frontend/route_config.tsx on lines 432..439
    frontend/route_config.tsx on lines 440..447
    frontend/route_config.tsx on lines 480..487
    frontend/route_config.tsx on lines 488..495
    frontend/route_config.tsx on lines 504..511
    frontend/route_config.tsx on lines 512..519
    frontend/route_config.tsx on lines 552..559
    frontend/route_config.tsx on lines 568..575
    frontend/route_config.tsx on lines 592..599

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

      route({
        children: true,
        $: Path.route(Path.help()),
        getModule,
        key,
    Severity: Major
    Found in frontend/route_config.tsx and 24 other locations - About 1 hr to fix
    frontend/route_config.tsx on lines 144..151
    frontend/route_config.tsx on lines 168..175
    frontend/route_config.tsx on lines 176..183
    frontend/route_config.tsx on lines 200..207
    frontend/route_config.tsx on lines 224..231
    frontend/route_config.tsx on lines 240..247
    frontend/route_config.tsx on lines 272..279
    frontend/route_config.tsx on lines 280..287
    frontend/route_config.tsx on lines 312..319
    frontend/route_config.tsx on lines 320..327
    frontend/route_config.tsx on lines 336..343
    frontend/route_config.tsx on lines 344..351
    frontend/route_config.tsx on lines 368..375
    frontend/route_config.tsx on lines 384..391
    frontend/route_config.tsx on lines 400..407
    frontend/route_config.tsx on lines 424..431
    frontend/route_config.tsx on lines 440..447
    frontend/route_config.tsx on lines 480..487
    frontend/route_config.tsx on lines 488..495
    frontend/route_config.tsx on lines 504..511
    frontend/route_config.tsx on lines 512..519
    frontend/route_config.tsx on lines 552..559
    frontend/route_config.tsx on lines 568..575
    frontend/route_config.tsx on lines 592..599

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

      route({
        children: true,
        $: Path.route(Path.savedGardens()),
        getModule,
        key,
    Severity: Major
    Found in frontend/route_config.tsx and 24 other locations - About 1 hr to fix
    frontend/route_config.tsx on lines 144..151
    frontend/route_config.tsx on lines 168..175
    frontend/route_config.tsx on lines 176..183
    frontend/route_config.tsx on lines 200..207
    frontend/route_config.tsx on lines 224..231
    frontend/route_config.tsx on lines 240..247
    frontend/route_config.tsx on lines 280..287
    frontend/route_config.tsx on lines 312..319
    frontend/route_config.tsx on lines 320..327
    frontend/route_config.tsx on lines 336..343
    frontend/route_config.tsx on lines 344..351
    frontend/route_config.tsx on lines 368..375
    frontend/route_config.tsx on lines 384..391
    frontend/route_config.tsx on lines 400..407
    frontend/route_config.tsx on lines 424..431
    frontend/route_config.tsx on lines 432..439
    frontend/route_config.tsx on lines 440..447
    frontend/route_config.tsx on lines 480..487
    frontend/route_config.tsx on lines 488..495
    frontend/route_config.tsx on lines 504..511
    frontend/route_config.tsx on lines 512..519
    frontend/route_config.tsx on lines 552..559
    frontend/route_config.tsx on lines 568..575
    frontend/route_config.tsx on lines 592..599

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

      route({
        children: true,
        $: Path.route(Path.weeds()),
        getModule,
        key,
    Severity: Major
    Found in frontend/route_config.tsx and 24 other locations - About 1 hr to fix
    frontend/route_config.tsx on lines 144..151
    frontend/route_config.tsx on lines 168..175
    frontend/route_config.tsx on lines 176..183
    frontend/route_config.tsx on lines 200..207
    frontend/route_config.tsx on lines 224..231
    frontend/route_config.tsx on lines 240..247
    frontend/route_config.tsx on lines 272..279
    frontend/route_config.tsx on lines 280..287
    frontend/route_config.tsx on lines 312..319
    frontend/route_config.tsx on lines 320..327
    frontend/route_config.tsx on lines 336..343
    frontend/route_config.tsx on lines 344..351
    frontend/route_config.tsx on lines 368..375
    frontend/route_config.tsx on lines 384..391
    frontend/route_config.tsx on lines 400..407
    frontend/route_config.tsx on lines 424..431
    frontend/route_config.tsx on lines 432..439
    frontend/route_config.tsx on lines 440..447
    frontend/route_config.tsx on lines 480..487
    frontend/route_config.tsx on lines 488..495
    frontend/route_config.tsx on lines 504..511
    frontend/route_config.tsx on lines 512..519
    frontend/route_config.tsx on lines 552..559
    frontend/route_config.tsx on lines 592..599

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

      route({
        children: true,
        $: Path.route(Path.curves()),
        getModule,
        key,
    Severity: Major
    Found in frontend/route_config.tsx and 24 other locations - About 1 hr to fix
    frontend/route_config.tsx on lines 144..151
    frontend/route_config.tsx on lines 168..175
    frontend/route_config.tsx on lines 176..183
    frontend/route_config.tsx on lines 200..207
    frontend/route_config.tsx on lines 240..247
    frontend/route_config.tsx on lines 272..279
    frontend/route_config.tsx on lines 280..287
    frontend/route_config.tsx on lines 312..319
    frontend/route_config.tsx on lines 320..327
    frontend/route_config.tsx on lines 336..343
    frontend/route_config.tsx on lines 344..351
    frontend/route_config.tsx on lines 368..375
    frontend/route_config.tsx on lines 384..391
    frontend/route_config.tsx on lines 400..407
    frontend/route_config.tsx on lines 424..431
    frontend/route_config.tsx on lines 432..439
    frontend/route_config.tsx on lines 440..447
    frontend/route_config.tsx on lines 480..487
    frontend/route_config.tsx on lines 488..495
    frontend/route_config.tsx on lines 504..511
    frontend/route_config.tsx on lines 512..519
    frontend/route_config.tsx on lines 552..559
    frontend/route_config.tsx on lines 568..575
    frontend/route_config.tsx on lines 592..599

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

      route({
        children: true,
        $: Path.route(Path.cropSearch()),
        getModule,
        key,
    Severity: Major
    Found in frontend/route_config.tsx and 24 other locations - About 1 hr to fix
    frontend/route_config.tsx on lines 144..151
    frontend/route_config.tsx on lines 168..175
    frontend/route_config.tsx on lines 176..183
    frontend/route_config.tsx on lines 200..207
    frontend/route_config.tsx on lines 224..231
    frontend/route_config.tsx on lines 272..279
    frontend/route_config.tsx on lines 280..287
    frontend/route_config.tsx on lines 312..319
    frontend/route_config.tsx on lines 320..327
    frontend/route_config.tsx on lines 336..343
    frontend/route_config.tsx on lines 344..351
    frontend/route_config.tsx on lines 368..375
    frontend/route_config.tsx on lines 384..391
    frontend/route_config.tsx on lines 400..407
    frontend/route_config.tsx on lines 424..431
    frontend/route_config.tsx on lines 432..439
    frontend/route_config.tsx on lines 440..447
    frontend/route_config.tsx on lines 480..487
    frontend/route_config.tsx on lines 488..495
    frontend/route_config.tsx on lines 504..511
    frontend/route_config.tsx on lines 512..519
    frontend/route_config.tsx on lines 552..559
    frontend/route_config.tsx on lines 568..575
    frontend/route_config.tsx on lines 592..599

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

      route({
        children: true,
        $: Path.route(Path.farmware()),
        getModule,
        key,
    Severity: Major
    Found in frontend/route_config.tsx and 24 other locations - About 1 hr to fix
    frontend/route_config.tsx on lines 144..151
    frontend/route_config.tsx on lines 168..175
    frontend/route_config.tsx on lines 176..183
    frontend/route_config.tsx on lines 200..207
    frontend/route_config.tsx on lines 224..231
    frontend/route_config.tsx on lines 240..247
    frontend/route_config.tsx on lines 272..279
    frontend/route_config.tsx on lines 280..287
    frontend/route_config.tsx on lines 312..319
    frontend/route_config.tsx on lines 320..327
    frontend/route_config.tsx on lines 336..343
    frontend/route_config.tsx on lines 368..375
    frontend/route_config.tsx on lines 384..391
    frontend/route_config.tsx on lines 400..407
    frontend/route_config.tsx on lines 424..431
    frontend/route_config.tsx on lines 432..439
    frontend/route_config.tsx on lines 440..447
    frontend/route_config.tsx on lines 480..487
    frontend/route_config.tsx on lines 488..495
    frontend/route_config.tsx on lines 504..511
    frontend/route_config.tsx on lines 512..519
    frontend/route_config.tsx on lines 552..559
    frontend/route_config.tsx on lines 568..575
    frontend/route_config.tsx on lines 592..599

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

      route({
        children: true,
        $: Path.route(Path.tours()),
        getModule,
        key,
    Severity: Major
    Found in frontend/route_config.tsx and 24 other locations - About 1 hr to fix
    frontend/route_config.tsx on lines 144..151
    frontend/route_config.tsx on lines 168..175
    frontend/route_config.tsx on lines 176..183
    frontend/route_config.tsx on lines 200..207
    frontend/route_config.tsx on lines 224..231
    frontend/route_config.tsx on lines 240..247
    frontend/route_config.tsx on lines 272..279
    frontend/route_config.tsx on lines 280..287
    frontend/route_config.tsx on lines 312..319
    frontend/route_config.tsx on lines 320..327
    frontend/route_config.tsx on lines 336..343
    frontend/route_config.tsx on lines 344..351
    frontend/route_config.tsx on lines 368..375
    frontend/route_config.tsx on lines 384..391
    frontend/route_config.tsx on lines 400..407
    frontend/route_config.tsx on lines 424..431
    frontend/route_config.tsx on lines 432..439
    frontend/route_config.tsx on lines 440..447
    frontend/route_config.tsx on lines 488..495
    frontend/route_config.tsx on lines 504..511
    frontend/route_config.tsx on lines 512..519
    frontend/route_config.tsx on lines 552..559
    frontend/route_config.tsx on lines 568..575
    frontend/route_config.tsx on lines 592..599

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

      route({
        children: true,
        $: Path.route(Path.plants()),
        getModule,
        key,
    Severity: Major
    Found in frontend/route_config.tsx and 24 other locations - About 1 hr to fix
    frontend/route_config.tsx on lines 144..151
    frontend/route_config.tsx on lines 176..183
    frontend/route_config.tsx on lines 200..207
    frontend/route_config.tsx on lines 224..231
    frontend/route_config.tsx on lines 240..247
    frontend/route_config.tsx on lines 272..279
    frontend/route_config.tsx on lines 280..287
    frontend/route_config.tsx on lines 312..319
    frontend/route_config.tsx on lines 320..327
    frontend/route_config.tsx on lines 336..343
    frontend/route_config.tsx on lines 344..351
    frontend/route_config.tsx on lines 368..375
    frontend/route_config.tsx on lines 384..391
    frontend/route_config.tsx on lines 400..407
    frontend/route_config.tsx on lines 424..431
    frontend/route_config.tsx on lines 432..439
    frontend/route_config.tsx on lines 440..447
    frontend/route_config.tsx on lines 480..487
    frontend/route_config.tsx on lines 488..495
    frontend/route_config.tsx on lines 504..511
    frontend/route_config.tsx on lines 512..519
    frontend/route_config.tsx on lines 552..559
    frontend/route_config.tsx on lines 568..575
    frontend/route_config.tsx on lines 592..599

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

      route({
        children: true,
        $: Path.route(Path.location()),
        getModule,
        key,
    Severity: Major
    Found in frontend/route_config.tsx and 24 other locations - About 1 hr to fix
    frontend/route_config.tsx on lines 144..151
    frontend/route_config.tsx on lines 168..175
    frontend/route_config.tsx on lines 200..207
    frontend/route_config.tsx on lines 224..231
    frontend/route_config.tsx on lines 240..247
    frontend/route_config.tsx on lines 272..279
    frontend/route_config.tsx on lines 280..287
    frontend/route_config.tsx on lines 312..319
    frontend/route_config.tsx on lines 320..327
    frontend/route_config.tsx on lines 336..343
    frontend/route_config.tsx on lines 344..351
    frontend/route_config.tsx on lines 368..375
    frontend/route_config.tsx on lines 384..391
    frontend/route_config.tsx on lines 400..407
    frontend/route_config.tsx on lines 424..431
    frontend/route_config.tsx on lines 432..439
    frontend/route_config.tsx on lines 440..447
    frontend/route_config.tsx on lines 480..487
    frontend/route_config.tsx on lines 488..495
    frontend/route_config.tsx on lines 504..511
    frontend/route_config.tsx on lines 512..519
    frontend/route_config.tsx on lines 552..559
    frontend/route_config.tsx on lines 568..575
    frontend/route_config.tsx on lines 592..599

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

      route({
        children: true,
        $: Path.route(Path.points()),
        getModule,
        key,
    Severity: Major
    Found in frontend/route_config.tsx and 24 other locations - About 1 hr to fix
    frontend/route_config.tsx on lines 144..151
    frontend/route_config.tsx on lines 168..175
    frontend/route_config.tsx on lines 176..183
    frontend/route_config.tsx on lines 224..231
    frontend/route_config.tsx on lines 240..247
    frontend/route_config.tsx on lines 272..279
    frontend/route_config.tsx on lines 280..287
    frontend/route_config.tsx on lines 312..319
    frontend/route_config.tsx on lines 320..327
    frontend/route_config.tsx on lines 336..343
    frontend/route_config.tsx on lines 344..351
    frontend/route_config.tsx on lines 368..375
    frontend/route_config.tsx on lines 384..391
    frontend/route_config.tsx on lines 400..407
    frontend/route_config.tsx on lines 424..431
    frontend/route_config.tsx on lines 432..439
    frontend/route_config.tsx on lines 440..447
    frontend/route_config.tsx on lines 480..487
    frontend/route_config.tsx on lines 488..495
    frontend/route_config.tsx on lines 504..511
    frontend/route_config.tsx on lines 512..519
    frontend/route_config.tsx on lines 552..559
    frontend/route_config.tsx on lines 568..575
    frontend/route_config.tsx on lines 592..599

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

      route({
        children: true,
        $: Path.route(Path.plantTemplates()),
        getModule,
        key,
    Severity: Major
    Found in frontend/route_config.tsx and 24 other locations - About 1 hr to fix
    frontend/route_config.tsx on lines 144..151
    frontend/route_config.tsx on lines 168..175
    frontend/route_config.tsx on lines 176..183
    frontend/route_config.tsx on lines 200..207
    frontend/route_config.tsx on lines 224..231
    frontend/route_config.tsx on lines 240..247
    frontend/route_config.tsx on lines 272..279
    frontend/route_config.tsx on lines 312..319
    frontend/route_config.tsx on lines 320..327
    frontend/route_config.tsx on lines 336..343
    frontend/route_config.tsx on lines 344..351
    frontend/route_config.tsx on lines 368..375
    frontend/route_config.tsx on lines 384..391
    frontend/route_config.tsx on lines 400..407
    frontend/route_config.tsx on lines 424..431
    frontend/route_config.tsx on lines 432..439
    frontend/route_config.tsx on lines 440..447
    frontend/route_config.tsx on lines 480..487
    frontend/route_config.tsx on lines 488..495
    frontend/route_config.tsx on lines 504..511
    frontend/route_config.tsx on lines 512..519
    frontend/route_config.tsx on lines 552..559
    frontend/route_config.tsx on lines 568..575
    frontend/route_config.tsx on lines 592..599

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

      route({
        children: true,
        $: Path.route(Path.designerSequences()),
        getModule,
        key,
    Severity: Major
    Found in frontend/route_config.tsx and 24 other locations - About 1 hr to fix
    frontend/route_config.tsx on lines 144..151
    frontend/route_config.tsx on lines 168..175
    frontend/route_config.tsx on lines 176..183
    frontend/route_config.tsx on lines 200..207
    frontend/route_config.tsx on lines 224..231
    frontend/route_config.tsx on lines 240..247
    frontend/route_config.tsx on lines 272..279
    frontend/route_config.tsx on lines 280..287
    frontend/route_config.tsx on lines 312..319
    frontend/route_config.tsx on lines 320..327
    frontend/route_config.tsx on lines 336..343
    frontend/route_config.tsx on lines 344..351
    frontend/route_config.tsx on lines 384..391
    frontend/route_config.tsx on lines 400..407
    frontend/route_config.tsx on lines 424..431
    frontend/route_config.tsx on lines 432..439
    frontend/route_config.tsx on lines 440..447
    frontend/route_config.tsx on lines 480..487
    frontend/route_config.tsx on lines 488..495
    frontend/route_config.tsx on lines 504..511
    frontend/route_config.tsx on lines 512..519
    frontend/route_config.tsx on lines 552..559
    frontend/route_config.tsx on lines 568..575
    frontend/route_config.tsx on lines 592..599

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

      route({
        children: true,
        $: Path.route(Path.messages()),
        getModule,
        key,
    Severity: Major
    Found in frontend/route_config.tsx and 24 other locations - About 1 hr to fix
    frontend/route_config.tsx on lines 144..151
    frontend/route_config.tsx on lines 168..175
    frontend/route_config.tsx on lines 176..183
    frontend/route_config.tsx on lines 200..207
    frontend/route_config.tsx on lines 224..231
    frontend/route_config.tsx on lines 240..247
    frontend/route_config.tsx on lines 272..279
    frontend/route_config.tsx on lines 280..287
    frontend/route_config.tsx on lines 312..319
    frontend/route_config.tsx on lines 320..327
    frontend/route_config.tsx on lines 336..343
    frontend/route_config.tsx on lines 344..351
    frontend/route_config.tsx on lines 368..375
    frontend/route_config.tsx on lines 384..391
    frontend/route_config.tsx on lines 400..407
    frontend/route_config.tsx on lines 432..439
    frontend/route_config.tsx on lines 440..447
    frontend/route_config.tsx on lines 480..487
    frontend/route_config.tsx on lines 488..495
    frontend/route_config.tsx on lines 504..511
    frontend/route_config.tsx on lines 512..519
    frontend/route_config.tsx on lines 552..559
    frontend/route_config.tsx on lines 568..575
    frontend/route_config.tsx on lines 592..599

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

      route({
        children: true,
        $: Path.route(Path.settings()),
        getModule,
        key,
    Severity: Major
    Found in frontend/route_config.tsx and 24 other locations - About 1 hr to fix
    frontend/route_config.tsx on lines 144..151
    frontend/route_config.tsx on lines 168..175
    frontend/route_config.tsx on lines 176..183
    frontend/route_config.tsx on lines 200..207
    frontend/route_config.tsx on lines 224..231
    frontend/route_config.tsx on lines 240..247
    frontend/route_config.tsx on lines 272..279
    frontend/route_config.tsx on lines 280..287
    frontend/route_config.tsx on lines 312..319
    frontend/route_config.tsx on lines 320..327
    frontend/route_config.tsx on lines 336..343
    frontend/route_config.tsx on lines 344..351
    frontend/route_config.tsx on lines 368..375
    frontend/route_config.tsx on lines 384..391
    frontend/route_config.tsx on lines 400..407
    frontend/route_config.tsx on lines 424..431
    frontend/route_config.tsx on lines 432..439
    frontend/route_config.tsx on lines 440..447
    frontend/route_config.tsx on lines 480..487
    frontend/route_config.tsx on lines 488..495
    frontend/route_config.tsx on lines 512..519
    frontend/route_config.tsx on lines 552..559
    frontend/route_config.tsx on lines 568..575
    frontend/route_config.tsx on lines 592..599

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

      route({
        children: true,
        $: Path.route(Path.controls()),
        getModule,
        key,
    Severity: Major
    Found in frontend/route_config.tsx and 24 other locations - About 1 hr to fix
    frontend/route_config.tsx on lines 144..151
    frontend/route_config.tsx on lines 168..175
    frontend/route_config.tsx on lines 176..183
    frontend/route_config.tsx on lines 200..207
    frontend/route_config.tsx on lines 224..231
    frontend/route_config.tsx on lines 240..247
    frontend/route_config.tsx on lines 272..279
    frontend/route_config.tsx on lines 280..287
    frontend/route_config.tsx on lines 320..327
    frontend/route_config.tsx on lines 336..343
    frontend/route_config.tsx on lines 344..351
    frontend/route_config.tsx on lines 368..375
    frontend/route_config.tsx on lines 384..391
    frontend/route_config.tsx on lines 400..407
    frontend/route_config.tsx on lines 424..431
    frontend/route_config.tsx on lines 432..439
    frontend/route_config.tsx on lines 440..447
    frontend/route_config.tsx on lines 480..487
    frontend/route_config.tsx on lines 488..495
    frontend/route_config.tsx on lines 504..511
    frontend/route_config.tsx on lines 512..519
    frontend/route_config.tsx on lines 552..559
    frontend/route_config.tsx on lines 568..575
    frontend/route_config.tsx on lines 592..599

    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

      route({
        children: false,
        $: Path.route(Path.app("controls")),
        getModule: () => import("./controls/controls_page"),
        key: "Controls",
    Severity: Minor
    Found in frontend/route_config.tsx and 1 other location - About 40 mins to fix
    frontend/route_config.tsx on lines 120..125

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 49.

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

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

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

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

    Refactorings

    Further Reading

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

      route({
        children: false,
        $: Path.route(Path.app("messages")),
        getModule: () => import("./messages/messages_page"),
        key: "Messages",
    Severity: Minor
    Found in frontend/route_config.tsx and 1 other location - About 40 mins to fix
    frontend/route_config.tsx on lines 114..119

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 49.

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

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

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

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

    Refactorings

    Further Reading

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

      route({
        children: false,
        $: Path.route(Path.logs()),
        getModule: () => import("./logs"),
        key: "Logs",
    Severity: Minor
    Found in frontend/route_config.tsx and 1 other location - About 40 mins to fix
    frontend/route_config.tsx on lines 138..143

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 48.

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

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

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

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

    Refactorings

    Further Reading

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

      route({
        children: false,
        $: Path.route(Path.designer()),
        getModule: () => import("./farm_designer"),
        key: "FarmDesigner"
    Severity: Minor
    Found in frontend/route_config.tsx and 1 other location - About 40 mins to fix
    frontend/route_config.tsx on lines 126..131

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 48.

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

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

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

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

    Refactorings

    Further Reading

    There are no issues that match your filters.

    Category
    Status