blob: 65042697d48d5685bd6016a6c2c872cee758f744 [file] [log] [blame]
Zack Williamsad366132018-05-14 14:45:47 -07001# Copyright 2017-present Open Networking Foundation
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
Matteo Scandolo9d96a7d2018-05-15 17:22:32 -070015# markdownlint(mdl) style rules
16# Rule descriptions:
17# https://github.com/markdownlint/markdownlint/blob/master/docs/RULES.md
18# Help on writing this rules:
19#. https://github.com/markdownlint/markdownlint/blob/master/docs/creating_styles.md
20
Zack Williamsad366132018-05-14 14:45:47 -070021# use all rules
22all
23
24# Indent lists with 4 spaces
25rule 'MD007', :indent => 4
26
27# Don't enforce line length limitations within code blocks and tables
Matteo Scandolo9d96a7d2018-05-15 17:22:32 -070028rule 'MD013', :code_blocks => false, :tables => false, line_length: false
Zack Williamsad366132018-05-14 14:45:47 -070029
30# Numbered lists should have the correct order
31rule 'MD029', :style => "ordered"
32
33# Allow ! and ? as trailing punctuation in headers
34rule 'MD026', :punctuation => '.,;:'
35
Matteo Scandolo9d96a7d2018-05-15 17:22:32 -070036# Exclude rule: Trailing spaces
37exclude_rule 'MD009'
38
39# Exclude rule: Fenced code blocks should be surrounded by blank lines
40exclude_rule 'MD031'
41
42# Exclude rule: Multiple spaces after blockquote symbol
43exclude_rule 'MD027'
44
45# Exclude rule: Header levels should only increment by one level at a time
46exclude_rule 'MD001'