1
0
mirror of https://github.com/Uberi/Minetest-WorldEdit.git synced 2024-11-15 23:20:16 +01:00

Use Luarocks to install luacheck

Also remove worthless variable.
This commit is contained in:
Panquesito7 2020-02-07 14:12:11 -06:00
parent 08879e9c28
commit 3fa2b680a4
No known key found for this signature in database
GPG Key ID: 3C482B03FD220E68
3 changed files with 10 additions and 11 deletions

View File

@ -1,11 +1,15 @@
on: [push, pull_request]
name: Check & Release
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: lint
uses: Roang-zero1/factorio-mod-luacheck@master
with:
luacheckrc_url: https://raw.githubusercontent.com/Uberi/Minetest-WorldEdit/master/.luacheckrc
- uses: actions/checkout@v1
- name: apt
run: sudo apt-get install -y luarocks
- name: luacheck install
run: luarocks install --local luacheck
- name: luacheck run
run: $HOME/.luarocks/bin/luacheck ./

View File

@ -12,10 +12,6 @@ ignore = {
"file", "name",
}
globals = {
"minetest"
}
read_globals = {
string = {fields = {"split", "trim"}},
table = {fields = {"copy", "getn"}},
@ -24,5 +20,5 @@ read_globals = {
"smart_inventory", "sfinv",
"VoxelArea", "inventory_plus",
"ItemStack",
"ItemStack", "minetest",
}

View File

@ -88,7 +88,6 @@ if minetest.global_exists("unified_inventory") then -- unified inventory install
worldedit.show_page(name, "worldedit_gui")
return true
elseif fields.worldedit_gui_exit then --return to original page
player = minetest.get_player_by_name(name)
if player then
unified_inventory.set_inventory_formspec(player, "craft")
end