Luacheck

In case anyone else is interested in using the luacheck linter, here’s my .luacheckrc file which I add to my projects. It defines the Corona SDK globals so that luacheck doesn’t complain about them. One immediate benefit from using luacheck (I use the SublimeLinter and SublimeLinter-luacheck plugins in Sublime Text) is that it highlights accidental globals and unused definitions. 

local coronaAPI = {   'audio',   'display',   'easing',   'graphics',   'lfs',   'media',   'native',   'network',   'Runtime',   'system',   'timer',   'transition',   'print',   'require',   'package'  }   max\_line\_length = false   stds.corona = {    read\_globals = coronaAPI   -- these globals can only be accessed. }   std = "lua51+corona"