Enable the "redundant-expr" error code
This commit is contained in:
parent
7190724260
commit
fef268321a
1 changed files with 2 additions and 0 deletions
|
|
@ -478,6 +478,8 @@ enable_error_code = [
|
||||||
"mutable-override",
|
"mutable-override",
|
||||||
# Report variables that may be used before they are assigned
|
# Report variables that may be used before they are assigned
|
||||||
"possibly-undefined",
|
"possibly-undefined",
|
||||||
|
# Report conditions that are always true or always false
|
||||||
|
"redundant-expr",
|
||||||
]
|
]
|
||||||
|
|
||||||
# Check further edge cases that are rarely an issue in practice
|
# Check further edge cases that are rarely an issue in practice
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue