Skip to content

Commit

Permalink
Add linter for markdown in CI and custom rules
Browse files Browse the repository at this point in the history
  • Loading branch information
gevhaz committed Nov 18, 2024
1 parent 95a6f27 commit 174caa8
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@ jobs:
filter_mode: nofilter
fail_on_error: false

markdownlint:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Run mdl
uses: actionshub/markdownlint@main

build:
runs-on: ubuntu-latest
env:
Expand Down
9 changes: 9 additions & 0 deletions .mdl.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
all

exclude_rule "MD014"

exclude_rule "MD026"

exclude_rule "MD033"

rule "MD013", :tables => false
1 change: 1 addition & 0 deletions .mdlrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
style ".mdl.rb"

0 comments on commit 174caa8

Please sign in to comment.