• Packages
  • Themes
  • Documentation
  • Blog
  • Discussions
Sign in

linter-luacheck

Lint Lua on the fly, using luacheck
  • #lint
  • #linter
  • #lua
  • #luacheck
  • #lua-lint
AtomLinter
2.0.1 13,448
16
  • Repo
  • Bugs
  • Versions
  • License
Flag as spam or malicious

linter-luacheck

Mac Windows Linux
mac-badge win-badge linux-badge

This package will lint your opened Lua files in Atom, using luacheck.

Installation

  • Install luacheck.
  • $ apm install linter (if you don't have AtomLinter/Linter installed).
  • $ apm install linter-luacheck

Configuration

Atom -> Preferences... -> Packages -> linter-luacheck -> Settings:

  • Executable Path to your luacheck executable.

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 = false
files['.luacheckrc'].global = false
files['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 self
  return a+b
end

Contribute

Bugs, ideas and pull requests please go to AtomLinter/linter-luacheck.

I think this package is bad news.

Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.

  • Terms of Use
  • Privacy
  • Code of Conduct
  • Releases
  • FAQ
  • Contact
with by