cbillowes/curious-programmer-helium

View on GitHub

Showing 12 of 25 total issues

Function render has 201 lines of code (exceeds 50 allowed). Consider refactoring.
Open

  render() {
    return (
      <ul className="timeline">
        <TimelineItem
          type="work"
Severity: Major
Found in src/components/About/Companies/DStv.jsx - About 7 hrs to fix

    Function render has 161 lines of code (exceeds 50 allowed). Consider refactoring.
    Open

      render() {
        return (
          <Layout>
            <div className="credits-container container">
              <Metadata
    Severity: Major
    Found in src/pages/credits.jsx - About 5 hrs to fix

      Function render has 120 lines of code (exceeds 50 allowed). Consider refactoring.
      Open

        render() {
          return (
            <div id="additional-information">
              <div>
                <h2>Additional information about Data collection and processing</h2>
      Severity: Major
      Found in src/components/PrivacyPolicy/AdditionalInformation.jsx - About 3 hrs to fix

        Function render has 118 lines of code (exceeds 50 allowed). Consider refactoring.
        Open

          render() {
            const date = new Date()
        
            return (
              <Layout>
        Severity: Major
        Found in src/pages/license.jsx - About 3 hrs to fix

          Function render has 105 lines of code (exceeds 50 allowed). Consider refactoring.
          Open

            render() {
              return (
                <div id="mode-and-place-of-processing-data">
                  <h2>Mode and place of processing the Data</h2>
                  <h3>Methods of processing</h3>
          Severity: Major
          Found in src/components/PrivacyPolicy/PlaceOfProcessing.jsx - About 3 hrs to fix

            Function render has 101 lines of code (exceeds 50 allowed). Consider refactoring.
            Open

              render() {
                return (
                  <ul className="timeline">
                    <TimelineItem
                      type="work"
            Severity: Major
            Found in src/components/About/Companies/Education.jsx - About 3 hrs to fix

              Function render has 81 lines of code (exceeds 50 allowed). Consider refactoring.
              Open

                render() {
                  return (
                    <ul className="timeline">
                      <TimelineItem
                        type="community"
              Severity: Major
              Found in src/components/About/Companies/CloudAfrica.jsx - About 2 hrs to fix

                Function render has 77 lines of code (exceeds 50 allowed). Consider refactoring.
                Open

                  render() {
                    const { active } = this.props
                
                    return (
                
                
                Severity: Major
                Found in src/components/About/TimelineLegend.jsx - About 2 hrs to fix

                  Function render has 74 lines of code (exceeds 50 allowed). Consider refactoring.
                  Open

                    render() {
                      return (
                        <div id="rights-of-users">
                          <h2>The rights of Users</h2>
                          <p>
                  Severity: Major
                  Found in src/components/PrivacyPolicy/RightsOfUsers.jsx - About 1 hr to fix

                    Function render has 64 lines of code (exceeds 50 allowed). Consider refactoring.
                    Open

                      render() {
                        return (
                          <div id="detailed-information">
                            <h2>Detailed information on the processing of Personal Data</h2>
                            <p>
                    Severity: Major
                    Found in src/components/PrivacyPolicy/DetailedInformation.jsx - About 1 hr to fix

                      Function render has 59 lines of code (exceeds 50 allowed). Consider refactoring.
                      Open

                        render() {
                          return (
                            <ul className="timeline it-em">
                              <TimelineItem
                                type="work"
                      Severity: Major
                      Found in src/components/About/Companies/ITEM.jsx - About 1 hr to fix

                        Function onCreateNode has a Cognitive Complexity of 22 (exceeds 20 allowed). Consider refactoring.
                        Open

                        exports.onCreateNode = ({ node, actions, getNode }) => {
                          const { createNodeField } = actions
                          let slug
                          if (node.internal.type === "MarkdownRemark") {
                            const fileNode = getNode(node.parent)
                        Severity: Minor
                        Found in gatsby-node.js - About 35 mins to fix

                        Cognitive Complexity

                        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                        A method's cognitive complexity is based on a few simple rules:

                        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                        • Code is considered more complex for each "break in the linear flow of the code"
                        • Code is considered more complex when "flow breaking structures are nested"

                        Further reading

                        Severity
                        Category
                        Status
                        Source
                        Language