[Lint] Report unused results
Closed this issue · 0 comments
turbolent commented
Feature Request
Add a new analyzer which detects unused value-typed results. For example, the following code is likely a bug:
let string = "hello"
string.concat("world")
Suggested Solution
- Report
ExpressionStatement
s of:- Function call with value-typed result
- Literals (strings, boolean, array, dictionary, etc.)
- Variable (no side-effect)