nexxtway/react-rainbow

View on GitHub
library/pages/GettingStartedPage/index.js

Summary

Maintainability
D
2 days
Test Coverage

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

    render() {
        const { activeTabName } = this.state;
        return (
            <div className="react-rainbow-getting-started_top-container">
                <Tabset
Severity: Major
Found in library/pages/GettingStartedPage/index.js - About 1 day to fix

    File index.js has 269 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /* eslint-disable react/no-unescaped-entities, import/no-extraneous-dependencies */
    import React, { Component } from 'react';
    import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
    import { faArrowRight } from '@fortawesome/free-solid-svg-icons';
    import Tabset from '../../../src/components/Tabset';
    Severity: Minor
    Found in library/pages/GettingStartedPage/index.js - About 2 hrs to fix

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

                                  <a
                                      className="rainbow-link rainbow-m-left_xx-small react-rainbow-getting-started_issue-link"
                                      href="https://github.com/nexxtway/react-rainbow/issues/new?assignees=&labels=discussion&template=discussion.md&title="
                                      rel="noopener noreferrer"
                                      target="_blank"
      Severity: Major
      Found in library/pages/GettingStartedPage/index.js and 1 other location - About 1 hr to fix
      library/pages/GettingStartedPage/index.js on lines 185..197

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 57.

      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

                                  <a
                                      className="rainbow-link rainbow-m-left_xx-small react-rainbow-getting-started_issue-link"
                                      href="https://github.com/nexxtway/react-rainbow/issues/new/choose"
                                      rel="noopener noreferrer"
                                      target="_blank"
      Severity: Major
      Found in library/pages/GettingStartedPage/index.js and 1 other location - About 1 hr to fix
      library/pages/GettingStartedPage/index.js on lines 208..220

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

      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

                                          <h5 className="react-rainbow-getting-started_section-heading-5">
                                              React Rainbow Components is available as an
                                              <a
                                                  className="react-rainbow-getting-started_section-link"
                                                  href="https://www.npmjs.com/package/react-rainbow-components"
      Severity: Minor
      Found in library/pages/GettingStartedPage/index.js and 1 other location - About 45 mins to fix
      library/pages/GettingStartedPage/index.js on lines 224..234

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 50.

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

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

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

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

      Refactorings

      Further Reading

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

                                  <h5 className="react-rainbow-getting-started_section-heading-5">
                                      Feel free to contribute in rainbow-components available in
                                      <a
                                          className="rainbow-link rainbow-m-left_xx-small"
                                          href="https://github.com/nexxtway/react-rainbow"
      Severity: Minor
      Found in library/pages/GettingStartedPage/index.js and 1 other location - About 45 mins to fix
      library/pages/GettingStartedPage/index.js on lines 109..119

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 50.

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

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

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

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

      Refactorings

      Further Reading

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

                              <div className="react-rainbow-getting-started_section-heading-container rainbow-align_center rainbow-m-bottom_medium">
                                  <h3 className="react-rainbow-getting-started_section-heading rainbow-m-right_medium">
                                      There are several runnable examples in this Git repo, but here's a
                                      Hello World one:
                                  </h3>
      Severity: Major
      Found in library/pages/GettingStartedPage/index.js and 4 other locations - About 40 mins to fix
      library/pages/CustomizationPage/index.js on lines 196..206
      library/pages/Designs/index.js on lines 38..41
      library/pages/ExperienceExamplesPage/index.js on lines 12..17
      library/pages/GettingStartedPage/index.js on lines 87..94

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 48.

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

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

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

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

      Refactorings

      Further Reading

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

                              <div className="react-rainbow-getting-started_section-heading-container">
                                  <h3 className="react-rainbow-getting-started_section-heading rainbow-m-right_medium">
                                      React Rainbow is a collection of components that will reliably help
                                      you build your application in a snap. Give it a hack and let us know
                                      what you think.
      Severity: Major
      Found in library/pages/GettingStartedPage/index.js and 4 other locations - About 40 mins to fix
      library/pages/CustomizationPage/index.js on lines 196..206
      library/pages/Designs/index.js on lines 38..41
      library/pages/ExperienceExamplesPage/index.js on lines 12..17
      library/pages/GettingStartedPage/index.js on lines 134..140

      Duplicated Code

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

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

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

      Tuning

      This issue has a mass of 48.

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

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

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

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

      Refactorings

      Further Reading

      There are no issues that match your filters.

      Category
      Status