Skip to content

Effects Int: Potions: add potions for breath. Closes #1733 #1701

Effects Int: Potions: add potions for breath. Closes #1733

Effects Int: Potions: add potions for breath. Closes #1733 #1701

Workflow file for this run

# Linting via luacheck
name: Lint (luacheck)
on:
push:
branches: [ master, dev ]
pull_request:
branches: [ master, dev ]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repo recursively
uses: actions/checkout@v2
with:
submodules: recursive
fetch-depth: 30
- name: Install LuaCheck
run: |
sudo apt-get install luarocks
luarocks install --local luacheck
- name: Run linter
run: |
$HOME/.luarocks/bin/luacheck .
# As for now there is excluded files.
# As the project https://github.com/orgs/lord-server/projects/7/views/3 progresses these exclusions will be removed.
- name: Check Cyclomatic Complexity
run: |
$HOME/.luarocks/bin/luacheck . --max-cyclomatic-complexity 10 \
--globals lottachievements races throwing \
--exclude-files \
mods/_minetest_game/ \
mods/lord/_overwrites/MTG/default/ \
mods/lord/Blocks/lottblocks/ \
mods/lord/Blocks/lord_homedecor/ \
mods/lord/Blocks/lord_spawners/ \
mods/lord/Blocks/protector_lott/ \
mods/lord/Blocks/signs_lib/ \
mods/lord/Blocks/technic_chests/ \
mods/lord/Entities/throwing/ \
mods/lord/Entities/npc/ \
mods/lord/Entities/lottthrowing/ \
mods/lord/Entities/lottmobs/ \
mods/lord/Game/lottachievements/ \
mods/lord/Game/lord_classes/ \
mods/lord/Player/hud_modpack/hbhunger/ \
mods/lord/Player/hud_modpack/hbsprint/ \
mods/lord/Player/hud_modpack/hudbars/ \
mods/lord/Tools/lord_replacer/ \
mods/lord/Tools/lord_books/ \
mods/lord/Tools/lord_boats/ \
mods/lord/World/Generation/icicles/ \
mods/lord/World/Generation/lottmapgen/ \
mods/lord/World/mountgen/ \
mods/lord/Player/Help/lord_tooltips/src/snippet/properties/node.lua