Maintainability
useless-literal-set
useless-literal-set
$X
is uselessly assigned twice inside the creation of the set
useless-if-conditional
useless-if-conditional
if block checks for the same condition on both branches ($X
)
useless-if-body
useless-if-body
Useless if statement; both blocks have the same body
is-function-without-parentheses
is-function-without-parentheses
Is “X.X.$FUNC is always true.
improper-list-concat
improper-list-concat
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.
useless-inner-function
useless-inner-function
function $FF
is defined inside a function but never used
code-after-unconditional-return
code-after-unconditional-return
code after return statement will not be executed
return-not-in-function
return-not-in-function
return
only makes sense inside a function
useless-assignment-keyed
useless-assignment-keyed
key $Y
in $X
is assigned twice; the first assignment is useless
useless-literal
useless-literal
key $X
is uselessly assigned twice