chore(just): rockspec lint
ci/woodpecker/pr/docker-build Pipeline was successful Details
ci/woodpecker/pr/lint Pipeline was successful Details
ci/woodpecker/pr/build Pipeline was successful Details
ci/woodpecker/pr/test Pipeline was successful Details

This commit is contained in:
Aire-One 2023-09-18 11:44:19 +02:00
parent 64fbdf908f
commit 00fa4ba32e
2 changed files with 8 additions and 6 deletions

View File

@ -22,7 +22,7 @@ pipeline:
image: gitea.aireone.xyz/aire-one/awesomewm.d.tl/luacheck_just:latest
group: lint
commands:
- just check-rockspec
- just check-rockspecs
when:
path:
- ".woodpecker/**"

View File

@ -8,7 +8,7 @@ rockspec_file := "awesomewm-d-tl-dev-1.rockspec"
lua_targets := `find src/ -type f -iname '*.lua' | xargs` + " " + `ls *.lua | xargs`
teal_targets := `find src/ types/ -type f -iname '*.tl' | xargs`
rockspec_targets := `find . -type f -iname '*.rockspec' | xargs`
rockspec_targets := `find {.,rockspecs} -maxdepth 1 -type f -iname '*.rockspec' | xargs`
local-install-dependencies:
luarocks \
@ -31,10 +31,12 @@ check-format:
stylua --check {{ lua_targets }}
check-rockspecs:
luarocks \
--lua-version {{ lua_version }} \
lint \
{{ rockspec_targets }}
for rock in {{ rockspec_targets }}; do \
luarocks \
--lua-version {{ lua_version }} \
lint \
$rock ; \
done
check: check-lua check-format check-teal check-rockspecs