|
1 | 1 | linter-lua |
2 | 2 | =========== |
3 | 3 |
|
4 | | -> luac — The luac program parses lua files. It can be used for detecting errors in lua code. See [http://www.lua.org/manual/4.0/luac.html](http://www.lua.org/manual/4.0/luac.html) for more informations about luac. |
5 | | -
|
6 | | -This package will lint your `.lua` opened files in Atom through luac or [luajit](http://luajit.org/running.html). **It will lint on edit and/or save**, so you'll see instantly if your code has errors. |
| 4 | +linter-lua package will lint your `lua` in Atom through luac or [luajit](http://luajit.org/running.html). |
7 | 5 |
|
8 | 6 | Due to the way that luac works it will only notify you of the first error found in the file. |
9 | 7 |
|
10 | | -## Linter Installation |
| 8 | +#### Linter Installation |
11 | 9 | Before using this package, you must ensure that `luac` or `luajit` is installed on your system. |
12 | 10 |
|
13 | | -## Installation |
| 11 | +#### Installation |
14 | 12 |
|
15 | 13 | * `$ apm install linter` (if you don't have [AtomLinter/Linter](https://github.com/AtomLinter/Linter) installed). |
16 | 14 | * `$ apm install linter-lua` |
17 | 15 |
|
18 | | -## Configuration |
| 16 | +#### Configuration |
19 | 17 |
|
20 | 18 | Atom -> Preferences... -> Packages -> Linter lua -> Settings: |
21 | 19 |
|
22 | 20 | * **Executable** Path to your `luac` or `luajit` executable. |
23 | | - |
24 | | -## Other available linters |
25 | | -- [linter-luacheck](https://atom.io/packages/linter-luacheck), for lua using `luacheck` |
26 | | -- [linter-php](https://atom.io/packages/linter-php), for PHP using `php -l` |
27 | | -- [linter-phpcs](https://atom.io/packages/linter-phpcs) - Linter plugin for PHP, using phpcs. |
28 | | -- [linter-phpmd](https://atom.io/packages/linter-phpmd) - Linter plugin for PHP, using phpmd. |
29 | | -- [linter-jshint](https://atom.io/packages/linter-jshint) - Linter plugin for JavaScript, using jshint. |
30 | | -- [linter-scss-lint](https://atom.io/packages/linter-scss-lint) - Sass Linter plugin for SCSS, using scss-lint. |
31 | | -- [linter-coffeelint](https://atom.io/packages/linter-coffeelint) Linter plugin for CoffeeScript, using coffeelint. |
32 | | -- [linter-csslint](https://atom.io/packages/linter-csslint) Linter plugin for CSS, using csslint. |
33 | | -- [linter-rubocop](https://atom.io/packages/linter-rubocop) - Linter plugin for Ruby, using rubocop. |
34 | | -- [linter-tslint](https://atom.io/packages/linter-tslint) Linter plugin for TypeScript, using tslint. |
35 | | - |
36 | | -## Donation |
37 | | -[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=KXUYS4ARNHCN8) |
0 commit comments