Skip to content

Commit e41599a

Browse files
committed
feature: introduce markdown linting for README.md
Signed-off-by: Maximilian Bösing <[email protected]>
1 parent f736154 commit e41599a

File tree

8 files changed

+34
-0
lines changed

8 files changed

+34
-0
lines changed

src/tools.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,13 @@ export default function createTools(config: Config): Array<Tool> {
6464
filesToCheck : [ 'mkdocs.yml' ],
6565
toolType : ToolType.LINTER,
6666
},
67+
{
68+
executionType : ToolExecutionType.STATIC,
69+
name : 'README Linting',
70+
command : 'markdownlint README.md',
71+
filesToCheck : [ 'README.md' ],
72+
toolType : ToolType.LINTER,
73+
},
6774
{
6875
executionType : ToolExecutionType.MATRIX,
6976
name : 'PHPUnit',
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"stablePHP": "7.4"
3+
}

tests/doc-linting-readme-due-diff/README.md

Whitespace-only changes.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"include": [
3+
{
4+
"name": "Documentation Linting [7.4, latest]",
5+
"job": "{\"command\":\"markdownlint README.md\",\"php\":\"7.4\",\"extensions\":[],\"ini\":[],\"dependencies\":\"latest\",\"ignore_platform_reqs_8\":false,\"ignore_php_platform_requirement\":false,\"additional_composer_arguments\":[],\"before_script\":[]}",
6+
"operatingSystem": "ubuntu-latest",
7+
"action": "laminas/laminas-continuous-integration-action@v1"
8+
}
9+
]
10+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"stablePHP": "7.4"
3+
}

tests/doc-linting-readme/README.md

Whitespace-only changes.

tests/doc-linting-readme/diff

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
README.md

tests/doc-linting-readme/matrix.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"include": [
3+
{
4+
"name": "Documentation Linting [7.4, latest]",
5+
"job": "{\"command\":\"markdownlint README.md\",\"php\":\"7.4\",\"extensions\":[],\"ini\":[],\"dependencies\":\"latest\",\"ignore_platform_reqs_8\":false,\"ignore_php_platform_requirement\":false,\"additional_composer_arguments\":[],\"before_script\":[]}",
6+
"operatingSystem": "ubuntu-latest",
7+
"action": "laminas/laminas-continuous-integration-action@v1"
8+
}
9+
]
10+
}

0 commit comments

Comments
 (0)