blob: 2e02e7c34bff101c4d112e1cb1810867eb1b4b2d [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
Zack Williamsa719e4a2018-05-16 14:44:36 -070015# markdownlint(mdl) strict rules file
16# To use: `make LINT_STYLE=mdl_strict.rb lint`
17#
Matteo Scandolo9d96a7d2018-05-15 17:22:32 -070018# Rule descriptions:
19# https://github.com/markdownlint/markdownlint/blob/master/docs/RULES.md
Zack Williamsa719e4a2018-05-16 14:44:36 -070020# Instructions on modifying the rules file:
21# https://github.com/markdownlint/markdownlint/blob/master/docs/creating_styles.md
Matteo Scandolo9d96a7d2018-05-15 17:22:32 -070022
Zack Williamsad366132018-05-14 14:45:47 -070023# use all rules
24all
25
26# Indent lists with 4 spaces
27rule 'MD007', :indent => 4
28
29# Don't enforce line length limitations within code blocks and tables
Zack Williamsa719e4a2018-05-16 14:44:36 -070030rule 'MD013', :code_blocks => false, :tables => false
Zack Williamsad366132018-05-14 14:45:47 -070031
32# Allow ! and ? as trailing punctuation in headers
33rule 'MD026', :punctuation => '.,;:'
34
Zack Williamsa719e4a2018-05-16 14:44:36 -070035# Numbered lists should have the correct order
36rule 'MD029', :style => "ordered"
Matteo Scandolo9d96a7d2018-05-15 17:22:32 -070037