pre-commit: adjust mardownlint default, md fixes

Use a style file as recommended by upstream. This makes for only one
source of truth.
Conserve previous upstream default for MD007 (upstream default changed
here https://github.com/markdownlint/markdownlint/pull/373)
lean/pre-commit-hook-2
Max Gautier 2024-05-28 10:08:30 +02:00
parent 0faa805525
commit ff48144607
No known key found for this signature in database
6 changed files with 6 additions and 7 deletions

View File

@ -1,3 +0,0 @@
---
MD013: false
MD029: false

4
.md_style.rb 100644
View File

@ -0,0 +1,4 @@
all
exclude_rule 'MD013'
exclude_rule 'MD029'
rule 'MD007', :indent => 2

1
.mdlrc 100644
View File

@ -0,0 +1 @@
style "#{File.dirname(__FILE__)}/.md_style.rb"

View File

@ -24,8 +24,7 @@ repos:
rev: v0.11.0
hooks:
- id: markdownlint
args: [-r, "~MD013,~MD029"]
exclude: "^.git"
exclude: "^.github|(^docs/_sidebar\\.md$)"
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.10.0.1

View File

@ -1,4 +1,3 @@
# OpenStack
## Known compatible public clouds

View File

@ -1,4 +1,3 @@
# Recovering the control plane
To recover from broken nodes in the control plane use the "recover\-control\-plane.yml" playbook.