FarmBot/Farmbot-Web-App

View on GitHub

Showing 1,338 of 1,993 total issues

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

Severity
Category
Status
Source
Language