Skip to main content
$X is uselessly assigned twice inside the creation of the set
if block checks for the same condition on both branches ($X)
Useless if statement; both blocks have the same body
Is “FUNC"afunctionoranattribute?Ifitisafunction,youmayhavemeantFUNC" a function or an attribute? If it is a function, you may have meant X.FUNC()becauseFUNC() because X.$FUNC is always true.
This expression will evaluate to be ONLY value the of the else clause if the condition $EXPRESSION is false. If you meant to do list concatenation, put parentheses around the entire concatenation expression, like this: ['a', 'b', 'c'] + (['d'] if x else ['e']). If this is the intended behavior, the expression may be confusing to others, and you may wish to add parentheses for readability.
function $FF is defined inside a function but never used
code after return statement will not be executed
return only makes sense inside a function
key $Y in $X is assigned twice; the first assignment is useless
key $X is uselessly assigned twice