GenerateSarifResults-expected.sarif 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. {
  2. "$schema": "https://schemastore.azurewebsites.net/schemas/json/sarif-2.1.0-rtm.4.json",
  3. "runs": [
  4. {
  5. "results": [
  6. {
  7. "level": "warning",
  8. "locations": [
  9. {
  10. "physicalLocation": {
  11. "artifactLocation": {
  12. "uri": "PATH:<SOURCE_DIR>/GenerateSarifResults.cmake"
  13. },
  14. "region": {
  15. "startLine": 2
  16. }
  17. }
  18. }
  19. ],
  20. "message": {
  21. "text": "Example warning message"
  22. },
  23. "ruleId": "CMake.Warning",
  24. "ruleIndex": 0
  25. },
  26. {
  27. "level": "warning",
  28. "locations": [
  29. {
  30. "physicalLocation": {
  31. "artifactLocation": {
  32. "uri": "PATH:<SOURCE_DIR>/GenerateSarifResults.cmake"
  33. },
  34. "region": {
  35. "startLine": 5
  36. }
  37. }
  38. }
  39. ],
  40. "message": {
  41. "text": "A second example warning message"
  42. },
  43. "ruleId": "CMake.Warning",
  44. "ruleIndex": 0
  45. }
  46. ],
  47. "tool": {
  48. "driver": {
  49. "name": "CMake",
  50. "rules": [
  51. {
  52. "id": "CMake.Warning",
  53. "messageStrings": {
  54. "default": {
  55. "text": "CMake Warning: {0}"
  56. }
  57. },
  58. "name": "CMake Warning"
  59. }
  60. ],
  61. "version": "<IGNORE>"
  62. }
  63. }
  64. }
  65. ],
  66. "version": "2.1.0"
  67. }