NatLibFi/marc-record-validate

View on GitHub

Showing 2 of 4 total issues

Function default has 65 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export default function (validators = []) {
  if (validators.length === 0) { // eslint-disable-line functional/no-conditional-statements
    throw new Error('No validators provided');
  }

Severity: Major
Found in src/index.js - About 2 hrs to fix

    Avoid too many return statements within this function.
    Open

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