koriaf/django-calories-log

View on GitHub
src/frontend/backlog.app/backlog.app.js

Summary

Maintainability
A
1 hr
Test Coverage

Function doFoodSearch has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        doFoodSearch: function doFoodSearch() {
            var q = document.querySelector("#id_food_search_input").value.trim();
            // fetch list of goods by AJAX from server side using our API
            let url = "/api/v1/products/" + Views.serialize({title: q});
            let errorBlock = document.querySelector("#id_found_food_table_message");
Severity: Minor
Found in src/frontend/backlog.app/backlog.app.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status