Skip to content

Commit

Permalink
Lock version of markdownlint-cli and fix violations (#398)
Browse files Browse the repository at this point in the history
* Lock version of markdownlint-cli and fix violations

markdownlint-cli was using a floating version, and since this
linter was introduced additional rules have been added so now
the linting fails on the master branch. Lock the version to
the currently latest version and disable the rule that we
didn't comply with (since addressing it properly would be
rather intrusive).

Co-authored-by: Mattias Linnér <mattias.linner@ericsson.com>
  • Loading branch information
magnusbaeck and m-linner-ericsson committed May 16, 2024
1 parent 8ab5e01 commit 42229f8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .markdown-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@
# Rules by tags #
#################

# MD041/first-line-heading/first-line-h1
# First line in a file being a top-level heading collides with starting
# each file with a copyright statement.
first-line-h1: false # Affects 45 files

# MD013/line-length - Line length
line-length:
line_length: 900 # Arbitrary length to catch the worst. Setting this to 120 affects 500 lines
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,4 @@ changedir = {toxinidir}
allowlist_externals =
npx
commands =
npx markdownlint-cli -c .markdown-lint.yml *.md **/*.md
npx markdownlint-cli@v0.34.0 -c .markdown-lint.yml *.md **/*.md

0 comments on commit 42229f8

Please sign in to comment.