DishDelish/dishdelish-app

View on GitHub
app/src/main/java/com/github/siela1915/bootcamp/AutocompleteApi/IngredientAutocomplete.java

Summary

Maintainability
A
1 hr
Test Coverage
A
95%

Method getNutritionFromIngredient has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public void getNutritionFromIngredient(int id, Ingredient ingredient, Map<Integer, Boolean> finishedMap, UploadCallback callback){
        //System.out.println(service.getNutrition(id, ingredient.getUnit().getValue(), API_KEY).request().url().toString());

        //To be able to get the nutrition correctly for a given unit, we need a naming convention for the units which I am not sure how to do
        //TODO give the users possible options of units once he chooses an ingredient?

    There are no issues that match your filters.

    Category
    Status