rails-stall/stall

View on GitHub
app/assets/javascripts/para/stall/inputs/variants-matrix/input.coffee

Summary

Maintainability
Test Coverage

Line exceeds maximum allowed length
Open

      propertyValue = value for value in propertyValues when value.propertyId is combinationProperty.propertyId

Line exceeds maximum allowed length
Open

    @nestedFieldsManager = new VariantsMatrix.NestedFields(@$('[data-variants-matrix-new-row-button]'))

Line exceeds maximum allowed length
Open

      variant = new VariantsMatrix.Variant(el: row, combination: combination, input: this)

Line exceeds maximum allowed length
Open

    propertyValues = for propertyCell in $(row).find('[data-variants-matrix-variant-property]').get()

Line exceeds maximum allowed length
Open

    @propertiesSelect = new VariantsMatrix.PropertiesSelect(el: @$('[data-variants-matrix-properties-select]'))

Comprehensions must have parentheses around them
Open

      propertyValue = value for value in propertyValues when value.propertyId is combinationProperty.propertyId

Line exceeds maximum allowed length
Open

      combinationValueMatches = combinationProperty and combinationProperty.id is propertyValue.id

Line exceeds maximum allowed length
Open

    return combination for combination in existingCombinations when @combinationMatches(propertyValues, combination)

Line exceeds maximum allowed length
Open

    @variants.splice(index, 1) for variant, index in @variants when variant?.matches(destroyedVariant.combination)

Line exceeds maximum allowed length
Open

    $enabledCell = @$variantsTableHeader.find('[data-variants-matrix-variant-enabled-cell]')

Line exceeds maximum allowed length
Open

    @$variantsTableHeader.find('[data-variants-matrix-variant-property-cell]').remove()

Line exceeds maximum allowed length
Open

      $('<th/>', 'data-variants-matrix-variant-property-cell': '').text(property.name)

Comprehensions must have parentheses around them
Open

      matches = true for combination in combinations when variant.matches(combination)

Line exceeds maximum allowed length
Open

    propertyHeaderCells = for property in @propertiesSelect.getSelectedProperties() when property.active

Line exceeds maximum allowed length
Open

    return variant for variant, index in @variants when variant.matches(combination)

Line exceeds maximum allowed length
Open

      matches = true for combination in combinations when variant.matches(combination)

There are no issues that match your filters.

Category
Status