Skip to content

Commit

Permalink
ci: add markdown lint
Browse files Browse the repository at this point in the history
Signed-off-by: subhamkrai <[email protected]>
  • Loading branch information
subhamkrai committed Oct 7, 2024
1 parent 9ad05e2 commit 4e8f6f2
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,15 @@ jobs:
- name: govulncheck
uses: golang/govulncheck-action@v1

markdownlint:
name: markdownlint
runs-on: ubuntu-latest
steps:
- uses: DavidAnson/markdownlint-cli2-action@v16
with:
config: .markdownlint.yaml
globs: '**/*.md'

shellcheck:
name: Shellcheck
runs-on: ubuntu-latest
Expand Down
16 changes: 16 additions & 0 deletions .markdownlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
MD010: false # Hard tabs
MD012: false # Multiple consecutive blank lines
MD013: false # Line length
MD019: false # Multiple spaces after hash on atx style heading
MD021: false # Multiple spaces inside hashes on closed atx style heading
MD022: false # Headings should be surrounded by blank lines
MD024: false # Multiple headings with the same content
MD025: false # Multiple top-level headings in the same document
MD027: false # Multiple spaces after blockquote symbol
MD030: false # Spaces after list markers
MD031: false # Fenced code blocks should be surrounded by blank lines
MD032: false # Lists should be surrounded by blank lines
MD041: false # First line in a file should be a top-level heading
MD043: false # Required heading structure
MD045: false # Images should have alternate text (alt text)
MD053: false # Link and image reference definitions should be needed

0 comments on commit 4e8f6f2

Please sign in to comment.