规则的插件 普通插件无法检查, 如“ 商业逻辑应该 或“模块应该暴露一个 小API" (小API). 您可以将一条规则写为 Markdown 文件, 其代码可以显示 :
---
description: A third-party API going offline should not also take our app down.
---
Our APIs should not depend on a third-party API on a critical path. The
user-facing side should be unaffected if it goes offline, and ingestion should
happen in a separate, asynchronous process.
## Should
```ts
// GET /api/restaurants/:zipCode reads only our own database.
export async function findRestaurants(zipCode: string) {
return db.restaurants.find({ where: { zipCode } });
}
```
## Should not
```ts
// When Google Maps is down, slow, or over quota, so is this endpoint.
export async function findRestaurants(zipCode: string) {
return googleMaps.findAll({ where: { zipCode } });
}
```
遵守询问 杰维,TypeSafe AI的系统一模型,是否 每个文件会打破返回校正概率的每个规则。 坚持 并显示 档案Jev指向。 报告看起来像Oxlint的:

规则普通的插件可以精确检查, 如禁止的导入或类型
错误,属于那个线圈.
adhere validate 列出规则 Jev
找到相互矛盾的规则.
开始吧
curl -fsSL https://github.com/darkmatter/adhere/raw/main/scripts/install.sh | sh
adhere login # save your TypeSafe AI API key
adhere lint --preset typescript,react # try the built-in presets on your code
adhere init # scaffold .adhere/config.ts and two example rules
adhere rules create # write a rule with a coding agent: claude, codex, or omp
脚本安装到 ~/.local/bin。如果你的外壳找不到 adhere
之后,将目录添加到您的 PATH。 。 。 . adhere lint 估计
判断会花费很多 当Stdin和Stdout是终端时, 它在发送前问
任何东西; 否则,或与 --yes它不问就发出来 软件包是
@drkmttr/adhere数字 : adhere npm 是一个不相关的软件包.
文档
- 开始 : 导言, (中文(简体) ), 安装, (中文(简体) ), 开始
- 规则: 规则格式, (中文(简体) ), 写好规则, (中文(简体) ), 从您的 repo 生成规则, (中文(简体) ), 从其他重置中安装规则, (中文(简体) ), 预设
- 用法 : 阅读报告, (中文(简体) ), 配置, (中文(简体) ), 运行中线, (中文(简体) ), 检查代理记录
- 验证并改进规则 : 审定规则, (中文(简体) ), 现场直播
- 高级特性 : 状态钩和类型识别, (中文(简体) ), 供应商, (中文(简体) ), 评论和压制
- 代理技能
- 参考: 图标, (中文(简体) ), 配置文件, (中文(简体) ), 缓存, (中文(简体) ), 如何判断文件
- 编写您的 AGENTS.md
捐款和许可证
麻省理工学院. 见 自由主义。每个 GitHub 版本所附带的可执行文件
跟我来 LICENSE 财务报告和审定财务报表 THIRD_PARTY_NOTICES.txt,它与任何副本
重新分配。 用于构建、测试或释放检查结果中的粘接符,参见
捐款额。 。 。 .