Skip to content

Commit 6ff3bb0

Browse files
Switch markdownlint GH action to use super-linter (dotnet#4567)
1 parent b05c0da commit 6ff3bb0

File tree

5 files changed

+36
-55
lines changed

5 files changed

+36
-55
lines changed

.github/linters/.markdown-lint.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
default: true
2+
MD013: # line length
3+
code_block_line_length: 256
4+
heading_line_length: 96
5+
MD033: false # no inline HTML
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Lint Code Base
2+
3+
on:
4+
pull_request: null
5+
6+
permissions: {}
7+
8+
jobs:
9+
run-lint:
10+
runs-on: ubuntu-latest
11+
12+
permissions:
13+
contents: read
14+
packages: read
15+
# To report GitHub Actions status checks
16+
statuses: write
17+
18+
steps:
19+
- name: Checkout code
20+
uses: actions/checkout@v4
21+
with:
22+
# Full git history is needed to get a proper list of changed files within `super-linter`
23+
fetch-depth: 0
24+
- name: Lint Code Base
25+
uses: github/super-linter@v6 # https://github.com/github/super-linter
26+
env:
27+
DEFAULT_BRANCH: main
28+
FILTER_REGEX_EXCLUDE: eng/common/.*|eng/readme-templates/.*
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
VALIDATE_ALL_CODEBASE: false
31+
VALIDATE_MARKDOWN: true

.github/workflows/markdownlint-problem-matcher.json

Lines changed: 0 additions & 17 deletions
This file was deleted.

.github/workflows/markdownlint.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

.markdownlint.json

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)