FarmBot/Farmbot-Web-App

View on GitHub

Showing 1,338 of 1,993 total issues

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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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("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.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

Severity
Category
Status
Source
Language