![]() |
Tools used for development - Printable Version +- Cuberite Forum (https://forum.cuberite.org) +-- Forum: Cuberite (https://forum.cuberite.org/forum-4.html) +--- Forum: Development (https://forum.cuberite.org/forum-13.html) +--- Thread: Tools used for development (/thread-772.html) |
RE: Tools used for development - NiLSPACE - 06-26-2015 I've removed Visual Studio 2008 and added ZeroBrane studio. RE: Tools used for development - Seadragon91 - 09-11-2016 Found a nice tool for checking lua code and added it as a external tool in Decoda ![]() Name: luacheck link: https://github.com/mpeterv/luacheck As external tool in Decoda: Title: Luacheck Command: luacheck Arguments: $(ItemDir) -g -a -g ignore global variables, for example cPluginManger -a ignore unused function arguments With this 2 flags it creates a useful output. Edit: Here a small output from Core Warnings: Core\banlist.lua:251:9: unused variable 'Reason' Core\banlist.lua:253:9: unused variable 'Reason' Code: -- If the player supplied a reason, use that, else use a default reason. As you see the variable Reason is defined inside of a if block and Reason is nil here ![]() RE: Tools used for development - xoft - 09-12-2016 Looks nice, should be pretty easy to add to ZeroBraneStudio as well. It might be a great addition to plugin CI tests, together with my PluginChecker, if it ever sees the light of the day ![]() Are you seriously still using Decoda? It is really outdated and there are other IDEs much better equipped for Cuberite plugin development. RE: Tools used for development - Seadragon91 - 09-12-2016 I looked into ZeroBraneStudio, it has a static analyzer but it looks like it only works for the current open file. Yes it could be nice for CI tests. It's also possible to install it as a module and then use it in lua. RE: Tools used for development - xoft - 09-12-2016 If you installed the Cuberite module into ZBS, as is described in the API docs article ( http://apidocs.cuberite.org/SettingUpZeroBrane.html ), then ZBS actually can analyze the plugins in the very same way as Cuberite does - it has an implementation of joining the files together and using the correct load order (alpha-sorted, with Info.lua last) etc. It can also call the utility scripts - InfoDump.lua (converts Info.lua into README.md and forum thread post text) |