Open
Description
opened on Mar 16, 2017
Let's add a strict mode (like e.g. perl has) which warns resp. errors on extra things:
- if a function returns sometimes an obj and sometimes nothing (see PR (WIP) Add a simple check against functions containing both return; and return <obj>; #466)
- invalid backslash escaped chars inside strings (see PR Stricter string escape #619)
- syntax errors are actual errors (see issue Add
--quit-on-syntax-error
option? #1981) - warn if a function has unused locals (i.e. local variables that are never read from; so completely unused, or only ever assigned to)
- ...
This mode could be enabled or disabled via a command line switch.
Activity