[Bugix] Fix parsing of !reference
tag
#156
Annotations
3 errors
Run tests:
test/cli.spec.js#L25
Expected:
[
{
"check_name": "prettier",
with arg",
"fingerprint": "ea70e2ae0144c16efa5df45bf52a33de",
"location": {
"lines": {
"begin": 3,
"end": 3,
},
"path": "test/__stubs__/dirty-2.js",
},
"severity": "minor",
"type": "issue",
},
{
"check_name": "prettier",
"description": "Insert ;",
"fingerprint": "d88816112daed6a61fd9d81e964a484b",
"location": {
"lines": {
"begin": 5,
"end": 5,
},
"path": "test/__stubs__/dirty-2.js",
},
"severity": "minor",
"type": "issue",
},
{
"check_name": "prettier",
{",
"fingerprint": "c38522eb22f56c446d6b78774d940d24",
"location": {
"lines": {
"begin": 3,
"end": 11,
},
"path": "test/__stubs__/dirty.js",
},
"severity": "minor",
"type": "issue",
},
{
"check_name": "prettier",
",
"fingerprint": "f312c866f5c2332c733d2de24b9efa0f",
"location": {
"lines": {
"begin": 12,
"end": 15,
},
"path": "test/__stubs__/dirty.js",
},
"severity": "minor",
"type": "issue",
},
{
"check_name": "prettier",
"description":
"SyntaxError: Unexpected token, expected "(" (3:13)
1 | /* eslint-disable */
2 |
> 3 | function foo#####( arg ) {
| ^
4 | return arg;
5 | }
6 |"
,
"fingerprint": "462882d90971b8c9dcaaa2b4d74d1da6",
"location": {
"path": "test/__stubs__/syntax-error.js",
},
"severity": "major",
"type": "issue",
},
]
Received:
[
{
"check_name": "prettier",
",
"fingerprint": "20c9ca526d0a43e3075a3e0f74135991",
"location": {
"lines": {
"begin": 11,
"end": 12,
},
"path": "test/__stubs__/.gitlab-ci.yml",
},
"severity": "minor",
"type": "issue",
},
{
"check_name": "prettier",
with arg",
"fingerprint": "ea70e2ae0144c16efa5df45bf52a33de",
"location": {
"lines": {
"begin": 3,
"end": 3,
},
"path": "test/__stubs__/dirty-2.js",
},
"severity": "minor",
"type": "issue",
},
{
"check_name": "prettier",
"description": "Insert ;",
"fingerprint": "d88816112daed6a61fd9d81e964a484b",
"location": {
"lines": {
"begin": 5,
"end": 5,
},
"path": "test/__stubs__/dirty-2.js",
},
"severity": "minor",
"type": "issue",
},
{
"check_name": "prettier",
{",
"fingerprint": "c38522eb22f56c446d6b78774d940d24",
"location": {
"lines": {
"begin": 3,
"end": 11,
},
"path": "test/__stubs__/dirty.js",
},
"severity": "minor",
"type": "issue",
},
{
"check_name": "prettier",
",
"fingerprint": "f312c866f5c2332c733d2de24b9efa0f",
"location": {
"lines": {
"begin": 12,
"end": 15,
},
"path": "test/__stubs__/dirty.js",
},
"severity": "minor",
"type": "issue",
},
{
"check_name": "prettier",
"description":
"SyntaxError: Unexpected token, expected "(" (3:13)
1 | /* eslint-disable */
2 |
> 3 | function foo#####( arg ) {
| ^
4 | return arg;
5 | }
6 |"
,
"fingerprint": "462882d90971b8c9dcaaa2b4d74d1da6",
"location": {
"path": "test/__stubs__/syntax-error.js",
},
"severity": "major",
"type": "issue",
},
]
at <anonymous> (/Users/runner/work/prettier-formatter-gitlab/prettier-formatter-gitlab/test/cli.spec.js:25:21)
|
Run tests:
test/cli.spec.js#L39
Expected:
[
{
"check_name": "prettier",
with arg",
"fingerprint": "ea70e2ae0144c16efa5df45bf52a33de",
"location": {
"lines": {
"begin": 3,
"end": 3,
},
"path": "test/__stubs__/dirty-2.js",
},
"severity": "minor",
"type": "issue",
},
{
"check_name": "prettier",
"description": "Insert ;",
"fingerprint": "d88816112daed6a61fd9d81e964a484b",
"location": {
"lines": {
"begin": 5,
"end": 5,
},
"path": "test/__stubs__/dirty-2.js",
},
"severity": "minor",
"type": "issue",
},
{
"check_name": "prettier",
{",
"fingerprint": "c38522eb22f56c446d6b78774d940d24",
"location": {
"lines": {
"begin": 3,
"end": 11,
},
"path": "test/__stubs__/dirty.js",
},
"severity": "minor",
"type": "issue",
},
{
"check_name": "prettier",
",
"fingerprint": "f312c866f5c2332c733d2de24b9efa0f",
"location": {
"lines": {
"begin": 12,
"end": 15,
},
"path": "test/__stubs__/dirty.js",
},
"severity": "minor",
"type": "issue",
},
{
"check_name": "prettier",
"description":
"SyntaxError: Unexpected token, expected "(" (3:13)
1 | /* eslint-disable */
2 |
> 3 | function foo#####( arg ) {
| ^
4 | return arg;
5 | }
6 |"
,
"fingerprint": "462882d90971b8c9dcaaa2b4d74d1da6",
"location": {
"path": "test/__stubs__/syntax-error.js",
},
"severity": "major",
"type": "issue",
},
]
Received:
[
{
"check_name": "prettier",
",
"fingerprint": "20c9ca526d0a43e3075a3e0f74135991",
"location": {
"lines": {
"begin": 11,
"end": 12,
},
"path": "test/__stubs__/.gitlab-ci.yml",
},
"severity": "minor",
"type": "issue",
},
{
"check_name": "prettier",
with arg",
"fingerprint": "ea70e2ae0144c16efa5df45bf52a33de",
"location": {
"lines": {
"begin": 3,
"end": 3,
},
"path": "test/__stubs__/dirty-2.js",
},
"severity": "minor",
"type": "issue",
},
{
"check_name": "prettier",
"description": "Insert ;",
"fingerprint": "d88816112daed6a61fd9d81e964a484b",
"location": {
"lines": {
"begin": 5,
"end": 5,
},
"path": "test/__stubs__/dirty-2.js",
},
"severity": "minor",
"type": "issue",
},
{
"check_name": "prettier",
{",
"fingerprint": "c38522eb22f56c446d6b78774d940d24",
"location": {
"lines": {
"begin": 3,
"end": 11,
},
"path": "test/__stubs__/dirty.js",
},
"severity": "minor",
"type": "issue",
},
{
"check_name": "prettier",
",
"fingerprint": "f312c866f5c2332c733d2de24b9efa0f",
"location": {
"lines": {
"begin": 12,
"end": 15,
},
"path": "test/__stubs__/dirty.js",
},
"severity": "minor",
"type": "issue",
},
{
"check_name": "prettier",
"description":
"SyntaxError: Unexpected token, expected "(" (3:13)
1 | /* eslint-disable */
2 |
> 3 | function foo#####( arg ) {
| ^
4 | return arg;
5 | }
6 |"
,
"fingerprint": "462882d90971b8c9dcaaa2b4d74d1da6",
"location": {
"path": "test/__stubs__/syntax-error.js",
},
"severity": "major",
"type": "issue",
},
]
at <anonymous> (/Users/runner/work/prettier-formatter-gitlab/prettier-formatter-gitlab/test/cli.spec.js:39:21)
|
Run tests
Process completed with exit code 1.
|
Loading