Skip to content

Commit

Permalink
pre-commit - switch to markdownlint-cli2
Browse files Browse the repository at this point in the history
  • Loading branch information
Allen Winter committed Oct 10, 2024
1 parent 607dbf3 commit 6ec7032
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 11 deletions.
2 changes: 2 additions & 0 deletions .krazy
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ EXCLUDE style
SKIP /fwd_headers/
SKIP /flutter/generated/
SKIP Doxyfile.cmake
SKIP .markdownlint.json
SKIP book/searchindex.json

SKIP /src/3rdparty/|/examples/qtquick/CMakeFiles/
#skip CMake files
Expand Down
16 changes: 16 additions & 0 deletions .markdownlint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"default": true,
"MD007": {
"indent": 2,
"start_indented": false
},
"MD013": {
"line_length": 100,
"tables": false,
"code_blocks": false
},
"MD029": {
"style": "ordered"
},
"MD033": false
}
1 change: 0 additions & 1 deletion .mdlrc

This file was deleted.

5 changes: 0 additions & 5 deletions .mdlrc.rb

This file was deleted.

6 changes: 2 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,10 @@ repos:
exclude: (.py.cmake|Doxyfile.cmake|examples/flutter/)
- id: cmake-format
exclude: (.py.cmake|Doxyfile.cmake|examples/flutter/)
- repo: https://github.com/markdownlint/markdownlint
- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.12.0
hooks:
- id: markdownlint
entry: mdl
language: ruby
- id: markdownlint-cli2
files: \.(md|mdown|markdown)$
exclude: (docs/book/)
- repo: https://github.com/fsfe/reuse-tool
Expand Down
2 changes: 1 addition & 1 deletion .reuse/dep5
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Copyright: Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
License: GPL-2.0-only OR GPL-3.0-only

#misc config files
Files: .pre-commit-config.yaml .codespellrc .krazy .cmake-format .clang-format .clangd .clazy .clang-tidy .gitignore .mdlrc .mdlrc.rb .pep8 .pylintrc .editorconfig .shellcheckrc mkdocs.yml .github/workflows/mdbook.yml code.dev-*.code-workspace code.dev*.code-workspace vscode.code-workspace docs/api/Doxyfile.cmake distro/* *.yaml .github/workflows/pip-requirements.txt valgrind.sup
Files: .pre-commit-config.yaml .codespellrc .krazy .cmake-format .clang-format .clangd .clazy .clang-tidy .gitignore .markdownlint.json .pep8 .pylintrc .editorconfig .shellcheckrc mkdocs.yml .github/workflows/mdbook.yml code.dev-*.code-workspace code.dev*.code-workspace vscode.code-workspace docs/api/Doxyfile.cmake distro/* *.yaml .github/workflows/pip-requirements.txt valgrind.sup
Copyright: Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
License: BSD-3-Clause

Expand Down

0 comments on commit 6ec7032

Please sign in to comment.