Remove legacy exclusion from scenario tests for files with no errors (previously "detailed-" files).

This commit is contained in:
David Anson 2022-10-15 16:06:20 -07:00
parent f0bb4c639b
commit 56f379b0fc
26 changed files with 474 additions and 428 deletions

View file

@ -1,3 +1,3 @@
text text {MD010}
text and text 2 text and text 2 {MD010}
texts with trailing spaces texts with trailing spaces {MD010}

View file

@ -1,30 +1,30 @@
## One ## One {MD002}
#### Two #### Two {MD001}
### Three ### ### Three {MD003} ###
* Alpha * Alpha
* Bravo * Bravo {MD005} {MD007}
- Charlie - Charlie {MD004}
* Delta * Delta {MD006} {MD007}
* Echo * Echo {MD006} {MD007}
Text Text {MD009}
Text text Text text {MD010}
1. One 1. One
2. Two 2. Two
3. Three 3. Three
4. Four 4. Four
5. Five 5. Five {MD005}
6. Six 6. Six
7. Seven 7. Seven
8. Eight 8. Eight
9. Nine 9. Nine
10. Ten 10. Ten
11. Eleven 11. Eleven {MD005}
12. Twelve 12. Twelve

View file

@ -2,25 +2,27 @@
<!-- markdownlint-disable MD003 --> <!-- markdownlint-disable MD003 -->
A (reversed)[link] example. A (reversed)[link] example. {MD011}
123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
## 123456789 123456789 123456789 123456789 123456789 123456789 ## 123456789 123456789 123456789 123456789 123456789 123456789
$ command with no output $ command with no output {MD014}
##No space A ##No space A {MD018}
## Multiple spaces B ## Multiple spaces B {MD019}
##No space C ## ##No space C {MD020} ##
## No space D## ## No space D {MD020}##
## Multiple spaces E ## ## Multiple spaces E {MD021} ##
## Multiple spaces F ## ## Multiple spaces F {MD021} ##
*Another* (reversed)[link] example. *Another* (reversed)[link] example. {MD011}
{MD012:7} {MD013:8} {MD013:10}

View file

@ -3,17 +3,19 @@ Text
# Heading # Heading
## Another heading. ## Another heading {MD026}.
> Multiple spaces > Multiple spaces {MD027}
> Blank line above > Blank line above
1. Alpha 1. Alpha
3. Beta 3. Beta {MD029} {MD030}
> > Multiple spaces, multiple blockquotes > > Multiple spaces, multiple blockquotes {MD027}
> > > >
> > > Multiple spaces, multiple blockquotes > > > Multiple spaces, multiple blockquotes {MD027}
> > > > > >
> > > Multiple spaces, multiple blockquotes > > > Multiple spaces, multiple blockquotes {MD027}
{MD022:1} {MD023:1} {MD024:4} {MD025:4} {MD028:9}

View file

@ -1,63 +1,65 @@
```js ```js
debugger; debugger;
``` ```
* List * List {MD032}
Inline<hr/>HTML Inline<hr/>HTML {MD033}
Bare https://example.com link Bare https://example.com link {MD034}
--- ---
*** ***
*Emphasis* *Emphasis {MD036}*
Space * inside * emphasis Space * inside * emphasis {MD037}
Space ` inside` code span Space ` inside` code span {MD038}
Space [ inside ](link) text Space [ inside ](link) text {MD039}
``` ```
``` ```
space `` inside`` code space `` inside`` code {MD038}
space `inside` of ` code` elements space `inside` of ` code` elements {MD038}
`space` inside `of` code ` elements` `space` inside `of` code ` elements` {MD038}
space ``inside`` of `` code`` elements space ``inside`` of `` code`` elements {MD038}
`` ` embedded backtick`` `` ` embedded backtick`` {MD038}
``embedded backtick` `` ``embedded backtick` `` {MD038}
some *space* in * some* emphasis some *space* in * some* emphasis {MD037}
some *space* in *some * emphasis some *space* in *some * emphasis {MD037}
some *space* in **some ** emphasis some *space* in **some ** emphasis {MD037}
some _space_ in _ some_ emphasis some _space_ in _ some_ emphasis {MD037}
some __space__ in __ some __ emphasis some __space__ in __ some __ emphasis {MD037}
Text Text
text ` code text ` code {MD038}
span` text span` text
text. text.
Text Text
text `code text `code
span ` text span ` text {MD038}
text. text.
* List * List {MD032}
--- ---
Text Text
text ```code text ```code
span code span code
span code ``` text span code ``` text {MD038}
text text
text text ```` code text text ```` code {MD038}
span code span code
span```` text span```` text
text. text.
Text [ space](link) text [space ](link) text [ space ](link) text. Text [ space](link) text [space ](link) text [ space ](link) text. {MD039}
Space * inside Space * inside {MD037}
multi-line * emphasis. multi-line * emphasis. {MD037}
{MD031:3} {MD035:11} {MD040:21}

View file

@ -1,49 +1,49 @@
Not a heading Not a heading {MD041}
An [empty]() link An [empty]() link {MD042}
An [empty](#) link with fragment An [empty](#) link with fragment {MD042}
An [empty](<>) link with angle brackets An [empty](<>) link with angle brackets {MD042}
This is a test file for the MARKDOWNLINT package. This is a test file for the MARKDOWNLINT package. {MD044}
This is a paragraph This is a paragraph
about Markdownlint about Markdownlint {MD044}
that capitalizes the that capitalizes the
name wrong twice: name wrong twice:
MarkDownLint. MarkDownLint. {MD044}
A [normal](link) and an [empty one]() and a [fragment](#one). A [normal](link) and an [empty one]() and a [fragment](#one). {MD042}
An image without alternate text ![](image.jpg) An image without alternate text ![](image.jpg) {MD045}
```text ```text
Fenced code Fenced code
``` ```
Indented code Indented code {MD046}
~~~text ~~~text
Fenced code Fenced code {MD048:27}
~~~ ~~~
Mixed *emphasis* on _this_ line *with* multiple _issues_ Mixed *emphasis* on _this_ line *with* multiple _issues_ {MD049}
Mixed __strong emphasis__ on **this** line __with__ multiple **issues** Mixed __strong emphasis__ on **this** line __with__ multiple **issues** {MD050}
Inconsistent Inconsistent
emphasis _text emphasis _text {MD049}
spanning_ many spanning_ many
lines lines
Inconsistent Inconsistent
strong **emphasis strong **emphasis {MD050}
spanning** many spanning** many
lines lines
Inconsistent _double_ text _interleaved_ text _double_ _interleaved_ emphasis. Inconsistent _double_ text _interleaved_ text _double_ _interleaved_ emphasis. {MD049}
Inconsistent **double** text **interleaved** text **double** **interleaved** strong emphasis. Inconsistent **double** text **interleaved** text **double** **interleaved** strong emphasis. {MD050}
Missing newline character Missing newline character {MD043} {MD047}

View file

@ -1,3 +1,10 @@
# detailed-results-MD051-MD060 # detailed-results-MD051-MD060
A [link with a missing](#fragment) A [link with a missing](#fragment) {MD051}
A [link with a][defined-label]
A [link with a][undefined-label] {MD052}
[defined-label]: https://example.com
[unused-label]: {MD053}

View file

@ -1,13 +1,13 @@
# Detailed Results Bare URLs # Detailed Results Bare URLs
For more, see https://example.com. For more, see https://example.com. {MD034}
For more, see https://example.com/. For more, see https://example.com/. {MD034}
For more, see https://example.com/?query=string#hash. For more, see https://example.com/?query=string#hash. {MD034}
For more, see https://example.com/info.htm. For more, see https://example.com/info.htm. {MD034}
Visit https://example.com, then refresh. Visit https://example.com, then refresh. {MD034}
The site (https://example.com) is down. The site (https://example.com) is down. {MD034}

View file

@ -69,3 +69,8 @@ Text
> > - ```text > > - ```text
> > Text > > Text
> > ``` > > ```
{MD031:5} {MD031:6} {MD031:8} {MD031:9} {MD031:17} {MD031:18} {MD031:20}
{MD031:21} {MD031:29} {MD031:30} {MD031:32} {MD031:33} {MD031:41} {MD031:42}
{MD031:44} {MD031:45} {MD031:53} {MD031:54} {MD031:56} {MD031:57} {MD031:65}
{MD031:66} {MD031:68} {MD031:69}

View file

@ -5,7 +5,7 @@
Text Text
## Banana ## Banana {MD022}
Text Text
## Cherry ## Cherry
@ -18,7 +18,7 @@ Text
Text Text
--- ---
Elderberry Elderberry {MD022}
---------- ------------------
Text Text
## Fig ## Fig

View file

@ -16,11 +16,11 @@ Text
Text Text
## Durian ## ## Durian {MD022} ##
Text Text
Elderberry Elderberry {MD022}
---------- ------------------
Text Text

View file

@ -4,19 +4,19 @@
Text Text
## Banana ## Banana {MD022}
Text Text
## Cherry ## Cherry
Text Text
## Durian ## ## Durian {MD022} ##
Text Text
--- ---
Elderberry Elderberry {MD022}
---------- ------------------
Text Text
## Fig ## Fig

View file

@ -16,3 +16,5 @@ Text
> > Text > > Text
> > ``` > > ```
> > Text > > Text
{MD031:4} {MD031:6} {MD031:10} {MD031:12} {MD031:15} {MD031:17}

View file

@ -1,3 +1,3 @@
text text {MD010}
text and text 2 text and text 2 {MD010}
texts with trailing spaces texts with trailing spaces {MD010}

View file

@ -2,10 +2,10 @@
front: matter front: matter
ignore: this ignore: this
--- ---
# Fixing with Front Matter # Fixing with Front Matter {MD022}
Text text text Text text text {MD009}
Text [ link ](url) text Text [ link ](url) text {MD039}
## Nested Heading ## Nested Heading {MD022}
Text Text {MD047}

View file

@ -1,6 +1,6 @@
--- ---
front: matter front: matter
--- ---
Text Text {MD041}
Text Text {MD009}

View file

@ -51,5 +51,3 @@
``` ```
- item - item
Placeholder issue {MD047}

View file

@ -2,9 +2,9 @@
Text Text
<em>Block block</em> <em>Block block {MD033}</em>
Text <em>inline inline</em> text Text <em>inline inline {MD033}</em> text
Text Text
@ -15,50 +15,50 @@ Text <strong>inline inline</strong> text
Text Text
<p> <p>
Block Block {MD033:17}
block <em>block</em> block block <em>block {MD033}</em> block
block block
block <strong>block</strong> block block <strong>block</strong> block
block block
block <em>block</em> block <strong>block</strong> block block <em>block</em> block <strong>block</strong> block {MD033}
block <strong>block</strong> block <em>block</em> block block <strong>block</strong> block <em>block</em> block {MD033}
</p> </p>
Text Text
<strong><em>Block</em> block</strong> <strong><em>Block</em> block {MD033}</strong>
Text <strong><em>inline</em> inline</strong> text Text <strong><em>inline</em> inline {MD033}</strong> text
Text Text
<em><strong>Block</strong> block</em> <em><strong>Block</strong> block {MD033}</em>
Text <em><strong>inline</strong> inline</em> text Text <em><strong>inline</strong> inline {MD033}</em> text
Text Text
Text <em>inline</em> text <strong>inline</strong> text <em>inline</em> text Text <em>inline</em> text <strong>inline</strong> text <em>inline</em> text {MD033}
Text <strong>inline</strong> text <em>inline</em> text <strong>inline</strong> text Text <strong>inline</strong> text <em>inline</em> text <strong>inline</strong> {MD033}
Text Text
\<not>Block block\</not> \<not>Block block\</not>
\\<problem>Block block\\</problem> \\<problem>Block block {MD033}\\</problem>
<not\>Block block</not\> <not\>Block block</not\>
Text \<not>inline inline\</not> text Text \<not>inline inline\</not> text
Text \\<problem>inline inline\\</problem> text Text \\<problem>inline inline {MD033}\\</problem> text
Text <not\>inline inline</not\> text Text <not\>inline inline</not\> text
Text Text
> Text <em>inline inline</em> text > Text <em>inline inline {MD033}</em> text
> text <strong>inline inline</strong> text > text <strong>inline inline</strong> text
Text Text
@ -81,14 +81,14 @@ Text ``<em>`` text
Text `<em>` text ``<em>`` text ```<em>``` text Text `<em>` text ``<em>`` text ```<em>``` text
Text `<em>` text <em>inline</em> text Text `<em>` text <em>inline {MD033}</em> text
Text ``text <em> text`` text Text ``text <em> text`` text
Text Text
Text <a href="#anchor">inline</a> text Text <a href="#anchor">inline {MD033}</a> text
text <img src="src.png"/> text text <img src="src.png"/> text {MD033}
Text Text
@ -98,7 +98,7 @@ Another email autolink: <first+last@ex.exa-mple.com>.
Text Text
<foo-bar-baz> is an HTML element. <foo-bar-baz> is an HTML element. {MD033}
But <foo.bar.baz> is not an autolink or HTML element. But <foo.bar.baz> is not an autolink or HTML element.
And neither is <foo_bar>. And neither is <foo_bar>.

View file

@ -1,19 +1,19 @@
# Detailed Link Results # Detailed Link Results
Text https://example.com/ text Text https://example.com/ text {MD034}
Text <https://example.com/brackets> text https://example.com/bare text Text <https://example.com/brackets> text https://example.com/bare text {MD034}
Text https://example.com/bare text <https://example.com/brackets> text Text https://example.com/bare text <https://example.com/brackets> text {MD034}
Text `code https://example.com/code code` text https://example.com/ text Text `code https://example.com/code code` text https://example.com/ text {MD034}
> Text <https://example.com/brackets> text https://example.com/bare text > Text <https://example.com/brackets> text https://example.com/bare text {MD034}
Text https://example.com/dir Text https://example.com/dir {MD034}
text https://example.com/file.txt text https://example.com/file.txt {MD034}
text <https://example.com/dir/dir> text <https://example.com/dir/dir>
text https://example.com/dir/dir/file?query=param text https://example.com/dir/dir/file?query=param {MD034}
```text ```text
Code https://example.com/code?type=fence code Code https://example.com/code?type=fence code
@ -21,24 +21,24 @@ Code https://example.com/code?type=fence code
Code https://example.com/code?type=indent code Code https://example.com/code?type=indent code
Text <https://example.com/same> more text https://example.com/same still more text <https://example.com/same> done Text <https://example.com/same> more text https://example.com/same still more text <https://example.com/same> done {MD034}
Text <https://example.com/same> more \* text https://example.com/same more \[ text <https://example.com/same> done Text <https://example.com/same> more \* text https://example.com/same more \[ text <https://example.com/same> done {MD034}
Text https://example.com/first more text https://example.com/second still more text https://example.com/third done Text https://example.com/first more text https://example.com/second still more text https://example.com/third done {MD034}
(Incorrect link syntax)[https://www.example.com/] (Incorrect link syntax)[https://www.example.com/] {MD011}
Text [link ](https://example.com/) text. Text [link ](https://example.com/) text. {MD039}
Text [ link](https://example.com/) text. Text [ link](https://example.com/) text. {MD039}
Text [ link ](https://example.com/) text. Text [ link ](https://example.com/) text. {MD039}
Text [link ][reference] text. Text [link ][reference] text. {MD039}
Text [ link][reference] text. Text [ link][reference] text. {MD039}
Text [ link ][reference] text. Text [ link ][reference] text. {MD039}
[reference]: https://example.com/ [reference]: https://example.com/

View file

@ -56,7 +56,6 @@ function createTestForFile(file) {
indices.push(match[2] ? Number.parseInt(match[2], 10) : index + 1); indices.push(match[2] ? Number.parseInt(match[2], 10) : index + 1);
} }
} }
if (Object.keys(expected).length > 0) {
const actual = {}; const actual = {};
for (const error of errors) { for (const error of errors) {
const rule = error.ruleNames[0]; const rule = error.ruleNames[0];
@ -67,7 +66,6 @@ function createTestForFile(file) {
} }
} }
t.deepEqual(actual, expected, "Too few or too many issues found."); t.deepEqual(actual, expected, "Too few or too many issues found.");
}
// Create snapshot // Create snapshot
const fixed = helpers.applyFixes(content, errors) const fixed = helpers.applyFixes(content, errors)
.replace(/\r\n/g, "\n"); .replace(/\r\n/g, "\n");

View file

@ -1,3 +1,3 @@
text text {MD010}
text and text 2 text and text 2 {MD010}
texts with trailing spaces texts with trailing spaces{MD010}

View file

@ -1,3 +1,3 @@
# Ordered list examples # Ordered list examples
9. Item 9. Item {MD029}

View file

@ -8,12 +8,12 @@ text
text text
1. Item 1. Item {MD029}
1. Item 1. Item {MD029}
1. Item 1. Item {MD029}
text text
1. Item 1. Item {MD029}
2. Item 2. Item {MD029}
3. Item 3. Item {MD029}

View file

@ -1,33 +1,33 @@
# Detailed Results Proper Names # Detailed Results Proper Names
Text Markdownlint text. Text Markdownlint text. {MD044}
Text node.JS text. Text node.JS text. {MD044}
Text .net text. Text .net text. {MD044}
Text example.net text. Text example.net text. {MD044}
Text "Markdownlint" text. Text "Markdownlint" text. {MD044}
Text "node.JS" text. Text "node.JS" text. {MD044}
Text ".net" text. Text ".net" text. {MD044}
Text "example.net" text. Text "example.net" text. {MD044}
Text **Markdownlint** text. Text **Markdownlint** text. {MD044}
Text **node.JS** text. Text **node.JS** text. {MD044}
Text **.net** text. Text **.net** text. {MD044}
Text **example.net** text. Text **example.net** text. {MD044}
Markdownlint Markdownlint {MD044}
node.JS node.JS {MD044}
.net .net {MD044}
example.net example.net {MD044}

File diff suppressed because it is too large Load diff