talyssonoc/structure

View on GitHub

Showing 2 of 6 total issues

Function attributesDecorator has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function attributesDecorator(schema, schemaOptions = {}) {
  if(typeof schemaOptions !== 'object') {
    throw Errors.classAsSecondParam(schemaOptions);
  }

Severity: Minor
Found in src/attributes/decorator.js - About 1 hr to fix

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

      return function decorator(Class) {
        const WrapperClass = new Proxy(Class, {
          construct(target, constructorArgs, newTarget) {
            const instance = Reflect.construct(target, constructorArgs, newTarget);
            const passedAttributes = Object.assign({}, constructorArgs[0]);
    Severity: Minor
    Found in src/attributes/decorator.js - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language