mirror of
https://github.com/iDvel/rime-ice.git
synced 2026-05-14 00:30:37 +08:00
* refactor: rewrite lunar.lua based on ReverseDb(), fix #1525 #1238 * test: fix test suite for lunar.db * fix: 注释错误 * fix: 清理旧注释
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.