af83/chouette-core

View on GitHub
app/packs/entrypoints/inputs/ajax_select.js

Summary

Maintainability
A
1 hr
Test Coverage

Function addAjaxSelectToForm has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function addAjaxSelectToForm(dom_part) {
  dom_part.querySelectorAll('select.ajax_select').forEach((el) => {
    let plugin_list = []
    if (el.hasAttribute("multiple")) {
      plugin_list = ['clear_button', 'remove_button']
Severity: Minor
Found in app/packs/entrypoints/inputs/ajax_select.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status