generated from reviewdog/action-composite-template
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from reviewdog/init
init
- Loading branch information
Showing
7 changed files
with
80 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
Determinisitic result is important. | ||
Determinisitic result is important! | ||
Check notice on line 1 in testdata/text.md GitHub Actions / typos[typos] testdata/text.md#L1
Raw output
|
||
|
||
colour # <= Check -locale | ||
|
||
langauge | ||
Check notice on line 5 in testdata/text.md GitHub Actions / typos[typos] testdata/text.md#L5
Raw output
|
||
|
||
varius | ||
Check notice on line 7 in testdata/text.md GitHub Actions / typos[typos] testdata/text.md#L7
Raw output
|
||
|
||
A abd B | ||
Check notice on line 9 in testdata/text.md GitHub Actions / typos[typos] testdata/text.md#L9
Raw output
|
||
|
||
It SHOUL be A | ||
Check notice on line 11 in testdata/text.md GitHub Actions / typos[typos] testdata/text.md#L11
Raw output
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
. as $item | | ||
if .type == "typo" then | ||
{ | ||
"message": ("Typo: " + .typo + " -> " + (.corrections | join(", "))), | ||
"location": { | ||
"path": .path, | ||
"range": { | ||
"start": { "line": .line_num, "column": (.byte_offset + 1) }, | ||
"end": { "line": .line_num, "column": (.byte_offset + (.typo | length) + 1) } | ||
} | ||
}, | ||
"suggestions": .corrections | map({ | ||
"text": ., | ||
"range": { | ||
"start": { "line": $item.line_num, "column": ($item.byte_offset + 1) }, | ||
"end": { "line": $item.line_num, "column": ($item.byte_offset + ($item.typo | length) + 1) } | ||
} | ||
}) | ||
} | ||
else | ||
empty | ||
end |