Enable the "truthy-bool" error code
This commit is contained in:
parent
fef268321a
commit
9da2d0b703
1 changed files with 2 additions and 0 deletions
|
|
@ -480,6 +480,8 @@ enable_error_code = [
|
|||
"possibly-undefined",
|
||||
# Report conditions that are always true or always false
|
||||
"redundant-expr",
|
||||
# Report truthiness checks on objects that are always true
|
||||
"truthy-bool",
|
||||
]
|
||||
|
||||
# Check further edge cases that are rarely an issue in practice
|
||||
|
|
|
|||
Loading…
Reference in a new issue