thibremy/fortune-redis

View on GitHub

Showing 6 of 55 total issues

Function outputRecord has 41 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function outputRecord(type, record) {
  const { recordTypes, keys } = this
  const primaryKey = keys.primary
  const isArrayKey = keys.isArray
  const typeKey = this.keys.type
Severity: Minor
Found in src/helpers.js - About 1 hr to fix

    Function update has 41 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      update(type, updates) {
        if (!updates.length) {
          return super.update()
        }
    
    
    Severity: Minor
    Found in src/index.js - About 1 hr to fix

      Function create has 26 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        create(type, records) {
          if (!records.length) {
            return super.create()
          }
          const {redis} = this
      Severity: Minor
      Found in src/index.js - About 1 hr to fix

        Avoid too many return statements within this function.
        Open

            return rec
        Severity: Major
        Found in src/helpers.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                return rec
          Severity: Major
          Found in src/helpers.js - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                  return rec
            Severity: Major
            Found in src/helpers.js - About 30 mins to fix
              Severity
              Category
              Status
              Source
              Language