A function should not return the same primitive value. If the result of the function isn't use into code, then you need the function rewrite to the procedure.
Bad:
Function CheckString(Val RowTable)
If ItsGoodString(RowTable) Then
ActionGood();
Return True;
ElsIf ItsNodBadString(RowTable) Then
ActionNoBad();
Return True;
Else
Return True;
EndIf;
EndFunction
Good:
Function CheckString(Val RowTable)
If ItsGoodString(RowTable) Then
ActionGood();
ElsIf ItsNodBadString(RowTable) Then
ActionNoBad();
Else
ActionElse();
EndIf;
EndFunction
Attachable functions excluded from the scan. Example:
Function Attachable_RandomAction(Command)
If ValueIsFilled(CurrentDate) Then
Return Undefined;
EndIf;
Return Undefined;
EndFunction