Skip to content

Commit

Permalink
update luacheck and add badge
Browse files Browse the repository at this point in the history
  • Loading branch information
OgelGames committed Jan 5, 2021
1 parent d4775af commit 26355f1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 11 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/luacheck.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
name: luacheck

on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@master
- name: apt
run: sudo apt-get install -y luarocks
- name: luacheck install
Expand Down
3 changes: 0 additions & 3 deletions .luacheckrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
unused_args = false
allow_defined_top = true

globals = {
"telemosaic"
Expand All @@ -8,12 +7,10 @@ globals = {
read_globals = {
-- Stdlib
string = {fields = {"split"}},
table = {fields = {"copy", "getn"}},

-- Minetest
"minetest",
"vector", "ItemStack",
"dump",

-- Deps
"default",
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Telemosaic [telemosaic]
=======================
# Telemosaic [telemosaic]

[![luacheck](https://github.com/mt-mods/telemosaic/workflows/luacheck/badge.svg)](https://github.com/mt-mods/telemosaic/actions)

A Minetest mod for user-generated teleportation pads.

Expand Down
2 changes: 1 addition & 1 deletion teleport.lua
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ local telemosaic_digiline_switching = {
}

-- teleports the player with given telemosaic pos
function do_teleport(pos, player)
local function do_teleport(pos, player)

-- prevent teleport spamming
local player_name = player:get_player_name()
Expand Down

0 comments on commit 26355f1

Please sign in to comment.