feature request: refined options for redeclaration warnings
Status: Beta
Brought to you by:
matthiasmiller
Currently redeclaration warnings are set with this config flag:
+redeclared_var
I would like this to be split into two flags:
+redeclared_var
+redeclared_function
In my own project this would enable me to set:
-redeclared_var
+redeclared_function
My legacy code has a large number of redeclared variables, but shouldn't have any redeclared functions.
Which warning should be produced if a var is redeclared as a function? What about a function that is declared as a var?