mirror of
https://github.com/iDvel/rime-ice.git
synced 2026-05-14 00:30:37 +08:00
* ci: add lint scripts * fix(lint): handle luacheck summary with ansi colors * fix(ci): use luarocks to install luacheck * fix(ci): add sudo * test: 调整用例顺序
1.2 KiB
1.2 KiB
YAML and Lua lint entrypoint
This directory contains the lightweight lint entrypoint used by local commands.
Dependencies
Current stage:
yamllintluacheck
Example install on macOS:
brew install yamllint luacheck
Usage
From the repository root:
bash others/script/lint/run.sh yaml-lint
bash others/script/lint/run.sh lua-lint
bash others/script/lint/run.sh all
make -C others/script lint-yaml
make -C others/script lint-lua
make -C others/script lint
make -C others/script smoke
Notes
- The current implementation enables YAML linting and Lua linting.
- The first stage checks repository-root business YAML files and root
*.schema.yamlfiles. *.schema.yamlfiles are preprocessed before linting so thepin_cand_filtertab-separated list does not break generic YAML parsing.lua-lintrunsluacheckwith a repository-local configuration derived from the librime-lua globals currently used by this repository.lua-format-checkis reserved for a later stage.smokemirrors the current CI smoke invocation and runsbash ./others/script/smoke/run.sh rime_icethrough Make.- GitHub Actions are intentionally not changed in this stage.