11 个版本 (3 个稳定版)
| 1.0.2 | 2024年4月19日 |
|---|---|
| 1.0.1 | 2022年4月27日 |
| 0.1.8 | 2022年4月21日 |
| 0.1.6 | 2020年7月29日 |
#1188 in 命令行工具
305KB
231 行
拒绝代码库中的绝对路径!
noabspath 搜索并突出显示检测到的所有绝对路径。

用法
William Droz
Detect hard-coded absolute paths in codesbases
USAGE:
noabspath [OPTIONS]
OPTIONS:
-h, --help Print help information
-i, --ignore-file File that contains patterns to ignore [default: .gitignore]
-p, --path Path of codebase to check [default: .]
-V, --version Print version information
用例
最常见的情况是在 CI 管道中使用 noabspath。
安装
Cargo
cargo install noabspath
Snap
sudo snap install noabspath
或
sudo snap install noabspath --edge
依赖
~6–17MB
~182K SLoC