chore: update taskfile

This commit is contained in:
Smirnov Oleksandr 2024-02-28 18:47:29 +02:00
parent a5327cc435
commit 8badd8e63d

View file

@ -2,21 +2,29 @@ version: "3"
tasks:
format:
desc: formats all lua files in repo
cmds: [stylua .]
cmds:
- stylua .
lint:
desc: runs all linters
cmds:
- task: lint_selene
- task: lint_stylua
- task: selene
- task: stylua:check
lint_selene:
selene:
desc: runs lua linter(selene)
cmds: [selene .]
cmds:
- selene .
lint_stylua:
stylua:check:
desc: runs stylua in check mode
cmds: [stylua --check .]
cmds:
- stylua --check .
stylua:
desc: runs lua formatter
cmds:
- stylua .
test:
desc: runs all tests