basedpyright icon indicating copy to clipboard operation
basedpyright copied to clipboard

`reportRedundantExpression`

Open KotlinIsland opened this issue 1 year ago • 2 comments

if True:  # erm...
    print("hi")
assert True # yeah.....

KotlinIsland avatar Oct 08 '24 00:10 KotlinIsland

there's already reportUnnecessaryIsInstance, reportUnnecessaryComparison, reportUnnecessaryContains and reportAssertAlwaysTrue but those are for specific cases. we should introduce a new rule to catch everything else

DetachHead avatar Oct 08 '24 00:10 DetachHead

related: #672

DetachHead avatar Oct 11 '24 12:10 DetachHead