{ "name": "typos", "version": "1.51.1", "summary": "typos: finds and fixes spelling mistakes in source code, with few false positives (Rust)", "category": "tool", "license": "MIT OR Apache-2.0", "homepage": "https://github.com/crate-ci/typos", "source": { "url": "https://github.com/crate-ci/typos/archive/refs/tags/v1.51.1.tar.gz", "sha256": "6dfe9ff8720e476ae93b4c4749270c4afb608694deb7bd6af4ecb09d222e6ddb" }, "watch": {"kind": "github-release", "repo": "crate-ci/typos", "tag_regex": "^v([0-9]+\\.[0-9]+\\.[0-9]+)$", "revendor": {"tool": "cargo", "lockfile": "Cargo.lock"}}, "vendor": "vendor.txt", "deps": [], "env_packages": [], "static": true, "nss": true, "check": "bin/typos --version | has -x 'typos-cli 1.51.1' && t=$(mktemp -d) && p=$PWD && printf 'This is teh first line.\\nWe recieve data here.\\nA correct line.\\n' > \"$t/a.txt\" && (cd \"$t\" && \"$p/bin/typos\" --format brief a.txt > \"$t/o\"; [ $? = 2 ]) && has -x 'a.txt:1:9: error: `teh` should be `the`' < \"$t/o\" && has -x 'a.txt:2:4: error: `recieve` should be `receive`' < \"$t/o\" && (cd \"$t\" && \"$p/bin/typos\" -w a.txt) && [ \"$(cat \"$t/a.txt\")\" = \"$(printf 'This is the first line.\\nWe receive data here.\\nA correct line.')\" ] && (cd \"$t\" && \"$p/bin/typos\" a.txt) && echo 'typos 1.51.1: two misspellings found with their places, fixed with -w, the file clean afterwards'" }