diff --git a/formatter-sarif/markdownlint-cli2-formatter-sarif.js b/formatter-sarif/markdownlint-cli2-formatter-sarif.js index 4552bc6..d2124f9 100644 --- a/formatter-sarif/markdownlint-cli2-formatter-sarif.js +++ b/formatter-sarif/markdownlint-cli2-formatter-sarif.js @@ -25,7 +25,7 @@ const outputFormatter = (options, params) => { { "tool": { "driver": { - "name": packageJson.name, + "name": Object.keys(packageJson.peerDependencies)[0], "version": packageJson.version, "informationUri": packageJson.homepage, "rules": sarifRules diff --git a/test/snapshots/markdownlint-cli2-test-exec.mjs.md b/test/snapshots/markdownlint-cli2-test-exec.mjs.md index a0eb78e..6a2cc9c 100644 --- a/test/snapshots/markdownlint-cli2-test-exec.mjs.md +++ b/test/snapshots/markdownlint-cli2-test-exec.mjs.md @@ -3356,7 +3356,7 @@ Generated by [AVA](https://avajs.dev). {␊ "tool": {␊ "driver": {␊ - "name": "markdownlint-cli2-formatter-sarif",␊ + "name": "markdownlint-cli2",␊ "version": "0.0.2",␊ "informationUri": "https://github.com/DavidAnson/markdownlint-cli2",␊ "rules": [␊ @@ -4966,7 +4966,7 @@ Generated by [AVA](https://avajs.dev). {␊ "tool": {␊ "driver": {␊ - "name": "markdownlint-cli2-formatter-sarif",␊ + "name": "markdownlint-cli2",␊ "version": "0.0.2",␊ "informationUri": "https://github.com/DavidAnson/markdownlint-cli2",␊ "rules": [␊ @@ -5343,7 +5343,7 @@ Generated by [AVA](https://avajs.dev). {␊ "tool": {␊ "driver": {␊ - "name": "markdownlint-cli2-formatter-sarif",␊ + "name": "markdownlint-cli2",␊ "version": "0.0.2",␊ "informationUri": "https://github.com/DavidAnson/markdownlint-cli2",␊ "rules": [␊ @@ -5648,7 +5648,7 @@ Generated by [AVA](https://avajs.dev). {␊ "tool": {␊ "driver": {␊ - "name": "markdownlint-cli2-formatter-sarif",␊ + "name": "markdownlint-cli2",␊ "version": "0.0.2",␊ "informationUri": "https://github.com/DavidAnson/markdownlint-cli2",␊ "rules": []␊ diff --git a/test/snapshots/markdownlint-cli2-test-exec.mjs.snap b/test/snapshots/markdownlint-cli2-test-exec.mjs.snap index 3c13475..b68eeac 100644 Binary files a/test/snapshots/markdownlint-cli2-test-exec.mjs.snap and b/test/snapshots/markdownlint-cli2-test-exec.mjs.snap differ diff --git a/test/snapshots/markdownlint-cli2-test-main.mjs.md b/test/snapshots/markdownlint-cli2-test-main.mjs.md index d568384..64905d7 100644 --- a/test/snapshots/markdownlint-cli2-test-main.mjs.md +++ b/test/snapshots/markdownlint-cli2-test-main.mjs.md @@ -3560,7 +3560,7 @@ Generated by [AVA](https://avajs.dev). {␊ "tool": {␊ "driver": {␊ - "name": "markdownlint-cli2-formatter-sarif",␊ + "name": "markdownlint-cli2",␊ "version": "0.0.2",␊ "informationUri": "https://github.com/DavidAnson/markdownlint-cli2",␊ "rules": [␊ @@ -4204,7 +4204,7 @@ Generated by [AVA](https://avajs.dev). {␊ "tool": {␊ "driver": {␊ - "name": "markdownlint-cli2-formatter-sarif",␊ + "name": "markdownlint-cli2",␊ "version": "0.0.2",␊ "informationUri": "https://github.com/DavidAnson/markdownlint-cli2",␊ "rules": [␊ @@ -4583,7 +4583,7 @@ Generated by [AVA](https://avajs.dev). {␊ "tool": {␊ "driver": {␊ - "name": "markdownlint-cli2-formatter-sarif",␊ + "name": "markdownlint-cli2",␊ "version": "0.0.2",␊ "informationUri": "https://github.com/DavidAnson/markdownlint-cli2",␊ "rules": [␊ @@ -4890,7 +4890,7 @@ Generated by [AVA](https://avajs.dev). {␊ "tool": {␊ "driver": {␊ - "name": "markdownlint-cli2-formatter-sarif",␊ + "name": "markdownlint-cli2",␊ "version": "0.0.2",␊ "informationUri": "https://github.com/DavidAnson/markdownlint-cli2",␊ "rules": []␊ diff --git a/test/snapshots/markdownlint-cli2-test-main.mjs.snap b/test/snapshots/markdownlint-cli2-test-main.mjs.snap index 798533a..154a4c7 100644 Binary files a/test/snapshots/markdownlint-cli2-test-main.mjs.snap and b/test/snapshots/markdownlint-cli2-test-main.mjs.snap differ