源代码拼写检查器
源代码拼写检查器
查找并纠正源代码中的拼写错误:
采用 MIT 或 Apache 2.0 双重许可
下载预编译的二进制文件 (可通过 gh-install 安装)。
或者使用 Rust 进行安装:
$ cargo install typos-cli --locked或者使用 Homebrew 进行安装:
$ brew install typos-cli或者使用 Conda 安装:
$ conda install typos或者使用 Pacman 安装:
$ sudo pacman -S typos最常见的情况是,你可能想先看看有哪些拼写错误可用,使用
$ typos或者直接修复它们
$ typos --write-changes
$ typos -w如果存在任何歧义(多个可能的修正),typos 只会向用户报告并继续处理。
有时,看起来像拼写错误的内容其实是故意的,比如人名、缩写或本地化内容。
要将某个单词或标识符(单词组合)标记为有效,请将其添加到你的 _typos.toml 文件中。
[][Documentation] [][Crates.io]
暂无开放 Issues,或尚未同步最近议题。