包页面→ /norms/code/code-unix.md
pages/norms/code/code-unix.md
18 行, 784 B. 以页面形式查看.
- ---
- type: Page
- title: '设置:代码:Unix 哲学'
- rustLetUnderscore: false
- strictPass: false
- exclude: []
- ---
- # 设置:代码:Unix 哲学
- `code-unix` 包检查的阈值。修改页头中的数字,检查在下次运行时即采用新值。若某个键缺失,则使用默认值。
- | 键 | 默认值 | 含义 |
- |---|---|---|
- | `rustLetUnderscore` | false | 将 Rust 中的 let _ = call(); 计为被吞掉的错误(UNX-R03) |
- | `strictPass` | false | 同时将 Python 中的 except SpecificError: pass 计入(UNX-R03) |
- `exclude` 是从项目根目录起算的路径掩码,本包的检查不读取这些路径:`src/generated/**`、`legacy`、`**/*_pb.ts`。所有代码包的共享排除项见页面 [/norms/code.md](/norms/code.md)。