mirror of
https://github.com/crate-ci/typos.git
synced 2024-11-22 09:01:04 -05:00
parent
05ad2bde04
commit
87effb2664
1 changed files with 1 additions and 0 deletions
|
@ -48,6 +48,7 @@ fi
|
||||||
|
|
||||||
log "$ ${COMMAND}"
|
log "$ ${COMMAND}"
|
||||||
${COMMAND} --format json |
|
${COMMAND} --format json |
|
||||||
|
grep '"type":"typo"' |
|
||||||
jq --sort-keys --raw-output '"::warning file=\(.path),line=\(.line_num),col=\(.byte_offset)::\"\(.typo)\" should be \"" + (.corrections // [] | join("\" or \"") + "\".")' |
|
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
|
while IFS= read -r line; do
|
||||||
echo "$line"
|
echo "$line"
|
||||||
|
|
Loading…
Reference in a new issue