Simplify test directory by moving all JSON configuration for scenario tests into the Markdown file via markdownlint-configure-file.

This commit is contained in:
David Anson 2023-03-15 21:26:22 -07:00
parent c49d37c382
commit 0ebcf248ca
265 changed files with 2184 additions and 1106 deletions

View file

@ -1,7 +0,0 @@
{
"MD009": false,
"MD010": {
"spaces_per_tab": 4
},
"MD041": false
}

View file

@ -1,3 +1,11 @@
text {MD010}
text and text 2 {MD010}
texts with trailing spaces {MD010}
<!-- markdownlint-configure-file {
"MD009": false,
"MD010": {
"spaces_per_tab": 4
},
"MD041": false
} -->

View file

@ -1,6 +0,0 @@
{
"default": true,
"MD002": true,
"MD006": true,
"MD041": false
}

View file

@ -28,3 +28,9 @@ Text text {MD010}
10. Ten
11. Eleven {MD005}
12. Twelve
<!-- markdownlint-configure-file {
"MD002": true,
"MD006": true,
"MD041": false
} -->

View file

@ -1,6 +0,0 @@
{
"default": true,
"MD013": {
"heading_line_length": 40
}
}

View file

@ -26,3 +26,9 @@ A (reversed)[link] example. {MD011}
*Another* (reversed)[link] example. {MD011}
{MD012:7} {MD013:8} {MD013:10}
<!-- markdownlint-configure-file {
"MD013": {
"heading_line_length": 40
}
} -->

View file

@ -1,6 +0,0 @@
{
"default": true,
"MD041": false,
"MD049": false,
"MD050": false
}

View file

@ -63,3 +63,9 @@ Space * inside {MD037}
multi-line * emphasis. {MD037}
{MD031:3} {MD035:11} {MD040:21}
<!-- markdownlint-configure-file {
"MD041": false,
"MD049": false,
"MD050": false
} -->

View file

@ -1,15 +0,0 @@
{
"default": true,
"MD013": false,
"MD043": {
"headings": [
"# Heading"
]
},
"MD044": {
"names": [
"markdownlint"
]
},
"MD051": false
}

View file

@ -46,4 +46,19 @@ Inconsistent _double_ text _interleaved_ text _double_ _interleaved_ emphasis. {
Inconsistent **double** text **interleaved** text **double** **interleaved** strong emphasis. {MD050}
<!-- markdownlint-configure-file {
"MD013": false,
"MD043": {
"headings": [
"# Heading"
]
},
"MD044": {
"names": [
"markdownlint"
]
},
"MD051": false
} -->
Missing newline character {MD043} {MD047}

View file

@ -1,12 +0,0 @@
{
"default": true,
"MD002": {
"level": 2
},
"MD025": {
"level": 2
},
"MD041": {
"level": 2
}
}

View file

@ -1,3 +1,15 @@
## A level 2 top level heading
## Another one {MD025}
<!-- markdownlint-configure-file {
"MD002": {
"level": 2
},
"MD025": {
"level": 2
},
"MD041": {
"level": 2
}
} -->

View file

@ -1,5 +0,0 @@
{
"default": true,
"MD002": false,
"MD041": false
}

View file

@ -17,3 +17,8 @@
## Heading 9 {MD003} \#
## Heading 10 {MD003} \#
<!-- markdownlint-configure-file {
"MD002": false,
"MD041": false
} -->

View file

@ -1,5 +0,0 @@
{
"default": true,
"MD002": false,
"MD041": false
}

View file

@ -3,3 +3,8 @@
## Heading 2 {MD019}
## Heading 3 {MD019}
<!-- markdownlint-configure-file {
"MD002": false,
"MD041": false
} -->

View file

@ -1,9 +0,0 @@
{
"default": true,
"MD003": false,
"MD012": false,
"MD022": {
"lines_above": 0,
"lines_below": 2
}
}

View file

@ -22,3 +22,12 @@ Elderberry {MD022}
------------------
Text
## Fig
<!-- markdownlint-configure-file {
"MD003": false,
"MD012": false,
"MD022": {
"lines_above": 0,
"lines_below": 2
}
} -->

View file

@ -1,9 +0,0 @@
{
"default": true,
"MD003": false,
"MD012": false,
"MD022": {
"lines_above": 3,
"lines_below": 0
}
}

View file

@ -26,3 +26,12 @@ Text
## Fig
<!-- markdownlint-configure-file {
"MD003": false,
"MD012": false,
"MD022": {
"lines_above": 3,
"lines_below": 0
}
} -->

View file

@ -1,4 +0,0 @@
{
"default": true,
"MD003": false
}

View file

@ -20,3 +20,7 @@ Elderberry {MD022}
Text
## Fig
<!-- markdownlint-configure-file {
"MD003": false
} -->

View file

@ -1,17 +0,0 @@
{
"default": true,
"MD002": true,
"MD006": true,
"MD043": {
"headings": [
"## Heading 1 {MD002} {MD041}",
"#### Heading 2 {MD001}",
"# Broken"
]
},
"MD044": {
"names": [
"markdownlint"
]
}
}

View file

@ -1,6 +1,6 @@
## Heading 1 {MD002} {MD041}
## Heading 1 {MD002:1} {MD041:1}
#### Heading 2 {MD001}
#### Heading 2 {MD001:3}
# Heading 3 {MD003} {MD043} #
@ -100,4 +100,21 @@ Strong **with** different style {MD050}
[unused]: link-destination
{MD053:100}
<!-- markdownlint-configure-file {
"MD002": true,
"MD006": true,
"MD043": {
"headings": [
"## Heading 1 {MD002:1} {MD041:1}",
"#### Heading 2 {MD001:3}",
"# Broken"
]
},
"MD044": {
"names": [
"markdownlint"
]
}
} -->
EOF {MD047}

View file

@ -1,6 +0,0 @@
{
"default": true,
"MD007": {
"indent": 4
}
}

View file

@ -6,3 +6,9 @@ set to 4 space indents for lists:
* Test X
* Test Y {MD007}
* Test Z {MD007}
<!-- markdownlint-configure-file {
"MD007": {
"indent": 4
}
} -->

View file

@ -1,4 +0,0 @@
{
"default": true,
"MD006": true
}

View file

@ -57,3 +57,7 @@ Text
* Item {MD006} {MD007}
* Item {MD006} {MD007}
<!-- markdownlint-configure-file {
"MD006": true
} -->

View file

@ -1,10 +0,0 @@
{
"default": true,
"MD010": {
"ignore_code_languages": [
"js",
"text"
]
},
"MD046": false
}

View file

@ -48,3 +48,13 @@ if (true) {
} // {MD010}
}
```
<!-- markdownlint-configure-file {
"MD010": {
"ignore_code_languages": [
"js",
"text"
]
},
"MD046": false
} -->

View file

@ -1,6 +0,0 @@
{
"default": true,
"MD010": {
"code_blocks": false
}
}

View file

@ -33,3 +33,9 @@ if (true) {
}
Line with hard tab. {MD010}
<!-- markdownlint-configure-file {
"MD010": {
"code_blocks": false
}
} -->

View file

@ -1,6 +0,0 @@
{
"default": true,
"MD013": {
"code_blocks": false
}
}

View file

@ -37,3 +37,9 @@ Text text text text text text text text text text text text text text text text
```
Text text text text text text text text text text text text text text text text text text. {MD013}
<!-- markdownlint-configure-file {
"MD013": {
"code_blocks": false
}
} -->

View file

@ -1,6 +0,0 @@
{
"default": true,
"MD009": {
"br_spaces": 2
}
}

View file

@ -12,3 +12,9 @@
```spaces
```
<!-- markdownlint-configure-file {
"MD009": {
"br_spaces": 2
}
} -->

View file

@ -1,6 +0,0 @@
{
"default": true,
"MD046": {
"style": "fenced"
}
}

View file

@ -17,3 +17,9 @@ But we'll do another:
will.
Final text is here
<!-- markdownlint-configure-file {
"MD046": {
"style": "fenced"
}
} -->

View file

@ -1,6 +0,0 @@
{
"default": true,
"MD046": {
"style": "indented"
}
}

View file

@ -21,3 +21,9 @@ One last one:
This is code
with an empty indented line.
<!-- markdownlint-configure-file {
"MD046": {
"style": "indented"
}
} -->

View file

@ -1,6 +0,0 @@
{
"default": true,
"MD048": {
"style": "backtick"
}
}

View file

@ -19,3 +19,9 @@ This is fine
This is not {MD048:17}
```
~~~
<!-- markdownlint-configure-file {
"MD048": {
"style": "backtick"
}
} -->

View file

@ -1,6 +0,0 @@
{
"default": true,
"MD048": {
"style": "tilde"
}
}

View file

@ -19,3 +19,9 @@ This is not fine {MD048:11}
This is
```
~~~
<!-- markdownlint-configure-file {
"MD048": {
"style": "tilde"
}
} -->

View file

@ -1,4 +0,0 @@
{
"MD009": false,
"MD041": false
}

View file

@ -1,3 +1,8 @@
text {MD010}
text and text 2 {MD010}
texts with trailing spaces {MD010}
<!-- markdownlint-configure-file {
"MD009": false,
"MD041": false
} -->

View file

@ -1,6 +0,0 @@
{
"default": true,
"MD049": {
"style": "asterisk"
}
}

View file

@ -3,3 +3,9 @@
This is *fine*
This is _not_ {MD049}
<!-- markdownlint-configure-file {
"MD049": {
"style": "asterisk"
}
} -->

View file

@ -1,6 +0,0 @@
{
"default": true,
"MD049": {
"style": "underscore"
}
}

View file

@ -3,3 +3,9 @@
This is _fine_
This is *not* {MD049}
<!-- markdownlint-configure-file {
"MD049": {
"style": "underscore"
}
} -->

View file

@ -1,6 +0,0 @@
{
"default": true,
"MD013": {
"code_blocks": false
}
}

View file

@ -33,3 +33,9 @@
```javascript
debugger; debugger; debugger; debugger; debugger; debugger; debugger; debugger; debugger; debugger;
```
<!-- markdownlint-configure-file {
"MD013": {
"code_blocks": false
}
} -->

View file

@ -1,5 +0,0 @@
{
"default": true,
"MD040": false,
"MD041": false
}

View file

@ -37,6 +37,11 @@ code
text
<!-- markdownlint-configure-file {
"MD040": false,
"MD041": false
} -->
```
code at end of file without newline {MD047:42}
code at end of file without newline {MD047:47}
```

View file

@ -1,4 +0,0 @@
{
"default": true,
"MD041": false
}

View file

@ -1 +1,5 @@
## Heading
<!-- markdownlint-configure-file {
"MD041": false
} -->

View file

@ -1,4 +0,0 @@
{
"default": true,
"MD041": false
}

View file

@ -1,2 +1,6 @@
Heading
-------
<!-- markdownlint-configure-file {
"MD041": false
} -->

View file

@ -1,7 +0,0 @@
{
"default": true,
"MD013": false,
"MD025": {
"front_matter_title": "^\\s*alternate="
}
}

View file

@ -4,3 +4,10 @@ alternate="Welcome to Jekyll!"
# Top level heading {MD025}
Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post).
<!-- markdownlint-configure-file {
"MD013": false,
"MD025": {
"front_matter_title": "^\\s*alternate="
}
} -->

View file

@ -1,6 +0,0 @@
{
"default": true,
"MD041": {
"front_matter_title": "^\\s*\"alternate\"\\s*:"
}
}

View file

@ -4,3 +4,9 @@
}
Some plain text here.
<!-- markdownlint-configure-file {
"MD041": {
"front_matter_title": "^\\s*\"alternate\"\\s*:"
}
} -->

View file

@ -1,7 +0,0 @@
{
"default": true,
"MD013": false,
"MD041": {
"front_matter_title": "^\\s*alternate="
}
}

View file

@ -2,3 +2,10 @@
alternate="Welcome to Jekyll!"
---
Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post).
<!-- markdownlint-configure-file {
"MD013": false,
"MD041": {
"front_matter_title": "^\\s*alternate="
}
} -->

View file

@ -1,6 +0,0 @@
{
"default": true,
"MD041": {
"front_matter_title": "^\\s*alternate\\s*="
}
}

View file

@ -4,3 +4,9 @@ alternate = "My document title and heading"
+++
Some plain text here.
<!-- markdownlint-configure-file {
"MD041": {
"front_matter_title": "^\\s*alternate\\s*="
}
} -->

View file

@ -1,6 +0,0 @@
{
"default": true,
"MD009": {
"br_spaces": 0
}
}

View file

@ -4,3 +4,9 @@ front: matter
Text {MD041}
Text {MD009}
<!-- markdownlint-configure-file {
"MD009": {
"br_spaces": 0
}
} -->

View file

@ -1,4 +0,0 @@
{
"default": true,
"MD041": false
}

View file

@ -7,3 +7,7 @@ title: embedded
---
Text text text
<!-- markdownlint-configure-file {
"MD041": false
} -->

View file

@ -1,7 +0,0 @@
{
"default": true,
"MD013": false,
"MD041": {
"front_matter_title": ""
}
}

View file

@ -5,3 +5,10 @@ date: 2015-11-17 16:16:01 -0600
categories: jekyll update
---
Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post). {MD041}
<!-- markdownlint-configure-file {
"MD013": false,
"MD041": {
"front_matter_title": ""
}
} -->

View file

@ -1,4 +0,0 @@
{
"default": true,
"MD013": false
}

View file

@ -7,3 +7,7 @@ categories: jekyll update
# Top level heading
Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post).
<!-- markdownlint-configure-file {
"MD013": false
} -->

View file

@ -1,4 +0,0 @@
{
"default": true,
"MD013": false
}

View file

@ -5,3 +5,7 @@ date: 2015-11-17 16:16:01 -0600
categories: jekyll update
---
Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post). {MD041}
<!-- markdownlint-configure-file {
"MD013": false
} -->

View file

@ -1,4 +0,0 @@
{
"default": true,
"MD013": false
}

View file

@ -7,3 +7,7 @@ categories: jekyll update
# Top level heading {MD025}
Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post).
<!-- markdownlint-configure-file {
"MD013": false
} -->

View file

@ -1,7 +0,0 @@
{
"default": true,
"MD002": {
"level": 2
},
"MD013": false
}

View file

@ -7,3 +7,10 @@ categories: jekyll update
## Secondary heading
Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post).
<!-- markdownlint-configure-file {
"MD002": {
"level": 2
},
"MD013": false
} -->

View file

@ -1,4 +0,0 @@
{
"default": true,
"MD013": false
}

View file

@ -5,3 +5,7 @@ date: 2015-11-17 16:16:01 -0600
categories: jekyll update
---
Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post).
<!-- markdownlint-configure-file {
"MD013": false
} -->

View file

@ -1,4 +0,0 @@
{
"default": true,
"MD013": false
}

View file

@ -6,3 +6,7 @@ categories: jekyll update
---
Front matter from [Jekyll documentation](https://jekyllrb.com/docs/posts/#a-typical-post).
<!-- markdownlint-configure-file {
"MD013": false
} -->

View file

@ -1,6 +0,0 @@
{
"default": true,
"MD009": {
"strict": true
}
}

View file

@ -86,3 +86,9 @@ text text
{MD009:65}
{MD009:67}
{MD009:71}
<!-- markdownlint-configure-file {
"MD009": {
"strict": true
}
} -->

View file

@ -1,7 +0,0 @@
{
"default": true,
"MD003": false,
"MD024": {
"siblings_only": true
}
}

View file

@ -94,3 +94,10 @@ BB
## BBB ##
{MD024:94}
<!-- markdownlint-configure-file {
"MD003": false,
"MD024": {
"siblings_only": true
}
} -->

View file

@ -1,6 +0,0 @@
{
"default": true,
"MD024": {
"allow_different_nesting": true
}
}

View file

@ -9,3 +9,9 @@
## 1.0.0
### Bug fixes
<!-- markdownlint-configure-file {
"MD024": {
"allow_different_nesting": true
}
} -->

View file

@ -1,4 +0,0 @@
{
"default": true,
"MD041": false
}

View file

@ -3,3 +3,7 @@ Some introductory text
# Heading 1
# Heading 2
<!-- markdownlint-configure-file {
"MD041": false
} -->

View file

@ -1,6 +0,0 @@
{
"default": true,
"MD026": {
"punctuation": ".,;:?]"
}
}

View file

@ -14,3 +14,9 @@
The rule has been customized to allow exclamation point while disallowing
everything else.
<!-- markdownlint-configure-file {
"MD026": {
"punctuation": ".,;:?]"
}
} -->

View file

@ -1,6 +0,0 @@
{
"default": true,
"MD026": {
"punctuation": ""
}
}

View file

@ -11,3 +11,9 @@
## Heading !
## Heading ?
<!-- markdownlint-configure-file {
"MD026": {
"punctuation": ""
}
} -->

View file

@ -1,6 +0,0 @@
{
"default": true,
"MD003": {
"style": "setext_with_atx"
}
}

View file

@ -9,3 +9,9 @@ Heading 2
### Heading 3
#### Heading 4 {MD003} ####
<!-- markdownlint-configure-file {
"MD003": {
"style": "setext_with_atx"
}
} -->

View file

@ -1,6 +0,0 @@
{
"default": true,
"MD003": {
"style": "setext_with_atx_closed"
}
}

View file

@ -9,3 +9,9 @@ Heading 2
### Heading 3 ###
#### Heading 4 {MD003}
<!-- markdownlint-configure-file {
"MD003": {
"style": "setext_with_atx_closed"
}
} -->

Some files were not shown because too many files have changed in this diff Show more