guibranco/talabat-hackathon-2022

View on GitHub

Showing 1 of 3 total issues

Method TranslateAsync has 41 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    [HttpPost]
    [ProducesResponseType(typeof(TranslateResponseModel), 200)]
    public async Task<IActionResult> TranslateAsync([FromBody] TranslateRequestModel model)
    {
        if (Constants.TranslateLanguages.All(x => x.Value != model.SourceLanguage))
Severity: Minor
Found in src/TalabatHackathon.API/Controllers/TranslateController.cs - About 1 hr to fix
    Severity
    Category
    Status
    Source
    Language