Skip to content

Commit

Permalink
Merge pull request #3 from reviewdog/fix-mesg
Browse files Browse the repository at this point in the history
Fix messages
  • Loading branch information
haya14busa authored Jun 15, 2024
2 parents c836522 + 7747a05 commit d5804bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions testdata/text.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Determinisitic result is important!
Determinisitic result is important.

Check notice on line 1 in testdata/text.md

View workflow job for this annotation

GitHub Actions / typos

[typos] testdata/text.md#L1

`Determinisitic` should be `Deterministic`
Raw output
{"message":"`Determinisitic` should be `Deterministic`","location":{"path":"./testdata/text.md","range":{"start":{"line":1,"column":1},"end":{"line":1,"column":15}}},"suggestions":[{"text":"Deterministic","range":{"start":{"line":1,"column":1},"end":{"line":1,"column":15}}}]}

Check warning on line 1 in testdata/text.md

View workflow job for this annotation

GitHub Actions / misspell

[misspell] testdata/text.md#L1

"Determinisitic" is a misspelling of "Deterministic"
Raw output
./testdata/text.md:1:0: "Determinisitic" is a misspelling of "Deterministic"

colour # <= Check -locale

Check warning on line 3 in testdata/text.md

View workflow job for this annotation

GitHub Actions / misspell

[misspell] testdata/text.md#L3

"colour" is a misspelling of "color"
Raw output
./testdata/text.md:3:0: "colour" is a misspelling of "color"

Expand All @@ -8,4 +8,4 @@ varius

A abd B

Check notice on line 9 in testdata/text.md

View workflow job for this annotation

GitHub Actions / typos

[typos] testdata/text.md#L9

`abd` should be `and`
Raw output
{"message":"`abd` should be `and`","location":{"path":"./testdata/text.md","range":{"start":{"line":9,"column":3},"end":{"line":9,"column":6}}},"suggestions":[{"text":"and","range":{"start":{"line":9,"column":3},"end":{"line":9,"column":6}}}]}

It SHOUL be A
It SHOUL be A!

Check notice on line 11 in testdata/text.md

View workflow job for this annotation

GitHub Actions / typos

[typos] testdata/text.md#L11

`SHOUL` should be `SHOULD`, `SHAWL`, `SHOAL`
Raw output
{"message":"`SHOUL` should be `SHOULD`, `SHAWL`, `SHOAL`","location":{"path":"./testdata/text.md","range":{"start":{"line":11,"column":4},"end":{"line":11,"column":9}}},"suggestions":[{"text":"SHOULD","range":{"start":{"line":11,"column":4},"end":{"line":11,"column":9}}},{"text":"SHAWL","range":{"start":{"line":11,"column":4},"end":{"line":11,"column":9}}},{"text":"SHOAL","range":{"start":{"line":11,"column":4},"end":{"line":11,"column":9}}}]}
2 changes: 1 addition & 1 deletion to-rdjsonl.jq
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
. as $item |
if .type == "typo" then
{
"message": ("Typo: " + .typo + " -> " + (.corrections | join(", "))),
"message": ("`" + .typo + "` should be `" + (.corrections | join("`, `")) + "`"),
"location": {
"path": .path,
"range": {
Expand Down

0 comments on commit d5804bc

Please sign in to comment.