Can I run Luacheck on Github without a pull request?

User avatar
burli
Member
 
Posts: 1313
Joined: Fri Apr 10, 2015 13:18

Can I run Luacheck on Github without a pull request?

by burli » Sat Mar 04, 2017 08:42

Can I run Luacheck on Github without a pull request? If not, is there a Linux tool that I can use?
 

User avatar
kaeza
Member
 
Posts: 2141
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

Re: Can I run Luacheck on Github without a pull request?

by kaeza » Sat Mar 04, 2017 09:09

Uh... use LuaCheck?

For Debian/Ubuntu:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
sudo apt install luarocks
sudo luarocks install luacheck
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal | BTC: 1DFZAa5VtNG7Levux4oP6BuUzr1e83pJK2
 

User avatar
burli
Member
 
Posts: 1313
Joined: Fri Apr 10, 2015 13:18

Re: Can I run Luacheck on Github without a pull request?

by burli » Sat Mar 04, 2017 10:18

kaeza wrote:Uh... use LuaCheck?

For Debian/Ubuntu:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
sudo apt install luarocks
sudo luarocks install luacheck


Thanks, but I get tons of Warnings.

For example
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
Checking mods/wool/init.lua                       5 warnings

    mods/wool/init.lua:26:2: accessing undefined variable minetest
    mods/wool/init.lua:32:12: accessing undefined variable default
    mods/wool/init.lua:35:2: accessing undefined variable minetest
    mods/wool/init.lua:46:1: accessing undefined variable minetest
    mods/wool/init.lua:47:1: accessing undefined variable minetest


I assume that I need to set them in the configuration file somehow. Do you have an example?

Edit: I think/hope I got it

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
globals = {"minetest", "default", "vector"}


Anything else I need?
 

User avatar
kaeza
Member
 
Posts: 2141
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

Re: Can I run Luacheck on Github without a pull request?

by kaeza » Thu Mar 09, 2017 20:29

Check the LuaCheck config file used by minetest_game.
See also the LuaCheck documentation.
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal | BTC: 1DFZAa5VtNG7Levux4oP6BuUzr1e83pJK2
 

User avatar
burli
Member
 
Posts: 1313
Joined: Fri Apr 10, 2015 13:18

Re: Can I run Luacheck on Github without a pull request?

by burli » Thu Mar 09, 2017 20:31

kaeza wrote:Check the LuaCheck config file used by minetest_game.
See also the LuaCheck documentation.

Found this yesterday. This is relatively new in the repo
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

Re: Can I run Luacheck on Github without a pull request?

by rubenwardy » Thu Mar 09, 2017 20:41

burli wrote:Found this yesterday. This is relatively new in the repo


since we've had luacheck as a travis job
 


Return to Minetest General

Who is online

Users browsing this forum: No registered users and 75 guests

cron