@@ -407,14 +407,21 @@ func Test_sarifPrint(t *testing.T) {
407
407
"driver": {
408
408
"informationUri": "https://github.com/terraform-linters/tflint",
409
409
"name": "tflint-errors",
410
- "rules": [],
410
+ "rules": [
411
+ {
412
+ "id": "application_error",
413
+ "shortDescription": {
414
+ "text": ""
415
+ }
416
+ }
417
+ ],
411
418
"version": "%s"
412
419
}
413
420
},
414
421
"results": [
415
422
{
416
423
"ruleId": "application_error",
417
- "ruleIndex": 18446744073709551615 ,
424
+ "ruleIndex": 0 ,
418
425
"level": "error",
419
426
"message": {
420
427
"text": "Failed to work; I don't feel like working"
@@ -462,14 +469,21 @@ func Test_sarifPrint(t *testing.T) {
462
469
"driver": {
463
470
"informationUri": "https://github.com/terraform-linters/tflint",
464
471
"name": "tflint-errors",
465
- "rules": [],
472
+ "rules": [
473
+ {
474
+ "id": "summary",
475
+ "shortDescription": {
476
+ "text": ""
477
+ }
478
+ }
479
+ ],
466
480
"version": "%s"
467
481
}
468
482
},
469
483
"results": [
470
484
{
471
485
"ruleId": "summary",
472
- "ruleIndex": 18446744073709551615 ,
486
+ "ruleIndex": 0 ,
473
487
"level": "warning",
474
488
"message": {
475
489
"text": "detail"
@@ -535,30 +549,43 @@ func Test_sarifPrint(t *testing.T) {
535
549
"driver": {
536
550
"informationUri": "https://github.com/terraform-linters/tflint",
537
551
"name": "tflint-errors",
538
- "rules": [],
552
+ "rules": [
553
+ {
554
+ "id": "application_error",
555
+ "shortDescription": {
556
+ "text": ""
557
+ }
558
+ },
559
+ {
560
+ "id": "summary",
561
+ "shortDescription": {
562
+ "text": ""
563
+ }
564
+ }
565
+ ],
539
566
"version": "%s"
540
567
}
541
568
},
542
569
"results": [
543
570
{
544
571
"ruleId": "application_error",
545
- "ruleIndex": 18446744073709551615 ,
572
+ "ruleIndex": 0 ,
546
573
"level": "error",
547
574
"message": {
548
575
"text": "an error occurred"
549
576
}
550
577
},
551
578
{
552
579
"ruleId": "application_error",
553
- "ruleIndex": 18446744073709551615 ,
580
+ "ruleIndex": 0 ,
554
581
"level": "error",
555
582
"message": {
556
583
"text": "failed"
557
584
}
558
585
},
559
586
{
560
587
"ruleId": "summary",
561
- "ruleIndex": 18446744073709551615 ,
588
+ "ruleIndex": 1 ,
562
589
"level": "warning",
563
590
"message": {
564
591
"text": "detail"
0 commit comments