docs: establish marqdo-lint architecture and examples
This commit is contained in:
1 parent
326c9bb119
commit
68b14db095
19 files changed
+1338
No files matched your search
@@ -0,0 +1,34 @@
|
||||
# marqdo-lint
|
||||
|
||||
`marqdo-lint` 是面向 Marqdo `.mq.md` 可执行文档的独立可读性检查工具。它把真实 Markdown AST 与公开 Analysis v2 对齐,检查分支、循环、叙述和说明的阅读质量,而不重新解释语言语义。
|
||||
|
||||
## 当前基线
|
||||
|
||||
- Marqdo 3.0.0-rc.1,核心审阅提交 `f7a5a7b0163bf5229ed09adfffd892f9899e6667`
|
||||
- Markdown Profile `marqdo.md.v1`
|
||||
- Analysis v2 与 CLI Tool v1
|
||||
- Rust 1.89 或更新版本
|
||||
|
||||
## 构建
|
||||
|
||||
```bash
|
||||
cargo build --locked
|
||||
```
|
||||
|
||||
运行测试时需要兼容的冻结核心,并通过 `MARQDO_BIN` 指定其绝对路径。工具只调用公开的 `inspect --ast --json` 和 `check --emit`,不链接核心私有 crate。
|
||||
|
||||
## 目标命令
|
||||
|
||||
```bash
|
||||
marqdo-lint index.mq.md
|
||||
marqdo-lint . --profile recommended --format json
|
||||
marqdo-lint explain MQD-BRANCH-001
|
||||
marqdo-lint rules
|
||||
marqdo-lint index.mq.md --fix safe
|
||||
```
|
||||
|
||||
打包后可通过 Tool v1 安装为 `marqdo lint`。完整设计、规则和安全边界见 `docs/`。
|
||||
|
||||
## 发布状态
|
||||
|
||||
当前按 0.1.0 候选实现。核心仓库内示例的应用试跑不等于“两个独立应用仓库”发布门禁,最终限制以 `docs/VALIDATION.md` 为准。
|
||||
Reference in new issue
Block a user