DanielHreben/sequelize-transparent-cache

View on GitHub
packages/sequelize-transparent-cache/src/methods/class.js

Summary

Maintainability
A
2 hrs
Test Coverage

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

      Definition for rule 'jest/no-disabled-tests' was not found
      Open

      const cache = require('../cache')

      For more information visit Source: http://eslint.org/docs/rules/

      Definition for rule 'jest/valid-expect' was not found
      Open

      const cache = require('../cache')

      For more information visit Source: http://eslint.org/docs/rules/

      Definition for rule 'jest/no-focused-tests' was not found
      Open

      const cache = require('../cache')

      For more information visit Source: http://eslint.org/docs/rules/

      Definition for rule 'jest/no-identical-title' was not found
      Open

      const cache = require('../cache')

      For more information visit Source: http://eslint.org/docs/rules/

      There are no issues that match your filters.

      Category
      Status