Skip to content

Commit

Permalink
Quote glob argument for markdownlint
Browse files Browse the repository at this point in the history
Signed-off-by: George Steel <george@net-glue.co.uk>
  • Loading branch information
gsteel committed Sep 10, 2024
1 parent faa4e11 commit d2d3b97
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,14 @@ export default function createTools(config: Config): Array<Tool> {
{
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,
},
Expand All @@ -91,7 +91,7 @@ export default function createTools(config: Config): Array<Tool> {
{
executionType : ToolExecutionType.STATIC,
name : 'README Linting',
command : 'markdownlint README.md',
command : 'markdownlint-cli2 README.md',
filesToCheck : [ 'README.md' ],
toolType : ToolType.LINTER,
},
Expand Down
2 changes: 1 addition & 1 deletion tests/doc-linting-doc-book/matrix.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
2 changes: 1 addition & 1 deletion tests/doc-linting-docs-book/matrix.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
2 changes: 1 addition & 1 deletion tests/doc-linting-without-code-checks-due-diff/matrix.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down

0 comments on commit d2d3b97

Please sign in to comment.