mirror of
https://github.com/crate-ci/typos.git
synced 2024-11-25 18:41:05 -05:00
10 lines
274 B
Bash
10 lines
274 B
Bash
|
#!/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
|