Mac | Windows | Linux |
---|---|---|
This package will lint your opened Lua files in Atom, using luacheck.
$ apm install linter
(if you don't have AtomLinter/Linter installed).$ apm install linter-luacheck
Atom -> Preferences... -> Packages -> linter-luacheck -> Settings:
To config luacheck, you may:
Use config file named .luacheckrc
(in project root and/or Lua source dirs).
Example .luacheckrc
at project root:
files['*.rockspec'].global = falsefiles['.luacheckrc'].global = falsefiles['spec/*_spec.lua'].std = 'min+busted'
Or use luacheck inline options.
Example project/luafile.lua
:
local lib = {}function lib.add(self, a, b) -- luacheck: ignore selfreturn a+bend
Bugs, ideas and pull requests please go to AtomLinter/linter-luacheck.
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.