From d2d3b97cf5b32baf5a02cf203389efacca0a1f59 Mon Sep 17 00:00:00 2001 From: George Steel Date: Tue, 10 Sep 2024 18:54:33 +0100 Subject: [PATCH] Quote glob argument for `markdownlint` Signed-off-by: George Steel --- src/tools.ts | 6 +++--- tests/doc-linting-doc-book/matrix.json | 2 +- tests/doc-linting-docs-book/matrix.json | 2 +- tests/doc-linting-without-code-checks-due-diff/matrix.json | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/tools.ts b/src/tools.ts index 7f1da944..3525f22a 100644 --- a/src/tools.ts +++ b/src/tools.ts @@ -70,14 +70,14 @@ export default function createTools(config: Config): Array { { executionType : ToolExecutionType.STATIC, name : 'Documentation Linting', - command : 'markdownlint doc/book/**/*.md', + command : "markdownlint-cli2 'doc/book/**/*.md'", filesToCheck : [ 'doc/book/' ], toolType : ToolType.LINTER, }, { executionType : ToolExecutionType.STATIC, name : 'Documentation Linting', - command : 'markdownlint docs/book/**/*.md', + command : "markdownlint-cli2 'docs/book/**/*.md'", filesToCheck : [ 'docs/book/' ], toolType : ToolType.LINTER, }, @@ -91,7 +91,7 @@ export default function createTools(config: Config): Array { { executionType : ToolExecutionType.STATIC, name : 'README Linting', - command : 'markdownlint README.md', + command : 'markdownlint-cli2 README.md', filesToCheck : [ 'README.md' ], toolType : ToolType.LINTER, }, diff --git a/tests/doc-linting-doc-book/matrix.json b/tests/doc-linting-doc-book/matrix.json index e96c79f7..76134841 100644 --- a/tests/doc-linting-doc-book/matrix.json +++ b/tests/doc-linting-doc-book/matrix.json @@ -2,7 +2,7 @@ "include": [ { "name": "Documentation Linting [7.4, latest]", - "job": "{\"command\":\"markdownlint doc/book/**/*.md\",\"php\":\"7.4\",\"extensions\":[],\"ini\":[],\"dependencies\":\"latest\",\"ignore_platform_reqs_8\":false,\"ignore_php_platform_requirement\":false,\"additional_composer_arguments\":[],\"before_script\":[]}", + "job": "{\"command\":\"markdownlint 'doc/book/**/*.md'\",\"php\":\"7.4\",\"extensions\":[],\"ini\":[],\"dependencies\":\"latest\",\"ignore_platform_reqs_8\":false,\"ignore_php_platform_requirement\":false,\"additional_composer_arguments\":[],\"before_script\":[]}", "operatingSystem": "ubuntu-latest", "action": "laminas/laminas-continuous-integration-action@v1" } diff --git a/tests/doc-linting-docs-book/matrix.json b/tests/doc-linting-docs-book/matrix.json index 9978188c..24e68c81 100644 --- a/tests/doc-linting-docs-book/matrix.json +++ b/tests/doc-linting-docs-book/matrix.json @@ -2,7 +2,7 @@ "include": [ { "name": "Documentation Linting [7.4, latest]", - "job": "{\"command\":\"markdownlint docs/book/**/*.md\",\"php\":\"7.4\",\"extensions\":[],\"ini\":[],\"dependencies\":\"latest\",\"ignore_platform_reqs_8\":false,\"ignore_php_platform_requirement\":false,\"additional_composer_arguments\":[],\"before_script\":[]}", + "job": "{\"command\":\"markdownlint 'docs/book/**/*.md'\",\"php\":\"7.4\",\"extensions\":[],\"ini\":[],\"dependencies\":\"latest\",\"ignore_platform_reqs_8\":false,\"ignore_php_platform_requirement\":false,\"additional_composer_arguments\":[],\"before_script\":[]}", "operatingSystem": "ubuntu-latest", "action": "laminas/laminas-continuous-integration-action@v1" } diff --git a/tests/doc-linting-without-code-checks-due-diff/matrix.json b/tests/doc-linting-without-code-checks-due-diff/matrix.json index edd23089..623e195a 100644 --- a/tests/doc-linting-without-code-checks-due-diff/matrix.json +++ b/tests/doc-linting-without-code-checks-due-diff/matrix.json @@ -2,7 +2,7 @@ "include": [ { "name": "Documentation Linting [8.1, locked]", - "job": "{\"command\":\"markdownlint docs/book/**/*.md\",\"php\":\"8.1\",\"extensions\":[],\"ini\":[],\"dependencies\":\"locked\",\"ignore_platform_reqs_8\":false,\"ignore_php_platform_requirement\":false,\"additional_composer_arguments\":[],\"before_script\":[]}", + "job": "{\"command\":\"markdownlint 'docs/book/**/*.md'\",\"php\":\"8.1\",\"extensions\":[],\"ini\":[],\"dependencies\":\"locked\",\"ignore_platform_reqs_8\":false,\"ignore_php_platform_requirement\":false,\"additional_composer_arguments\":[],\"before_script\":[]}", "operatingSystem": "ubuntu-latest", "action": "laminas/laminas-continuous-integration-action@v1" }