-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…-linter-and-formatter #347: Add markdownlint-cli2 as Github Action and pre-commit hook
- Loading branch information
Showing
4 changed files
with
496 additions
and
308 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
on: [pull_request] | ||
|
||
permissions: | ||
contents: read | ||
pull-requests: read | ||
checks: write | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: DavidAnson/markdownlint-cli2-action@v17 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# MD013/line-length | ||
MD013: | ||
line_length: 120 | ||
|
||
# no-duplicate-heading - Multiple headings with the same content (Ignore multiple `Explanation` headings) | ||
MD024: false | ||
|
||
# no-trailing-punctuation - Trailing punctuation in heading (Ignore exclamation marks in headings) | ||
MD026: false | ||
|
||
# no-inline-html : Inline HTML (HTML is used for centered and theme specific images) | ||
MD033: false | ||
|
||
# no-inline-html : Bare URL used (site should be attributed transparently, because otherwise we have to un-necesarily explain where the link directs) | ||
MD034: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
default_language_version: | ||
python: python3.12 | ||
repos: | ||
- repo: https://github.com/DavidAnson/markdownlint-cli2 | ||
rev: v0.14.0 | ||
hooks: | ||
- id: markdownlint-cli2 |
Oops, something went wrong.