packages/core/src/Resource/Collection.js
Function Collection
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Invalid
Invalid
function Collection(name, repository) {
const state = [{
data: {
items: [],
},
Function collectionLoad
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Wontfix
Wontfix
function collectionLoad(collection) {
return () => {
if (collection.isLoaded === true
&& isEqual(collection.state.metadata.lastParameterBagState, collection.parameterBag.state)) {
return Promise.resolve();