src/model/helpers/attibutes.js
Function createPropertyDefinitionsForAttributes
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function createPropertyDefinitionsForAttributes(
attributeProperties,
getAttributeValues,
setAttributeValues,
setDirty
Function set
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
set(value) {
const attributeValue = getAttributeValues()
.filter((av) => av.attribute.name === attributeName)
.reduce((current, av) => av, undefined)