NatLibFi/marc-record-validate

View on GitHub
src/index.js

Summary

Maintainability
A
3 hrs
Test Coverage

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

      There are no issues that match your filters.

      Category
      Status