On Thu, Jan 30, 2014 at 3:01 AM, Mike Marino <[email protected]> wrote: >> Am 29.01.2014 um 23:45 schrieb Jens Alfke <[email protected]>: >> Has anyone thought of modifying the JS global bindings when a map function >> runs, such that calling Date.new will throw an exception? Preferably an >> exception with a descriptive message like "It is illegal to use the current >> date in a map function"? It would save considerable support time -- I >> believe this is the second time this issue has come up in the last week. > > I think it could be reasonable to write a tool that checks for common > errors in views and advises based upon what it finds, e.g. an addition > to the test suite. Running such a tool would have to be elective, > though, I also don't think it's a good idea to take away > functionality.
couchapp linter ? sounds very cool! I wonder if erica can have a plugin of such -- ,,,^..^,,,
