Skip to content

File tree

2 files changed

+109
-0
lines changed

2 files changed

+109
-0
lines changed

.github/linters/.markdown-lint.yml

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
# MD001/heading-increment Heading levels should only increment by one level at a time
19+
MD001: false
20+
21+
# MD003/heading-style Heading style
22+
MD003: false
23+
24+
# MD004/ul-style Unordered list style
25+
MD004: false
26+
27+
# MD007/ul-indent Unordered list indentation
28+
MD007: false
29+
30+
# MD009/no-trailing-spaces Trailing spaces
31+
MD009: false
32+
33+
# MD010/no-hard-tabs Hard tabs
34+
MD010: false
35+
36+
# MD012/no-multiple-blanks Multiple consecutive blank lines
37+
MD012: false
38+
39+
# MD013/line-length Line length
40+
MD013: false
41+
42+
# MD014/commands-show-output Dollar signs used before commands without showing output
43+
MD014: false
44+
45+
# MD018/no-missing-space-atx No space after hash on atx style heading
46+
MD018: false
47+
48+
# MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading
49+
MD019: false
50+
51+
# MD022/blanks-around-headings Headings should be surrounded by blank lines
52+
MD022: false
53+
54+
# MD023/heading-start-left Headings must start at the beginning of the line
55+
MD023: false
56+
57+
# MD024/no-duplicate-heading Multiple headings with the same content
58+
MD024: false
59+
60+
# MD025/single-title/single-h1 Multiple top-level headings in the same document
61+
MD025: false
62+
63+
# MD026/no-trailing-punctuation Trailing punctuation in heading
64+
MD026: false
65+
66+
# MD028/no-blanks-blockquote Blank line inside blockquote
67+
MD028: false
68+
69+
# MD029/ol-prefix Ordered list item prefix
70+
MD029: false
71+
72+
# MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines
73+
MD031: false
74+
75+
# MD032/blanks-around-lists Lists should be surrounded by blank lines
76+
MD032: false
77+
78+
# MD033/no-inline-html Inline HTML
79+
MD033: false
80+
81+
# MD034/no-bare-urls Bare URL used
82+
MD034: false
83+
84+
# MD036/no-emphasis-as-heading Emphasis used instead of a heading
85+
MD036: false
86+
87+
# MD037/no-space-in-emphasis Spaces inside emphasis markers
88+
MD037: false
89+
90+
# MD040/fenced-code-language Fenced code blocks should have a language specified
91+
MD040: false
92+
93+
# MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading
94+
MD041: false
95+
96+
# MD046/code-block-style Code block style
97+
MD046: false
98+
99+
# MD052/reference-links-images Reference links and images should use a label that is defined
100+
MD052: false

.pre-commit-config.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,12 @@ repos:
7575
^scripts/vm/hypervisor/xenserver/vmopspremium$|
7676
^setup/bindir/cloud-setup-encryption\.in$|
7777
^venv/.*$
78+
- repo: https://github.com/igorshubovych/markdownlint-cli
79+
rev: v0.40.0
80+
hooks:
81+
- id: markdownlint
82+
name: run markdownlint
83+
description: check Markdown files with markdownlint
84+
args: [--config=.github/linters/.markdown-lint.yml]
85+
types: [markdown]
86+
files: \.(md|mdown|markdown)$

0 commit comments

Comments
 (0)