Added linting documentation

This commit is contained in:
AlissaSquared 2016-01-09 22:19:32 -06:00
parent 38a5a2e900
commit f4a2c6c46f

View File

@ -134,11 +134,14 @@ A full list of flags can be seen by passing the `-h` or `--help` flag.
`moonc` contains a [lint][1] tool for statically detecting potential problems
with code. The linter has two tests: detects accessed global variables,
detect unused declared variables.
detect unused declared variables. If the linter detects any issues with a file,
the program will exit with a status of `1`.
You can execute the linter with the `-l` flag. When the linting flag is
provided only linting takes place and no compiled code is generated.
The linter is compatible with the watch mode (see above) for automatic linting
```bash
moonc -l file1.moon file2.moon
```