Skip to content

Commit 8772592

Browse files
committed
pre-commit: add markdown-link-check config and ignore links
https://github.com/tcort/markdown-link-check?tab=readme-ov-file#config-file-format
1 parent 2f77f2b commit 8772592

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/linters/mlc_config.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"ignorePatterns": [
3+
{
4+
"pattern": "^https://github.com/mruby/mruby/commit/.*"
5+
}
6+
]
7+
}

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ repos:
7272
- id: markdown-link-check
7373
name: Run markdown-link-check
7474
description: Checks hyperlinks in Markdown files
75-
args: [-q]
75+
args: [--config=.github/linters/mlc_config.json, -q]
7676
types: [markdown]
7777
files: \.(md|mdown|markdown)$
7878
- repo: https://github.com/adrienverge/yamllint

0 commit comments

Comments
 (0)