Restuta/rcn.io

View on GitHub

Showing 1,769 of 1,769 total issues

File 2016-ncnca-events.js has 13026 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*eslint-disable */

export default [
  {
  "id": "evt-2016-jan-03-23546-cx",
Severity: Major
Found in src/client/temp/data/2016-ncnca-events.js - About 1 mo to fix

File 2017-ncnca-events.js has 3987 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*eslint-disable */

export default [
  {
    "id" : "evt-ncnca-2017-san-bruno-hill-climb-rkJyeFqXl",
Severity: Major
Found in src/client/temp/data/2017-ncnca-events.js - About 1 wk to fix

File 2016-mtb-manual.js has 1095 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*eslint-disable */

//events that we manually crated based on our research of available MTB resources, but that were originally missing
//in MTB calendar
export default [
Severity: Major
Found in src/client/temp/data/2016-mtb-manual.js - About 2 days to fix

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

        <Row className="margin-top">
          <Col sm={1}>
            <Event id="test" debug fixedWidth widthColumns={2} baseHeight={2} containerWidth={Grid.ContainerWidth.SM} event={{name: longEventName}}/>
          </Col>
          <Col sm={1}>
Severity: Major
Found in src/client/Dev.js and 3 other locations - About 2 days to fix
src/client/Dev.js on lines 387..403
src/client/Dev.js on lines 405..421
src/client/Dev.js on lines 470..486

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

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

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

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

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

Refactorings

Further Reading

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

        <Row className="margin-top">
          <Col sm={1}>
            <Event id="test" debug fixedWidth widthColumns={2} baseHeight={2} containerWidth={Grid.ContainerWidth.SM} event={{name: shortEventName}}/>
          </Col>
          <Col sm={1}>
Severity: Major
Found in src/client/Dev.js and 3 other locations - About 2 days to fix
src/client/Dev.js on lines 405..421
src/client/Dev.js on lines 452..468
src/client/Dev.js on lines 470..486

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

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

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

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

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

Refactorings

Further Reading

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

        <Row className="margin-top">
          <Col sm={1}>
            <Event id="test" debug fixedWidth widthColumns={3} baseHeight={2} containerWidth={Grid.ContainerWidth.SM} event={{name: shortEventName}}/>
          </Col>
          <Col sm={2}>
Severity: Major
Found in src/client/Dev.js and 3 other locations - About 2 days to fix
src/client/Dev.js on lines 387..403
src/client/Dev.js on lines 452..468
src/client/Dev.js on lines 470..486

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

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

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

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

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

Refactorings

Further Reading

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

        <Row className="margin-top">
          <Col sm={1}>
            <Event id="test" debug fixedWidth widthColumns={3} baseHeight={2} containerWidth={Grid.ContainerWidth.SM} event={{name: longEventName}}/>
          </Col>
          <Col sm={2}>
Severity: Major
Found in src/client/Dev.js and 3 other locations - About 2 days to fix
src/client/Dev.js on lines 387..403
src/client/Dev.js on lines 405..421
src/client/Dev.js on lines 452..468

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

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

File 2016-mtb.js has 924 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*eslint-disable */
export default [
  {
    "id": "evt-90cfc18bcc179b9f86bed6c88ab025ad",
    "discipline": "MTB",
Severity: Major
Found in src/client/temp/data/2016-mtb.js - About 2 days to fix

Function render has 423 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  render() {
    const sizeToPx = size => (Typography.BASE_FONT_SIZE_PX * Typography.scaleUp(size)) + 'px'
    const getFontSize = size => Typography.scaleUp(size) + 'rem'
    const eventName = `John C. Schlesinger Memorial Circuit Race and Team Time Trial AND SOME UPPER CASE
    John C. Schlesinger Memorial Circuit Race and Team Time Trial
Severity: Major
Found in src/client/Dev.js - About 2 days to fix

File example_spec.js has 835 lines of code (exceeds 250 allowed). Consider refactoring.
Open

//
// **** Kitchen Sink Tests ****
//
// This app was developed to demonstrate
// how to write tests in Cypress utilizing
Severity: Major
Found in cypress/integration/example_spec.js - About 2 days to fix

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

        <Row className="margin-top">
          <Col sm={2}>
            <Event id="test" debug fixedWidth widthColumns={4} baseHeight={2} containerWidth={Grid.ContainerWidth.SM} event={{name: shortEventName}}/>
          </Col>
          <Col sm={2}>
Severity: Major
Found in src/client/Dev.js and 1 other location - About 1 day to fix
src/client/Dev.js on lines 488..504

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

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

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

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

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

Refactorings

Further Reading

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

        <Row className="margin-top">
          <Col sm={2}>
            <Event id="test" debug fixedWidth widthColumns={4} baseHeight={2} containerWidth={Grid.ContainerWidth.SM} event={{name: longEventName}}/>
          </Col>
          <Col sm={2}>
Severity: Major
Found in src/client/Dev.js and 1 other location - About 1 day to fix
src/client/Dev.js on lines 423..439

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

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

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

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

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

Refactorings

Further Reading

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

        <Row className="margin-top">
          <Col sm={14} className="debug-flex-cards">
            <Event id="test" debug fixedWidth widthColumns={1} baseHeight={5} containerWidth={Grid.ContainerWidth.XL}
              event={{name: 'Dunnigan Hills Road Race'}} />
            <Event id="test" debug fixedWidth widthColumns={2} baseHeight={5} containerWidth={Grid.ContainerWidth.XL}
Severity: Major
Found in src/client/Dev.js and 3 other locations - About 1 day to fix
src/client/Dev.js on lines 334..345
src/client/Dev.js on lines 348..359
src/client/Dev.js on lines 362..373

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

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

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

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

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

Refactorings

Further Reading

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

        <Row className="margin-top">
          <Col sm={14} className="debug-flex-cards">
            <Event id="test" debug fixedWidth widthColumns={1} baseHeight={2} containerWidth={Grid.ContainerWidth.SM}
              event={{name: 'Dunnigan Hills Road Race'}} />
            <Event id="test" debug fixedWidth widthColumns={2} baseHeight={2} containerWidth={Grid.ContainerWidth.SM}
Severity: Major
Found in src/client/Dev.js and 3 other locations - About 1 day to fix
src/client/Dev.js on lines 320..331
src/client/Dev.js on lines 334..345
src/client/Dev.js on lines 348..359

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

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

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

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

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

Refactorings

Further Reading

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

        <Row className="margin-top">
          <Col sm={14} className="debug-flex-cards">
            <Event id="test" debug fixedWidth widthColumns={1} baseHeight={3} containerWidth={Grid.ContainerWidth.MD}
              event={{name: 'Dunnigan Hills Road Race'}} />
            <Event id="test" debug fixedWidth widthColumns={2} baseHeight={3} containerWidth={Grid.ContainerWidth.MD}
Severity: Major
Found in src/client/Dev.js and 3 other locations - About 1 day to fix
src/client/Dev.js on lines 320..331
src/client/Dev.js on lines 334..345
src/client/Dev.js on lines 362..373

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

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

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

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

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

Refactorings

Further Reading

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

        <Row className="margin-top">
          <Col sm={14} className="debug-flex-cards">
            <Event id="test" debug fixedWidth widthColumns={1} baseHeight={4} containerWidth={Grid.ContainerWidth.LG}
              event={{name: 'John C. Schlesinger Memorial Circuit Race and Team Time Trial'}}/>
            <Event id="test" debug fixedWidth widthColumns={2} baseHeight={4} containerWidth={Grid.ContainerWidth.LG}
Severity: Major
Found in src/client/Dev.js and 3 other locations - About 1 day to fix
src/client/Dev.js on lines 320..331
src/client/Dev.js on lines 348..359
src/client/Dev.js on lines 362..373

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

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

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

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

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

Refactorings

Further Reading

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

const parseRoadType = lowerCaseName => {
  const nameContains = partialRight(contains, [lowerCaseName])

  if (nameContains('road race')) {
    return EventTypes.road.roadRace
Severity: Major
Found in src/server/events/usac/events-converter/parsers/type.js and 1 other location - About 1 day to fix
src/server/events/usac/events-converter/parsers/type.js on lines 62..85

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

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

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

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

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

Refactorings

Further Reading

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

const parseCollegiate = lowerCaseName => {
  const nameContains = partialRight(contains, [lowerCaseName])

  if (nameContains('road race')) {
    return EventTypes.collegiate.roadRace
Severity: Major
Found in src/server/events/usac/events-converter/parsers/type.js and 1 other location - About 1 day to fix
src/server/events/usac/events-converter/parsers/type.js on lines 17..40

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

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

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

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

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

Refactorings

Further Reading

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

  }, {
  "id": "evt-2016-sep-18-23732-ct",
  "name": "NCNCA Elite Criterium Championships — 12th Annual Oakland Grand Prix - VP#25, CC#12",
  "status": "",
  "type": "Criterium",
Severity: Major
Found in src/client/temp/data/2016-ncnca-events.js and 1 other location - About 1 day to fix
src/client/temp/data/2016-ncnca-events.js on lines 1329..1383

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

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

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

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

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

Refactorings

Further Reading

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

  }, {
  "id": "evt-2016-feb-20-23651-rr",
  "name": "Snelling Road Race — VP#4",
  "status": "",
  "type": "Road Race",
Severity: Major
Found in src/client/temp/data/2016-ncnca-events.js and 1 other location - About 1 day to fix
src/client/temp/data/2016-ncnca-events.js on lines 4247..4301

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

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