SyneticNL/Hyral

View on GitHub
packages/core/src/Resource/Collection.js

Summary

Maintainability
A
0 mins
Test Coverage
A
100%

Function Collection has 56 lines of code (exceeds 25 allowed). Consider refactoring.
Invalid

function Collection(name, repository) {
  const state = [{
    data: {
      items: [],
    },
Severity: Major
Found in packages/core/src/Resource/Collection.js - About 2 hrs to fix

    Function collectionLoad has 35 lines of code (exceeds 25 allowed). Consider refactoring.
    Wontfix

    function collectionLoad(collection) {
      return () => {
        if (collection.isLoaded === true
          && isEqual(collection.state.metadata.lastParameterBagState, collection.parameterBag.state)) {
          return Promise.resolve();
    Severity: Minor
    Found in packages/core/src/Resource/Collection.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status