JordanHatch/maslow-redux

View on GitHub
app/assets/javascripts/controllers/need_criteria.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function edit has 66 lines of code (exceeds 25 allowed). Consider refactoring.
Open

MASLOW.need_criteria.edit = function () {
  var form = document.querySelector('form.need_criteria')
  var list = form.querySelector('ul')

  var baseTemplate = list.querySelector('li:first-child').cloneNode(true)
Severity: Major
Found in app/assets/javascripts/controllers/need_criteria.js - About 2 hrs to fix

    Function buildCriteria has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      var buildCriteria = function () {
        var item = baseTemplate.cloneNode(true)
        var index = getIndex()
    
        item.setAttribute('data-index', index)
    Severity: Minor
    Found in app/assets/javascripts/controllers/need_criteria.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status