DanielHreben/sequelize-transparent-cache

View on GitHub

Showing 3 of 151 total issues

Function buildAutoMethods has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function buildAutoMethods (client, model) {
  return {
    client () {
      return client
    },
Severity: Minor
Found in packages/sequelize-transparent-cache/src/methods/class.js - About 1 hr to fix

    Function restoreTimestamps has 28 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function restoreTimestamps (data, instance) {
      const timestampFields = ['createdAt', 'updatedAt', 'deletedAt']
    
      for (const field of timestampFields) {
        const value = data[field]
    Severity: Minor
    Found in packages/sequelize-transparent-cache/src/cache/util.js - About 1 hr to fix

      Function buildManualMethods has 28 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function buildManualMethods (client, model, customKey) {
        return {
          client () {
            return client
          },
      Severity: Minor
      Found in packages/sequelize-transparent-cache/src/methods/class.js - About 1 hr to fix
        Severity
        Category
        Status
        Source
        Language