False positive : Unused local variables should be removed shelldre:S1481

I’m using sonarcloud , and i have a false positive on rule “Unused local variables should be removed shelldre:S1481” : See SonarQube Cloud

It says that the variable prev is not used in the following code :

_opfab_completion() {
    local cur prev nb_colon
    _get_comp_words_by_ref -n : cur prev
    nb_colon=$(grep -o ":" <<< "$COMP_LINE" | wc -l)
    COMPREPLY=( $(compgen -W '$(opfab --compbash --compgen "$((COMP_CWORD - (nb_colon * 2)))" "$prev" "${COMP_LINE}")' -- "$cur") )
    __ltrim_colon_completions "$cur"

Hello @Fred_D,

Thank you for reaching out!

I confirm this a false positive.

Our analyser does not take into account variables passed by reference.

I have created a ticket in our internal backlog. We will tackle it most probably during our next hardening sprint.

In the meantime, you can accept the issue by marking it as FP if not already done.

Have a good day!