Skip to content

Commit

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

on: [push]

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
16 changes: 0 additions & 16 deletions .luacheckrc
Original file line number Diff line number Diff line change
@@ -1,21 +1,5 @@
unused_args = false
allow_defined_top = true

globals = {
"luaentity",
"minetest",
"xp_redo"
}

read_globals = {
-- Stdlib
string = {fields = {"split"}},
table = {fields = {"copy", "getn"}},

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

-- deps
"default", "mesecon"
}
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Ore ranks
# Ore ranks for xp_redo

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

## Depends

Expand Down
2 changes: 1 addition & 1 deletion ranks.lua
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ local suffixes = {

-- #suffixes x #prefixes
for _,prefix in pairs(prefixes) do
for i,suffix in pairs(suffixes) do
for _,suffix in pairs(suffixes) do
local xp = prefix.base_xp + (prefix.xp_modifier * suffix.xp_modifier)

xp_redo.register_rank({
Expand Down

0 comments on commit 1c840a6

Please sign in to comment.