kireerik/refo

View on GitHub

Showing 7 of 7 total issues

Function traverse has 126 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    ;(function traverse(object) {
        for (let index in object) {
            if (full && index.includes('-full')) {
                const originalPropertyName = index.replace('-full', '')

Severity: Major
Found in source/index/resume/index/handle.js - About 5 hrs to fix

    Function object has 106 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

                    object: () => {
                        if (
                                object[index].private
                            ||
                                object[index].full && !full
    Severity: Major
    Found in source/index/resume/index/handle.js - About 4 hrs to fix

      Function load has 39 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          window.load = function (link) {
              var request = new XMLHttpRequest()
      
              request.open('GET', link)
      
      
      Severity: Minor
      Found in module/navigator.js - About 1 hr to fix

        Avoid deeply nested control flow statements.
        Open

                                    if (hideEndDate)
                                        object[index].endDate =
                                            object[index].startDate
        Severity: Major
        Found in source/index/resume/index/handle.js - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                                          if (period == '1 few seconds')
                                              delete object[index].startDate
                                          else
                                              object[index].duration = period
          Severity: Major
          Found in source/index/resume/index/handle.js - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                                        if (!hideEndDate)
                                            object[index].endDate =
                                                endDate.format(format)
            Severity: Major
            Found in source/index/resume/index/handle.js - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                                              if (1 < years) {
                                                  years =
                                                      years.round(.5).toFixed(1)
                                                          .replace('.0', '')
              
              
              Severity: Major
              Found in source/index/resume/index/handle.js - About 45 mins to fix
                Severity
                Category
                Status
                Source
                Language