Skip to content

Commit

Permalink
Add test data
Browse files Browse the repository at this point in the history
  • Loading branch information
haya14busa committed Feb 9, 2024
1 parent 1246224 commit 4949d2c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions _testdata/custom.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,8 @@ haya14busa
function f()
{
}

# Severity test
test INFO

Check notice on line 20 in _testdata/custom.txt

View workflow job for this annotation

GitHub Actions / custom-rdjson

[custom-rdjson] _testdata/custom.txt#L20

severity test 1 (INFO)
Raw output
message:"severity test 1 (INFO)" location:{path:"_testdata/custom.txt" range:{start:{line:20 column:5}}} severity:INFO

Check warning on line 20 in _testdata/custom.txt

View workflow job for this annotation

GitHub Actions / custom-rdjson

[custom-rdjson] _testdata/custom.txt#L20

severity test 2 (INFO by number)
Raw output
message:"severity test 2 (INFO by number)" location:{path:"_testdata/custom.txt" range:{start:{line:20 column:4}}} severity:WARNING

Check warning on line 20 in _testdata/custom.txt

View workflow job for this annotation

GitHub Actions / custom-rdjson

[custom-rdjson] _testdata/custom.txt#L20

severity test 3 (WARNING)
Raw output
message:"severity test 3 (WARNING)" location:{path:"_testdata/custom.txt" range:{start:{line:20 column:5}}} severity:WARNING

Check failure on line 20 in _testdata/custom.txt

View workflow job for this annotation

GitHub Actions / custom-rdjson

[custom-rdjson] _testdata/custom.txt#L20

severity test 4 (ERROR)
Raw output
message:"severity test 4 (ERROR)" location:{path:"_testdata/custom.txt" range:{start:{line:20 column:5}}} severity:ERROR
test WARNING
test ERROR
10 changes: 5 additions & 5 deletions _testdata/custom_rdjson.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,20 +82,20 @@
"path": "_testdata/custom.txt",
"range": {
"start": {
"line": 3,
"line": 20,
"column": 5
}
}
},
"severity": "INFO"
},
{
"message": "severity test 2 (INFO)",
"message": "severity test 2 (INFO by number)",
"location": {
"path": "_testdata/custom.txt",
"range": {
"start": {
"line": 3,
"line": 20,
"column": 4
}
}
Expand All @@ -108,7 +108,7 @@
"path": "_testdata/custom.txt",
"range": {
"start": {
"line": 3,
"line": 20,
"column": 5
}
}
Expand All @@ -121,7 +121,7 @@
"path": "_testdata/custom.txt",
"range": {
"start": {
"line": 3,
"line": 20,
"column": 5
}
}
Expand Down

0 comments on commit 4949d2c

Please sign in to comment.