Skip to content

Commit

Permalink
Update markdown linter (#148)
Browse files Browse the repository at this point in the history
Signed-off-by: Oliver Gould <ver@buoyant.io>
  • Loading branch information
olix0r authored Aug 18, 2022
1 parent 94ddb28 commit 0f4ab6c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/markdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,18 @@ permissions:
on:
pull_request:
paths:
- '**/*.md'
- .github/workflows/markdown.yml
- '**/*.md'

jobs:
markdownlint:
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
- uses: DavidAnson/markdownlint-cli2-action@d199b6e1b89360c71e0c21eac02f7965faf07ba6
- uses: DavidAnson/markdownlint-cli2-action@e3969ef4ed874458f4b66d4631f78fff7717012c
with:
globs: "**/*.md"
globs: |
**/*.md
!**/node_modules/**
!target/**
3 changes: 0 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,5 @@ Describe the testing you've done to validate your change. Performance-related
changes should include before- and after- benchmark results.

[discourse]: https://discourse.linkerd.io/c/conduit
[governance]: GOVERNANCE.md
[issue]: https://github.com/linkerd/linkerd2/issues/new
[maintainers]: MAINTAINERS.md
[members]: https://github.com/orgs/linkerd/people
[slack]: http://slack.linkerd.io/
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,3 @@ Issues may be opened in the [**linkerd2** repository][new-issue].
[rs-crate-url]: https://crates.io/crates/linkerd2-proxy-api
[rs-docs-badge]: https://docs.rs/linkerd2-proxy-api/badge.svg
[rs-docs-url]: https://docs.rs/linkerd2-proxy-api
[rs-docs-url]: https://img.shields.io/crates/l/linkerd2-proxy-api
[rs-lic-badge]: https://img.shields.io/crates/l/linkerd2-proxy-api
7 changes: 6 additions & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@
## General recipes
##

default: rs-fetch rs-deny gen rs-check-fmt rs-clippy rs-docs rs-test
default: rs-fetch rs-deny gen lint rs-test

lint: md-lint gen-check rs-clippy rs-docs

md-lint:
markdownlint-cli2 '**/*.md' '!**/node_modules' '!**/target'

# Generate Go & Rust bindings from protobuf.
gen: rs-gen go-gen
Expand Down

0 comments on commit 0f4ab6c

Please sign in to comment.