Examples
Spoiler
If luac cannot compile code, cclint reports error.
Spoiler
Global variable can be declared by
os.loadAPI("path/NAME")
bapil.loadAPI("path/NAME")
Linter supports some control directives:
- lint-ignore-global-get: foo,bar,baz - ignore global get for listed names,
- lint-ignore-global-set: foo,bar,baz - ignore global set for listed names,
- lint-ignore-global: foo,bar,baz - ignore global get or set for listed names,
- lint-set-globals-in-main-chunk - ignore globals set in main chunk,
- lint-check-globals-cached - report on getting globals outside main chunk.
Spoiler
Download: https://github.com/Shura1oplot/cclint
How to install
On windows:
- create C:\cclint
- copy cclint.py to C:\cclint
- install python >= 3.3 (http://python.org/downloads/)
- download lua 5.1 windows binaries (http://luabinaries.s...t/download.html)
- copy luac5.1.exe to C:\cclint
- run it in windows terminal by typing "C:\cclint\cclint.py lua_file"
- install lua 5.1 from repository (for debian based distros: apt-get install lua5.1)
- copy cclint.py to ~/bin
- ensure ~/bin is in PATH environment variable
- use it in terminal emulator by typing "cclint.py lua_file"
- install lua 5.1 somehow (I have never use OSX)
- copy cclint.py to ~/bin
- ensure ~/bin is in PATH variable
- if directory with luac5.1 is not in PATH environment variable, set LUAC51 environment variable to full path to luac5.1.
- use it in terminal emulator by typing "cclint.py lua_file"
- in LUAC51 environment variable,
- in the directory with cclint.py [only on Windows],
- in directories in PATH environment variable.
Similar projects:
There is an experimental SublimeText 3 plugin: https://github.com/S...-contrib-cclint
It can be installed only by git clone to ~/.config/sublime-text-3/Packages directory.
Tested on linux, may work on OSX and should not work on windows without some changes in plugin code.
If windows support is needed, add issue or pull request in github project page.
Spoiler
Edited by Shura1oplot, 11 March 2014 - 03:01 PM.











