mirror of
https://github.com/crate-ci/typos.git
synced 2024-11-22 17:11:07 -05:00
a950dd27ff
This makes for easier local testing.
9 lines
274 B
Bash
Executable file
9 lines
274 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -eu
|
|
|
|
grep '"type":"typo"' |
|
|
jq --sort-keys --raw-output '"::warning file=\(.path),line=\(.line_num),col=\(.byte_offset)::\"\(.typo)\" should be \"" + (.corrections // [] | join("\" or \"") + "\".")' |
|
|
while IFS= read -r line; do
|
|
echo "$line"
|
|
done
|