mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-21 21:30:47 +02:00
Update all links to rules to use md000.md instead of Rules.md#md000 (shorter, quicker, less distraction).
This commit is contained in:
parent
37baddcf27
commit
13b4340747
10 changed files with 1771 additions and 1771 deletions
106
README.md
106
README.md
|
@ -61,55 +61,55 @@ playground for learning and exploring.
|
|||
|
||||
<!-- markdownlint-disable line-length -->
|
||||
|
||||
* **[MD001](doc/Rules.md#md001)** *heading-increment/header-increment* - Heading levels should only increment by one level at a time
|
||||
* ~~**[MD002](doc/Rules.md#md002)** *first-heading-h1/first-header-h1* - First heading should be a top-level heading~~
|
||||
* **[MD003](doc/Rules.md#md003)** *heading-style/header-style* - Heading style
|
||||
* **[MD004](doc/Rules.md#md004)** *ul-style* - Unordered list style
|
||||
* **[MD005](doc/Rules.md#md005)** *list-indent* - Inconsistent indentation for list items at the same level
|
||||
* ~~**[MD006](doc/Rules.md#md006)** *ul-start-left* - Consider starting bulleted lists at the beginning of the line~~
|
||||
* **[MD007](doc/Rules.md#md007)** *ul-indent* - Unordered list indentation
|
||||
* **[MD009](doc/Rules.md#md009)** *no-trailing-spaces* - Trailing spaces
|
||||
* **[MD010](doc/Rules.md#md010)** *no-hard-tabs* - Hard tabs
|
||||
* **[MD011](doc/Rules.md#md011)** *no-reversed-links* - Reversed link syntax
|
||||
* **[MD012](doc/Rules.md#md012)** *no-multiple-blanks* - Multiple consecutive blank lines
|
||||
* **[MD013](doc/Rules.md#md013)** *line-length* - Line length
|
||||
* **[MD014](doc/Rules.md#md014)** *commands-show-output* - Dollar signs used before commands without showing output
|
||||
* **[MD018](doc/Rules.md#md018)** *no-missing-space-atx* - No space after hash on atx style heading
|
||||
* **[MD019](doc/Rules.md#md019)** *no-multiple-space-atx* - Multiple spaces after hash on atx style heading
|
||||
* **[MD020](doc/Rules.md#md020)** *no-missing-space-closed-atx* - No space inside hashes on closed atx style heading
|
||||
* **[MD021](doc/Rules.md#md021)** *no-multiple-space-closed-atx* - Multiple spaces inside hashes on closed atx style heading
|
||||
* **[MD022](doc/Rules.md#md022)** *blanks-around-headings/blanks-around-headers* - Headings should be surrounded by blank lines
|
||||
* **[MD023](doc/Rules.md#md023)** *heading-start-left/header-start-left* - Headings must start at the beginning of the line
|
||||
* **[MD024](doc/Rules.md#md024)** *no-duplicate-heading/no-duplicate-header* - Multiple headings with the same content
|
||||
* **[MD025](doc/Rules.md#md025)** *single-title/single-h1* - Multiple top-level headings in the same document
|
||||
* **[MD026](doc/Rules.md#md026)** *no-trailing-punctuation* - Trailing punctuation in heading
|
||||
* **[MD027](doc/Rules.md#md027)** *no-multiple-space-blockquote* - Multiple spaces after blockquote symbol
|
||||
* **[MD028](doc/Rules.md#md028)** *no-blanks-blockquote* - Blank line inside blockquote
|
||||
* **[MD029](doc/Rules.md#md029)** *ol-prefix* - Ordered list item prefix
|
||||
* **[MD030](doc/Rules.md#md030)** *list-marker-space* - Spaces after list markers
|
||||
* **[MD031](doc/Rules.md#md031)** *blanks-around-fences* - Fenced code blocks should be surrounded by blank lines
|
||||
* **[MD032](doc/Rules.md#md032)** *blanks-around-lists* - Lists should be surrounded by blank lines
|
||||
* **[MD033](doc/Rules.md#md033)** *no-inline-html* - Inline HTML
|
||||
* **[MD034](doc/Rules.md#md034)** *no-bare-urls* - Bare URL used
|
||||
* **[MD035](doc/Rules.md#md035)** *hr-style* - Horizontal rule style
|
||||
* **[MD036](doc/Rules.md#md036)** *no-emphasis-as-heading/no-emphasis-as-header* - Emphasis used instead of a heading
|
||||
* **[MD037](doc/Rules.md#md037)** *no-space-in-emphasis* - Spaces inside emphasis markers
|
||||
* **[MD038](doc/Rules.md#md038)** *no-space-in-code* - Spaces inside code span elements
|
||||
* **[MD039](doc/Rules.md#md039)** *no-space-in-links* - Spaces inside link text
|
||||
* **[MD040](doc/Rules.md#md040)** *fenced-code-language* - Fenced code blocks should have a language specified
|
||||
* **[MD041](doc/Rules.md#md041)** *first-line-heading/first-line-h1* - First line in a file should be a top-level heading
|
||||
* **[MD042](doc/Rules.md#md042)** *no-empty-links* - No empty links
|
||||
* **[MD043](doc/Rules.md#md043)** *required-headings/required-headers* - Required heading structure
|
||||
* **[MD044](doc/Rules.md#md044)** *proper-names* - Proper names should have the correct capitalization
|
||||
* **[MD045](doc/Rules.md#md045)** *no-alt-text* - Images should have alternate text (alt text)
|
||||
* **[MD046](doc/Rules.md#md046)** *code-block-style* - Code block style
|
||||
* **[MD047](doc/Rules.md#md047)** *single-trailing-newline* - Files should end with a single newline character
|
||||
* **[MD048](doc/Rules.md#md048)** *code-fence-style* - Code fence style
|
||||
* **[MD049](doc/Rules.md#md049)** *emphasis-style* - Emphasis style should be consistent
|
||||
* **[MD050](doc/Rules.md#md050)** *strong-style* - Strong style should be consistent
|
||||
* **[MD051](doc/Rules.md#md051)** *link-fragments* - Link fragments should be valid
|
||||
* **[MD052](doc/Rules.md#md052)** *reference-links-images* - Reference links and images should use a label that is defined
|
||||
* **[MD053](doc/Rules.md#md053)** *link-image-reference-definitions* - Link and image reference definitions should be needed
|
||||
* **[MD001](doc/md001.md)** *heading-increment/header-increment* - Heading levels should only increment by one level at a time
|
||||
* ~~**[MD002](doc/md002.md)** *first-heading-h1/first-header-h1* - First heading should be a top-level heading~~
|
||||
* **[MD003](doc/md003.md)** *heading-style/header-style* - Heading style
|
||||
* **[MD004](doc/md004.md)** *ul-style* - Unordered list style
|
||||
* **[MD005](doc/md005.md)** *list-indent* - Inconsistent indentation for list items at the same level
|
||||
* ~~**[MD006](doc/md006.md)** *ul-start-left* - Consider starting bulleted lists at the beginning of the line~~
|
||||
* **[MD007](doc/md007.md)** *ul-indent* - Unordered list indentation
|
||||
* **[MD009](doc/md009.md)** *no-trailing-spaces* - Trailing spaces
|
||||
* **[MD010](doc/md010.md)** *no-hard-tabs* - Hard tabs
|
||||
* **[MD011](doc/md011.md)** *no-reversed-links* - Reversed link syntax
|
||||
* **[MD012](doc/md012.md)** *no-multiple-blanks* - Multiple consecutive blank lines
|
||||
* **[MD013](doc/md013.md)** *line-length* - Line length
|
||||
* **[MD014](doc/md014.md)** *commands-show-output* - Dollar signs used before commands without showing output
|
||||
* **[MD018](doc/md018.md)** *no-missing-space-atx* - No space after hash on atx style heading
|
||||
* **[MD019](doc/md019.md)** *no-multiple-space-atx* - Multiple spaces after hash on atx style heading
|
||||
* **[MD020](doc/md020.md)** *no-missing-space-closed-atx* - No space inside hashes on closed atx style heading
|
||||
* **[MD021](doc/md021.md)** *no-multiple-space-closed-atx* - Multiple spaces inside hashes on closed atx style heading
|
||||
* **[MD022](doc/md022.md)** *blanks-around-headings/blanks-around-headers* - Headings should be surrounded by blank lines
|
||||
* **[MD023](doc/md023.md)** *heading-start-left/header-start-left* - Headings must start at the beginning of the line
|
||||
* **[MD024](doc/md024.md)** *no-duplicate-heading/no-duplicate-header* - Multiple headings with the same content
|
||||
* **[MD025](doc/md025.md)** *single-title/single-h1* - Multiple top-level headings in the same document
|
||||
* **[MD026](doc/md026.md)** *no-trailing-punctuation* - Trailing punctuation in heading
|
||||
* **[MD027](doc/md027.md)** *no-multiple-space-blockquote* - Multiple spaces after blockquote symbol
|
||||
* **[MD028](doc/md028.md)** *no-blanks-blockquote* - Blank line inside blockquote
|
||||
* **[MD029](doc/md029.md)** *ol-prefix* - Ordered list item prefix
|
||||
* **[MD030](doc/md030.md)** *list-marker-space* - Spaces after list markers
|
||||
* **[MD031](doc/md031.md)** *blanks-around-fences* - Fenced code blocks should be surrounded by blank lines
|
||||
* **[MD032](doc/md032.md)** *blanks-around-lists* - Lists should be surrounded by blank lines
|
||||
* **[MD033](doc/md033.md)** *no-inline-html* - Inline HTML
|
||||
* **[MD034](doc/md034.md)** *no-bare-urls* - Bare URL used
|
||||
* **[MD035](doc/md035.md)** *hr-style* - Horizontal rule style
|
||||
* **[MD036](doc/md036.md)** *no-emphasis-as-heading/no-emphasis-as-header* - Emphasis used instead of a heading
|
||||
* **[MD037](doc/md037.md)** *no-space-in-emphasis* - Spaces inside emphasis markers
|
||||
* **[MD038](doc/md038.md)** *no-space-in-code* - Spaces inside code span elements
|
||||
* **[MD039](doc/md039.md)** *no-space-in-links* - Spaces inside link text
|
||||
* **[MD040](doc/md040.md)** *fenced-code-language* - Fenced code blocks should have a language specified
|
||||
* **[MD041](doc/md041.md)** *first-line-heading/first-line-h1* - First line in a file should be a top-level heading
|
||||
* **[MD042](doc/md042.md)** *no-empty-links* - No empty links
|
||||
* **[MD043](doc/md043.md)** *required-headings/required-headers* - Required heading structure
|
||||
* **[MD044](doc/md044.md)** *proper-names* - Proper names should have the correct capitalization
|
||||
* **[MD045](doc/md045.md)** *no-alt-text* - Images should have alternate text (alt text)
|
||||
* **[MD046](doc/md046.md)** *code-block-style* - Code block style
|
||||
* **[MD047](doc/md047.md)** *single-trailing-newline* - Files should end with a single newline character
|
||||
* **[MD048](doc/md048.md)** *code-fence-style* - Code fence style
|
||||
* **[MD049](doc/md049.md)** *emphasis-style* - Emphasis style should be consistent
|
||||
* **[MD050](doc/md050.md)** *strong-style* - Strong style should be consistent
|
||||
* **[MD051](doc/md051.md)** *link-fragments* - Link fragments should be valid
|
||||
* **[MD052](doc/md052.md)** *reference-links-images* - Reference links and images should use a label that is defined
|
||||
* **[MD053](doc/md053.md)** *link-image-reference-definitions* - Link and image reference definitions should be needed
|
||||
|
||||
<!-- markdownlint-restore -->
|
||||
|
||||
|
@ -772,28 +772,28 @@ Output:
|
|||
{ "lineNumber": 3,
|
||||
"ruleNames": [ "MD010", "no-hard-tabs" ],
|
||||
"ruleDescription": "Hard tabs",
|
||||
"ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md010",
|
||||
"ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md010.md",
|
||||
"errorDetail": "Column: 17",
|
||||
"errorContext": null,
|
||||
"errorRange": [ 17, 1 ] },
|
||||
{ "lineNumber": 1,
|
||||
"ruleNames": [ "MD018", "no-missing-space-atx" ],
|
||||
"ruleDescription": "No space after hash on atx style heading",
|
||||
"ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md018",
|
||||
"ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md018.md",
|
||||
"errorDetail": null,
|
||||
"errorContext": "#bad.md",
|
||||
"errorRange": [ 1, 2 ] },
|
||||
{ "lineNumber": 3,
|
||||
"ruleNames": [ "MD018", "no-missing-space-atx" ],
|
||||
"ruleDescription": "No space after hash on atx style heading",
|
||||
"ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md018",
|
||||
"ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md018.md",
|
||||
"errorDetail": null,
|
||||
"errorContext": "#This file fails\tsome rules.",
|
||||
"errorRange": [ 1, 2 ] },
|
||||
{ "lineNumber": 1,
|
||||
"ruleNames": [ "MD041", "first-line-heading", "first-line-h1" ],
|
||||
"ruleDescription": "First line in a file should be a top-level heading",
|
||||
"ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md041",
|
||||
"ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md041.md",
|
||||
"errorDetail": null,
|
||||
"errorContext": "#bad.md",
|
||||
"errorRange": null }
|
||||
|
|
|
@ -189,8 +189,8 @@
|
|||
"Content gets parsed and displayed in the upper-right box; rule violations (if any) show up in the lower-right box.",
|
||||
"Click a violation for information about it or click its line number to highlighted it in the lower-left box.",
|
||||
"",
|
||||
"> *Note*: [All rules](https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md) are enabled except [MD013/line-length](https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#md013).",
|
||||
"> ([MD002/first-heading-h1](https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#md002) and [MD006/ul-start-left](https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#md006) are deprecated.)",
|
||||
"> *Note*: [All rules](https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md) are enabled except [MD013/line-length](https://github.com/DavidAnson/markdownlint/blob/main/doc/md013.md).",
|
||||
"> ([MD002/first-heading-h1](https://github.com/DavidAnson/markdownlint/blob/main/doc/md002.md) and [MD006/ul-start-left](https://github.com/DavidAnson/markdownlint/blob/main/doc/md006.md) are deprecated.)",
|
||||
"",
|
||||
"",
|
||||
"#### Resources",
|
||||
|
|
|
@ -4850,7 +4850,7 @@ for (const rule of rules) {
|
|||
const name = rule.names[0].toLowerCase();
|
||||
// eslint-disable-next-line dot-notation
|
||||
rule["information"] =
|
||||
new URL(`${homepage}/blob/v${version}/doc/Rules.md#${name}`);
|
||||
new URL(`${homepage}/blob/v${version}/doc/${name}.md`);
|
||||
}
|
||||
module.exports = rules;
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ function assertLintResults(results: markdownlint.LintResults) {
|
|||
assert.equal(results["string"][0].lineNumber, 1);
|
||||
assert.deepEqual(results["string"][0].ruleNames, [ "MD047", "single-trailing-newline" ]);
|
||||
assert.equal(results["string"][0].ruleDescription, "Files should end with a single newline character");
|
||||
assert.equal(results["string"][0].ruleInformation.replace(/v\d+\.\d+\.\d+/, "v0.0.0"), "https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md047");
|
||||
assert.equal(results["string"][0].ruleInformation.replace(/v\d+\.\d+\.\d+/, "v0.0.0"), "https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md047.md");
|
||||
assert.equal(results["string"][0].errorDetail, null);
|
||||
assert.equal(results["string"][0].errorContext, null);
|
||||
assert.deepEqual(results["string"][0].errorRange, [ 9, 1 ]);
|
||||
|
|
|
@ -58,6 +58,6 @@ for (const rule of rules) {
|
|||
const name = rule.names[0].toLowerCase();
|
||||
// eslint-disable-next-line dot-notation
|
||||
rule["information"] =
|
||||
new URL(`${homepage}/blob/v${version}/doc/Rules.md#${name}`);
|
||||
new URL(`${homepage}/blob/v${version}/doc/${name}.md`);
|
||||
}
|
||||
module.exports = rules;
|
||||
|
|
|
@ -1347,7 +1347,7 @@ test("customRulesAsyncReadFiles", (t) => {
|
|||
"lineNumber": 1,
|
||||
"ruleNames": [ "MD047", "single-trailing-newline" ],
|
||||
"ruleDescription": "Files should end with a single newline character",
|
||||
"ruleInformation": `${homepage}/blob/v${version}/doc/Rules.md#md047`,
|
||||
"ruleInformation": `${homepage}/blob/v${version}/doc/md047.md`,
|
||||
"errorDetail": null,
|
||||
"errorContext": null,
|
||||
"errorRange": [ 9, 1 ],
|
||||
|
@ -1428,7 +1428,7 @@ test("customRulesAsyncIgnoresSyncReturn", (t) => {
|
|||
"lineNumber": 1,
|
||||
"ruleNames": [ "MD047", "single-trailing-newline" ],
|
||||
"ruleDescription": "Files should end with a single newline character",
|
||||
"ruleInformation": `${homepage}/blob/v${version}/doc/Rules.md#md047`,
|
||||
"ruleInformation": `${homepage}/blob/v${version}/doc/md047.md`,
|
||||
"errorDetail": null,
|
||||
"errorContext": null,
|
||||
"errorRange": [ 9, 1 ],
|
||||
|
|
|
@ -164,7 +164,7 @@ test("resultFormattingV1", (t) => new Promise((resolve) => {
|
|||
"ruleAlias": "no-multiple-space-closed-atx",
|
||||
"ruleDescription":
|
||||
"Multiple spaces inside hashes on closed atx style heading",
|
||||
"ruleInformation": `${homepage}/blob/v${version}/doc/Rules.md#md021`,
|
||||
"ruleInformation": `${homepage}/blob/v${version}/doc/md021.md`,
|
||||
"errorDetail": null,
|
||||
"errorContext": "# Multiple spa...tyle heading #",
|
||||
"errorRange": [ 1, 4 ] }
|
||||
|
@ -174,7 +174,7 @@ test("resultFormattingV1", (t) => new Promise((resolve) => {
|
|||
"ruleName": "MD002",
|
||||
"ruleAlias": "first-heading-h1",
|
||||
"ruleDescription": "First heading should be a top-level heading",
|
||||
"ruleInformation": `${homepage}/blob/v${version}/doc/Rules.md#md002`,
|
||||
"ruleInformation": `${homepage}/blob/v${version}/doc/md002.md`,
|
||||
"errorDetail": "Expected: h1; Actual: h2",
|
||||
"errorContext": null,
|
||||
"errorRange": null },
|
||||
|
@ -182,7 +182,7 @@ test("resultFormattingV1", (t) => new Promise((resolve) => {
|
|||
"ruleName": "MD018",
|
||||
"ruleAlias": "no-missing-space-atx",
|
||||
"ruleDescription": "No space after hash on atx style heading",
|
||||
"ruleInformation": `${homepage}/blob/v${version}/doc/Rules.md#md018`,
|
||||
"ruleInformation": `${homepage}/blob/v${version}/doc/md018.md`,
|
||||
"errorDetail": null,
|
||||
"errorContext": "#Heading 1 {MD018}",
|
||||
"errorRange": [ 1, 2 ] },
|
||||
|
@ -190,7 +190,7 @@ test("resultFormattingV1", (t) => new Promise((resolve) => {
|
|||
"ruleName": "MD019",
|
||||
"ruleAlias": "no-multiple-space-atx",
|
||||
"ruleDescription": "Multiple spaces after hash on atx style heading",
|
||||
"ruleInformation": `${homepage}/blob/v${version}/doc/Rules.md#md019`,
|
||||
"ruleInformation": `${homepage}/blob/v${version}/doc/md019.md`,
|
||||
"errorDetail": null,
|
||||
"errorContext": "## Heading 2 {MD019}",
|
||||
"errorRange": [ 1, 5 ] },
|
||||
|
@ -198,7 +198,7 @@ test("resultFormattingV1", (t) => new Promise((resolve) => {
|
|||
"ruleName": "MD019",
|
||||
"ruleAlias": "no-multiple-space-atx",
|
||||
"ruleDescription": "Multiple spaces after hash on atx style heading",
|
||||
"ruleInformation": `${homepage}/blob/v${version}/doc/Rules.md#md019`,
|
||||
"ruleInformation": `${homepage}/blob/v${version}/doc/md019.md`,
|
||||
"errorDetail": null,
|
||||
"errorContext": "## Heading 3 {MD019}",
|
||||
"errorRange": [ 1, 6 ] }
|
||||
|
@ -208,7 +208,7 @@ test("resultFormattingV1", (t) => new Promise((resolve) => {
|
|||
"ruleName": "MD002",
|
||||
"ruleAlias": "first-heading-h1",
|
||||
"ruleDescription": "First heading should be a top-level heading",
|
||||
"ruleInformation": `${homepage}/blob/v${version}/doc/Rules.md#md002`,
|
||||
"ruleInformation": `${homepage}/blob/v${version}/doc/md002.md`,
|
||||
"errorDetail": "Expected: h1; Actual: h2",
|
||||
"errorContext": null,
|
||||
"errorRange": null }
|
||||
|
@ -266,7 +266,7 @@ test("resultFormattingV2", (t) => new Promise((resolve) => {
|
|||
"ruleNames": [ "MD021", "no-multiple-space-closed-atx" ],
|
||||
"ruleDescription":
|
||||
"Multiple spaces inside hashes on closed atx style heading",
|
||||
"ruleInformation": `${homepage}/blob/v${version}/doc/Rules.md#md021`,
|
||||
"ruleInformation": `${homepage}/blob/v${version}/doc/md021.md`,
|
||||
"errorDetail": null,
|
||||
"errorContext": "# Multiple spa...tyle heading #",
|
||||
"errorRange": [ 1, 4 ] }
|
||||
|
@ -275,28 +275,28 @@ test("resultFormattingV2", (t) => new Promise((resolve) => {
|
|||
{ "lineNumber": 3,
|
||||
"ruleNames": [ "MD002", "first-heading-h1", "first-header-h1" ],
|
||||
"ruleDescription": "First heading should be a top-level heading",
|
||||
"ruleInformation": `${homepage}/blob/v${version}/doc/Rules.md#md002`,
|
||||
"ruleInformation": `${homepage}/blob/v${version}/doc/md002.md`,
|
||||
"errorDetail": "Expected: h1; Actual: h2",
|
||||
"errorContext": null,
|
||||
"errorRange": null },
|
||||
{ "lineNumber": 1,
|
||||
"ruleNames": [ "MD018", "no-missing-space-atx" ],
|
||||
"ruleDescription": "No space after hash on atx style heading",
|
||||
"ruleInformation": `${homepage}/blob/v${version}/doc/Rules.md#md018`,
|
||||
"ruleInformation": `${homepage}/blob/v${version}/doc/md018.md`,
|
||||
"errorDetail": null,
|
||||
"errorContext": "#Heading 1 {MD018}",
|
||||
"errorRange": [ 1, 2 ] },
|
||||
{ "lineNumber": 3,
|
||||
"ruleNames": [ "MD019", "no-multiple-space-atx" ],
|
||||
"ruleDescription": "Multiple spaces after hash on atx style heading",
|
||||
"ruleInformation": `${homepage}/blob/v${version}/doc/Rules.md#md019`,
|
||||
"ruleInformation": `${homepage}/blob/v${version}/doc/md019.md`,
|
||||
"errorDetail": null,
|
||||
"errorContext": "## Heading 2 {MD019}",
|
||||
"errorRange": [ 1, 5 ] },
|
||||
{ "lineNumber": 5,
|
||||
"ruleNames": [ "MD019", "no-multiple-space-atx" ],
|
||||
"ruleDescription": "Multiple spaces after hash on atx style heading",
|
||||
"ruleInformation": `${homepage}/blob/v${version}/doc/Rules.md#md019`,
|
||||
"ruleInformation": `${homepage}/blob/v${version}/doc/md019.md`,
|
||||
"errorDetail": null,
|
||||
"errorContext": "## Heading 3 {MD019}",
|
||||
"errorRange": [ 1, 6 ] }
|
||||
|
@ -305,7 +305,7 @@ test("resultFormattingV2", (t) => new Promise((resolve) => {
|
|||
{ "lineNumber": 1,
|
||||
"ruleNames": [ "MD002", "first-heading-h1", "first-header-h1" ],
|
||||
"ruleDescription": "First heading should be a top-level heading",
|
||||
"ruleInformation": `${homepage}/blob/v${version}/doc/Rules.md#md002`,
|
||||
"ruleInformation": `${homepage}/blob/v${version}/doc/md002.md`,
|
||||
"errorDetail": "Expected: h1; Actual: h2",
|
||||
"errorContext": null,
|
||||
"errorRange": null }
|
||||
|
@ -359,7 +359,7 @@ test("resultFormattingV3", (t) => new Promise((resolve) => {
|
|||
"lineNumber": 1,
|
||||
"ruleNames": [ "MD009", "no-trailing-spaces" ],
|
||||
"ruleDescription": "Trailing spaces",
|
||||
"ruleInformation": `${homepage}/blob/v${version}/doc/Rules.md#md009`,
|
||||
"ruleInformation": `${homepage}/blob/v${version}/doc/md009.md`,
|
||||
"errorDetail": "Expected: 0 or 2; Actual: 3",
|
||||
"errorContext": null,
|
||||
"errorRange": [ 10, 3 ],
|
||||
|
@ -372,7 +372,7 @@ test("resultFormattingV3", (t) => new Promise((resolve) => {
|
|||
"lineNumber": 3,
|
||||
"ruleNames": [ "MD010", "no-hard-tabs" ],
|
||||
"ruleDescription": "Hard tabs",
|
||||
"ruleInformation": `${homepage}/blob/v${version}/doc/Rules.md#md010`,
|
||||
"ruleInformation": `${homepage}/blob/v${version}/doc/md010.md`,
|
||||
"errorDetail": "Column: 5",
|
||||
"errorContext": null,
|
||||
"errorRange": [ 5, 1 ],
|
||||
|
@ -386,7 +386,7 @@ test("resultFormattingV3", (t) => new Promise((resolve) => {
|
|||
"lineNumber": 3,
|
||||
"ruleNames": [ "MD010", "no-hard-tabs" ],
|
||||
"ruleDescription": "Hard tabs",
|
||||
"ruleInformation": `${homepage}/blob/v${version}/doc/Rules.md#md010`,
|
||||
"ruleInformation": `${homepage}/blob/v${version}/doc/md010.md`,
|
||||
"errorDetail": "Column: 10",
|
||||
"errorContext": null,
|
||||
"errorRange": [ 10, 2 ],
|
||||
|
@ -400,7 +400,7 @@ test("resultFormattingV3", (t) => new Promise((resolve) => {
|
|||
"lineNumber": 4,
|
||||
"ruleNames": [ "MD037", "no-space-in-emphasis" ],
|
||||
"ruleDescription": "Spaces inside emphasis markers",
|
||||
"ruleInformation": `${homepage}/blob/v${version}/doc/Rules.md#md037`,
|
||||
"ruleInformation": `${homepage}/blob/v${version}/doc/md037.md`,
|
||||
"errorDetail": null,
|
||||
"errorContext": "* emphasis *",
|
||||
"errorRange": [ 6, 12 ],
|
||||
|
@ -414,7 +414,7 @@ test("resultFormattingV3", (t) => new Promise((resolve) => {
|
|||
"lineNumber": 4,
|
||||
"ruleNames": [ "MD047", "single-trailing-newline" ],
|
||||
"ruleDescription": "Files should end with a single newline character",
|
||||
"ruleInformation": `${homepage}/blob/v${version}/doc/Rules.md#md047`,
|
||||
"ruleInformation": `${homepage}/blob/v${version}/doc/md047.md`,
|
||||
"errorDetail": null,
|
||||
"errorContext": null,
|
||||
"errorRange": [ 22, 1 ],
|
||||
|
@ -482,7 +482,7 @@ test("onePerLineResultVersion1", (t) => new Promise((resolve) => {
|
|||
"ruleAlias": "no-hard-tabs",
|
||||
"ruleDescription": "Hard tabs",
|
||||
"ruleInformation":
|
||||
`${homepage}/blob/v${version}/doc/Rules.md#md010`,
|
||||
`${homepage}/blob/v${version}/doc/md010.md`,
|
||||
"errorDetail": "Column: 10",
|
||||
"errorContext": null,
|
||||
"errorRange": [ 10, 1 ]
|
||||
|
@ -512,7 +512,7 @@ test("onePerLineResultVersion2", (t) => new Promise((resolve) => {
|
|||
"ruleNames": [ "MD010", "no-hard-tabs" ],
|
||||
"ruleDescription": "Hard tabs",
|
||||
"ruleInformation":
|
||||
`${homepage}/blob/v${version}/doc/Rules.md#md010`,
|
||||
`${homepage}/blob/v${version}/doc/md010.md`,
|
||||
"errorDetail": "Column: 10",
|
||||
"errorContext": null,
|
||||
"errorRange": [ 10, 1 ]
|
||||
|
@ -541,7 +541,7 @@ test("manyPerLineResultVersion3", (t) => new Promise((resolve) => {
|
|||
"ruleNames": [ "MD010", "no-hard-tabs" ],
|
||||
"ruleDescription": "Hard tabs",
|
||||
"ruleInformation":
|
||||
`${homepage}/blob/v${version}/doc/Rules.md#md010`,
|
||||
`${homepage}/blob/v${version}/doc/md010.md`,
|
||||
"errorDetail": "Column: 10",
|
||||
"errorContext": null,
|
||||
"errorRange": [ 10, 1 ],
|
||||
|
@ -556,7 +556,7 @@ test("manyPerLineResultVersion3", (t) => new Promise((resolve) => {
|
|||
"ruleNames": [ "MD010", "no-hard-tabs" ],
|
||||
"ruleDescription": "Hard tabs",
|
||||
"ruleInformation":
|
||||
`${homepage}/blob/v${version}/doc/Rules.md#md010`,
|
||||
`${homepage}/blob/v${version}/doc/md010.md`,
|
||||
"errorDetail": "Column: 18",
|
||||
"errorContext": null,
|
||||
"errorRange": [ 18, 2 ],
|
||||
|
@ -591,7 +591,7 @@ test("frontMatterResultVersion3", (t) => new Promise((resolve) => {
|
|||
[ "MD022", "blanks-around-headings", "blanks-around-headers" ],
|
||||
"ruleDescription": "Headings should be surrounded by blank lines",
|
||||
"ruleInformation":
|
||||
`${homepage}/blob/v${version}/doc/Rules.md#md022`,
|
||||
`${homepage}/blob/v${version}/doc/md022.md`,
|
||||
"errorDetail": "Expected: 1; Actual: 0; Below",
|
||||
"errorContext": "# Heading",
|
||||
"errorRange": null,
|
||||
|
|
|
@ -902,8 +902,8 @@ test("readme", (t) => new Promise((resolve) => {
|
|||
if (rule) {
|
||||
const ruleName = rule.names[0];
|
||||
const ruleAliases = rule.names.slice(1);
|
||||
let expected = "**[" + ruleName + "](doc/Rules.md#" +
|
||||
ruleName.toLowerCase() + ")** *" +
|
||||
let expected = "**[" + ruleName + "](doc/" +
|
||||
ruleName.toLowerCase() + ".md)** *" +
|
||||
ruleAliases.join("/") + "* - " + rule.description;
|
||||
if (deprecatedRuleNames.has(ruleName)) {
|
||||
expected = "~~" + expected + "~~";
|
||||
|
@ -1033,7 +1033,7 @@ test("allBuiltInRulesHaveValidUrl", (t) => {
|
|||
t.is(
|
||||
// @ts-ignore
|
||||
rule.information.href,
|
||||
`${homepage}/blob/v${version}/doc/Rules.md#${name}`
|
||||
`${homepage}/blob/v${version}/doc/${name}.md`
|
||||
);
|
||||
}
|
||||
});
|
||||
|
|
File diff suppressed because it is too large
Load diff
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue