chore(just): rockspec lint
This commit is contained in:
parent
64fbdf908f
commit
00fa4ba32e
|
@ -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/**"
|
||||
|
|
12
justfile
12
justfile
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue