mirror of
https://github.com/crate-ci/typos.git
synced 2024-11-30 04:51:03 -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
|