mpeterv / luacheck

A tool for linting and static analysis of Lua code.
MIT License
1.92k stars 322 forks source link

Missing global love.handlers #161

Closed xordspar0 closed 6 years ago

xordspar0 commented 6 years ago

For the "love" standard, luacheck is missing a global table: love.handlers. It is readable and writable, as it is available for defining functions like love.handlers.myEvent.

Documentation:

xordspar0 commented 6 years ago

cc: @technomancy

pablomayobre commented 6 years ago

I will take this into account for the generator I have (https://github.com/Positive07/luacheck-love) so that when the LÖVE API (https://github.com/love2d-community/love-api) updates to 11.x the PR includes this changes (or maybe love.handlers is already added to love-api which would be even better. Thank you 👍

xordspar0 commented 6 years ago

There's an open issue for this: love2d-community/love-api#57