From bb721e074f60cc2a6fb7bd061568ec24adef2053 Mon Sep 17 00:00:00 2001 From: Martin Nonnenmacher Date: Fri, 8 Mar 2024 14:10:59 +0100 Subject: [PATCH] style: Enable Markdownlint rule max-one-sentence-per-line Enable the custom Markdowwnlint rule max-one-sentence-per-line [1]. [1]: https://github.com/aepfli/markdownlint-rule-max-one-sentence-per-line Signed-off-by: Martin Nonnenmacher --- .github/workflows/static-analysis.yml | 6 +++++- .markdownlint-cli2.yaml | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml index 3a01203defd27..aa5b9cf2afa8d 100644 --- a/.github/workflows/static-analysis.yml +++ b/.github/workflows/static-analysis.yml @@ -81,8 +81,12 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 + - name: Setup Node + uses: actions/setup-node@v4 - name: Check for Markdown issues - uses: DavidAnson/markdownlint-cli2-action@v15 + run: | + npm install -g markdownlint-rule-max-one-sentence-per-line@0.0.2 + npx markdownlint-cli2 qodana-scan: runs-on: ubuntu-22.04 steps: diff --git a/.markdownlint-cli2.yaml b/.markdownlint-cli2.yaml index 13e6cd037b493..bb9ddd29562ba 100644 --- a/.markdownlint-cli2.yaml +++ b/.markdownlint-cli2.yaml @@ -1,6 +1,8 @@ # Configuration for the markdownlint-cli2, see: # https://github.com/DavidAnson/markdownlint-cli2/blob/main/test/markdownlint-cli2-yaml-example/.markdownlint-cli2.yaml +customRules: + - markdownlint-rule-max-one-sentence-per-line globs: - "**/*.md" ignores: