Add error/warning severity property to LintError object.

This commit is contained in:
David Anson 2025-09-11 20:34:24 -07:00
parent 2954fee86c
commit 02a54a2b66
16 changed files with 4075 additions and 907 deletions

View file

@ -888,7 +888,8 @@ All of which return an object like:
"errorDetail": "Column: 17", "errorDetail": "Column: 17",
"errorContext": null, "errorContext": null,
"errorRange": [ 17, 1 ], "errorRange": [ 17, 1 ],
"fixInfo": { "editColumn": 17, "deleteCount": 1, "insertText": ' ' } } "fixInfo": { "editColumn": 17, "deleteCount": 1, "insertText": " " },
"severity": "error" },
{ "lineNumber": 1, { "lineNumber": 1,
"ruleNames": [ "MD018", "no-missing-space-atx" ], "ruleNames": [ "MD018", "no-missing-space-atx" ],
"ruleDescription": "No space after hash on atx style heading", "ruleDescription": "No space after hash on atx style heading",
@ -896,7 +897,8 @@ All of which return an object like:
"errorDetail": null, "errorDetail": null,
"errorContext": "#bad.md", "errorContext": "#bad.md",
"errorRange": [ 1, 2 ], "errorRange": [ 1, 2 ],
"fixInfo": { "editColumn": 2, "insertText": ' ' } } "fixInfo": { "editColumn": 2, "insertText": " " },
"severity": "error" },
{ "lineNumber": 3, { "lineNumber": 3,
"ruleNames": [ "MD018", "no-missing-space-atx" ], "ruleNames": [ "MD018", "no-missing-space-atx" ],
"ruleDescription": "No space after hash on atx style heading", "ruleDescription": "No space after hash on atx style heading",
@ -904,7 +906,8 @@ All of which return an object like:
"errorDetail": null, "errorDetail": null,
"errorContext": "#This file fails\tsome rules.", "errorContext": "#This file fails\tsome rules.",
"errorRange": [ 1, 2 ], "errorRange": [ 1, 2 ],
"fixInfo": { "editColumn": 2, "insertText": ' ' } } "fixInfo": { "editColumn": 2, "insertText": " " },
"severity": "error" },
{ "lineNumber": 1, { "lineNumber": 1,
"ruleNames": [ "MD041", "first-line-heading", "first-line-h1" ], "ruleNames": [ "MD041", "first-line-heading", "first-line-h1" ],
"ruleDescription": "First line in a file should be a top-level heading", "ruleDescription": "First line in a file should be a top-level heading",
@ -912,7 +915,8 @@ All of which return an object like:
"errorDetail": null, "errorDetail": null,
"errorContext": "#bad.md", "errorContext": "#bad.md",
"errorRange": null, "errorRange": null,
"fixInfo": null } "fixInfo": null,
"severity": "error" }
] ]
} }
``` ```

View file

@ -59,7 +59,8 @@ function assertLintResults(results: LintResults) {
"editColumn": 1, "editColumn": 1,
"deleteCount": 1, "deleteCount": 1,
"insertText": "text" "insertText": "text"
} },
"severity": "error"
} }
] ]
}; };

View file

@ -556,6 +556,8 @@ function convertLintErrorsVersion3To2(errors) {
return errors.filter((error, index, array) => { return errors.filter((error, index, array) => {
// @ts-ignore // @ts-ignore
delete error.fixInfo; delete error.fixInfo;
// @ts-ignore
delete error.severity;
const previous = array[index - 1] || noPrevious; const previous = array[index - 1] || noPrevious;
return ( return (
(error.ruleNames[0] !== previous.ruleNames[0]) || (error.ruleNames[0] !== previous.ruleNames[0]) ||
@ -660,7 +662,7 @@ module.exports.formatLintResults = function formatLintResults(lintResults) {
entries.sort((a, b) => a[0].localeCompare(b[0])); entries.sort((a, b) => a[0].localeCompare(b[0]));
for (const [ source, lintErrors ] of entries) { for (const [ source, lintErrors ] of entries) {
for (const lintError of lintErrors) { for (const lintError of lintErrors) {
const { lineNumber, ruleNames, ruleDescription, errorDetail, errorContext, errorRange } = lintError; const { lineNumber, ruleNames, ruleDescription, errorDetail, errorContext, errorRange, severity } = lintError;
const rule = ruleNames.join("/"); const rule = ruleNames.join("/");
const line = `:${lineNumber}`; const line = `:${lineNumber}`;
const rangeStart = (errorRange && errorRange[0]) || 0; const rangeStart = (errorRange && errorRange[0]) || 0;
@ -668,7 +670,7 @@ module.exports.formatLintResults = function formatLintResults(lintResults) {
const description = ruleDescription; const description = ruleDescription;
const detail = (errorDetail ? ` [${errorDetail}]` : ""); const detail = (errorDetail ? ` [${errorDetail}]` : "");
const context = (errorContext ? ` [Context: "${errorContext}"]` : ""); const context = (errorContext ? ` [Context: "${errorContext}"]` : "");
results.push(`${source}${line}${column} ${rule} ${description}${detail}${context}`); results.push(`${source}${line}${column} ${severity} ${rule} ${description}${detail}${context}`);
} }
} }
return results; return results;

View file

@ -463,6 +463,10 @@ export type LintError = {
* Fix information. * Fix information.
*/ */
fixInfo: FixInfo | null; fixInfo: FixInfo | null;
/**
* Severity of the error.
*/
severity: "error" | "warning";
}; };
/** /**
* Fix information. * Fix information.

View file

@ -637,7 +637,8 @@ function lintContent(
"errorDetail": errorInfo.detail?.replace(helpers.newLineRe, " ") || null, "errorDetail": errorInfo.detail?.replace(helpers.newLineRe, " ") || null,
"errorContext": errorInfo.context?.replace(helpers.newLineRe, " ") || null, "errorContext": errorInfo.context?.replace(helpers.newLineRe, " ") || null,
"errorRange": errorInfo.range ? [ ...errorInfo.range ] : null, "errorRange": errorInfo.range ? [ ...errorInfo.range ] : null,
"fixInfo": fixInfo ? cleanFixInfo : null "fixInfo": fixInfo ? cleanFixInfo : null,
"severity": "error"
}); });
} }
// Call (possibly external) rule function to report errors // Call (possibly external) rule function to report errors
@ -1501,6 +1502,7 @@ export function getVersion() {
* @property {string} errorContext Context for the error. * @property {string} errorContext Context for the error.
* @property {number[]|null} errorRange Column number (1-based) and length. * @property {number[]|null} errorRange Column number (1-based) and length.
* @property {FixInfo|null} fixInfo Fix information. * @property {FixInfo|null} fixInfo Fix information.
* @property {"error" | "warning"} severity Severity of the error.
*/ */
/** /**

View file

@ -970,7 +970,8 @@ test("customRulesDefinitionStatic", (t) => new Promise((resolve) => {
"errorDetail": null, "errorDetail": null,
"errorContext": null, "errorContext": null,
"errorRange": null, "errorRange": null,
"fixInfo": null "fixInfo": null,
"severity": "error"
} }
] ]
}; };
@ -1428,7 +1429,8 @@ test("customRulesOnErrorLazy", (t) => new Promise((resolve) => {
"errorDetail": null, "errorDetail": null,
"errorContext": null, "errorContext": null,
"errorRange": [ 1, 1 ], "errorRange": [ 1, 1 ],
"fixInfo": null "fixInfo": null,
"severity": "error"
} }
] ]
}; };
@ -1492,7 +1494,8 @@ test("customRulesOnErrorModified", (t) => new Promise((resolve) => {
"editColumn": 1, "editColumn": 1,
"deleteCount": 2, "deleteCount": 2,
"insertText": "text" "insertText": "text"
} },
"severity": "error"
} }
] ]
}; };
@ -1535,7 +1538,8 @@ test("customRulesOnErrorInvalidHandled", (t) => new Promise((resolve) => {
"Value of 'lineNumber' passed to onError by 'NAME' is incorrect for 'string'.", "Value of 'lineNumber' passed to onError by 'NAME' is incorrect for 'string'.",
"errorContext": null, "errorContext": null,
"errorRange": null, "errorRange": null,
"fixInfo": null "fixInfo": null,
"severity": "error"
} }
] ]
}; };
@ -1578,7 +1582,8 @@ test("customRulesOnErrorInvalidHandledSync", (t) => {
"Value of 'lineNumber' passed to onError by 'NAME' is incorrect for 'string'.", "Value of 'lineNumber' passed to onError by 'NAME' is incorrect for 'string'.",
"errorContext": null, "errorContext": null,
"errorRange": null, "errorRange": null,
"fixInfo": null "fixInfo": null,
"severity": "error"
} }
] ]
}; };
@ -1895,7 +1900,8 @@ test("customRulesLintJavaScript", (t) => new Promise((resolve) => {
"errorDetail": "'console' is not defined.", "errorDetail": "'console' is not defined.",
"errorContext": "console.log(x);", "errorContext": "console.log(x);",
"errorRange": null, "errorRange": null,
"fixInfo": null "fixInfo": null,
"severity": "error"
} }
] ]
}; };
@ -1923,7 +1929,8 @@ test("customRulesValidateJson", (t) => new Promise((resolve) => {
"ruleInformation": null, "ruleInformation": null,
"errorContext": null, "errorContext": null,
"errorRange": null, "errorRange": null,
"fixInfo": null "fixInfo": null,
"severity": "error"
} }
] ]
}; };
@ -2143,7 +2150,8 @@ test("customRulesAsyncReadFiles", (t) => {
"fixInfo": { "fixInfo": {
"editColumn": 10, "editColumn": 10,
"insertText": "\n" "insertText": "\n"
} },
"severity": "error"
}, },
{ {
"lineNumber": 1, "lineNumber": 1,
@ -2153,7 +2161,8 @@ test("customRulesAsyncReadFiles", (t) => {
"errorDetail": "detail1", "errorDetail": "detail1",
"errorContext": "context1", "errorContext": "context1",
"errorRange": [ 2, 3 ], "errorRange": [ 2, 3 ],
"fixInfo": null "fixInfo": null,
"severity": "error"
}, },
{ {
"lineNumber": 1, "lineNumber": 1,
@ -2163,7 +2172,8 @@ test("customRulesAsyncReadFiles", (t) => {
"errorDetail": "detail2", "errorDetail": "detail2",
"errorContext": "context2", "errorContext": "context2",
"errorRange": null, "errorRange": null,
"fixInfo": null "fixInfo": null,
"severity": "error"
} }
] ]
}; };
@ -2214,7 +2224,8 @@ test("customRulesAsyncIgnoresSyncReturn", (t) => {
"errorDetail": null, "errorDetail": null,
"errorContext": null, "errorContext": null,
"errorRange": null, "errorRange": null,
"fixInfo": null "fixInfo": null,
"severity": "error"
}, },
{ {
"lineNumber": 1, "lineNumber": 1,
@ -2227,7 +2238,8 @@ test("customRulesAsyncIgnoresSyncReturn", (t) => {
"fixInfo": { "fixInfo": {
"editColumn": 10, "editColumn": 10,
"insertText": "\n" "insertText": "\n"
} },
"severity": "error"
} }
] ]
}; };
@ -2285,7 +2297,8 @@ for (const flavor of [
"errorDetail": `This rule threw an exception: ${errorMessage}`, "errorDetail": `This rule threw an exception: ${errorMessage}`,
"errorContext": null, "errorContext": null,
"errorRange": null, "errorRange": null,
"fixInfo": null "fixInfo": null,
"severity": "error"
} }
] ]
}; };
@ -2455,7 +2468,8 @@ for (const flavor of [
"errorDetail": `This rule threw an exception: ${errorMessage}`, "errorDetail": `This rule threw an exception: ${errorMessage}`,
"errorContext": null, "errorContext": null,
"errorRange": null, "errorRange": null,
"fixInfo": null "fixInfo": null,
"severity": "error"
} }
] ]
}; };

View file

@ -537,10 +537,10 @@ test("formatLintResults", async(t) => {
t.deepEqual( t.deepEqual(
formatLintResults(lintResults), formatLintResults(lintResults),
[ [
"content:1:3 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: \"# Heading\"]", "content:1:3 error MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: \"# Heading\"]",
"content:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: \"# Heading\"]", "content:1 error MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: \"# Heading\"]",
"content:2:1 MD033/no-inline-html Inline HTML [Element: br]", "content:2:1 error MD033/no-inline-html Inline HTML [Element: br]",
"content:2:5 MD047/single-trailing-newline Files should end with a single newline character" "content:2:5 error MD047/single-trailing-newline Files should end with a single newline character"
] ]
); );
}); });

View file

@ -370,7 +370,8 @@ test("resultFormattingV3", (t) => new Promise((resolve) => {
"fixInfo": { "fixInfo": {
"editColumn": 10, "editColumn": 10,
"deleteCount": 3 "deleteCount": 3
} },
"severity": "error"
}, },
{ {
"lineNumber": 3, "lineNumber": 3,
@ -384,7 +385,8 @@ test("resultFormattingV3", (t) => new Promise((resolve) => {
"editColumn": 5, "editColumn": 5,
"deleteCount": 1, "deleteCount": 1,
"insertText": " " "insertText": " "
} },
"severity": "error"
}, },
{ {
"lineNumber": 3, "lineNumber": 3,
@ -398,7 +400,8 @@ test("resultFormattingV3", (t) => new Promise((resolve) => {
"editColumn": 10, "editColumn": 10,
"deleteCount": 2, "deleteCount": 2,
"insertText": " " "insertText": " "
} },
"severity": "error"
}, },
{ {
"lineNumber": 4, "lineNumber": 4,
@ -411,7 +414,8 @@ test("resultFormattingV3", (t) => new Promise((resolve) => {
"fixInfo": { "fixInfo": {
"editColumn": 7, "editColumn": 7,
"deleteCount": 1 "deleteCount": 1
} },
"severity": "error"
}, },
{ {
"lineNumber": 4, "lineNumber": 4,
@ -424,7 +428,8 @@ test("resultFormattingV3", (t) => new Promise((resolve) => {
"fixInfo": { "fixInfo": {
"editColumn": 16, "editColumn": 16,
"deleteCount": 1 "deleteCount": 1
} },
"severity": "error"
}, },
{ {
"lineNumber": 4, "lineNumber": 4,
@ -437,7 +442,8 @@ test("resultFormattingV3", (t) => new Promise((resolve) => {
"fixInfo": { "fixInfo": {
"insertText": "\n", "insertText": "\n",
"editColumn": 23 "editColumn": 23
} },
"severity": "error"
} }
] ]
}; };
@ -568,7 +574,8 @@ test("manyPerLineResultVersion3", (t) => new Promise((resolve) => {
"editColumn": 10, "editColumn": 10,
"deleteCount": 1, "deleteCount": 1,
"insertText": " " "insertText": " "
} },
"severity": "error"
}, },
{ {
"lineNumber": 1, "lineNumber": 1,
@ -583,7 +590,8 @@ test("manyPerLineResultVersion3", (t) => new Promise((resolve) => {
"editColumn": 18, "editColumn": 18,
"deleteCount": 2, "deleteCount": 2,
"insertText": " " "insertText": " "
} },
"severity": "error"
} }
] ]
}; };
@ -617,7 +625,8 @@ test("frontMatterResultVersion3", (t) => new Promise((resolve) => {
"fixInfo": { "fixInfo": {
"lineNumber": 4, "lineNumber": 4,
"insertText": "\n" "insertText": "\n"
} },
"severity": "error"
} }
] ]
}; };

View file

@ -8,13 +8,13 @@ Generated by [AVA](https://avajs.dev).
> Expected linting violations > Expected linting violations
`test-repos/dotnet-docs/README.md:21:383 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ `test-repos/dotnet-docs/README.md:21:383 error MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊
test-repos/dotnet-docs/README.md:39:451 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ test-repos/dotnet-docs/README.md:39:451 error MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊
test-repos/dotnet-docs/SECURITY.md:21:1 MD007/ul-indent Unordered list indentation [Expected: 0; Actual: 2]␊ test-repos/dotnet-docs/SECURITY.md:21:1 error MD007/ul-indent Unordered list indentation [Expected: 0; Actual: 2]␊
test-repos/dotnet-docs/SECURITY.md:22:1 MD007/ul-indent Unordered list indentation [Expected: 0; Actual: 2]␊ test-repos/dotnet-docs/SECURITY.md:22:1 error MD007/ul-indent Unordered list indentation [Expected: 0; Actual: 2]␊
test-repos/dotnet-docs/SECURITY.md:23:1 MD007/ul-indent Unordered list indentation [Expected: 0; Actual: 2]␊ test-repos/dotnet-docs/SECURITY.md:23:1 error MD007/ul-indent Unordered list indentation [Expected: 0; Actual: 2]␊
test-repos/dotnet-docs/SECURITY.md:24:1 MD007/ul-indent Unordered list indentation [Expected: 0; Actual: 2]␊ test-repos/dotnet-docs/SECURITY.md:24:1 error MD007/ul-indent Unordered list indentation [Expected: 0; Actual: 2]␊
test-repos/dotnet-docs/SECURITY.md:25:1 MD007/ul-indent Unordered list indentation [Expected: 0; Actual: 2]␊ test-repos/dotnet-docs/SECURITY.md:25:1 error MD007/ul-indent Unordered list indentation [Expected: 0; Actual: 2]␊
test-repos/dotnet-docs/SECURITY.md:26:1 MD007/ul-indent Unordered list indentation [Expected: 0; Actual: 2]␊ test-repos/dotnet-docs/SECURITY.md:26:1 error MD007/ul-indent Unordered list indentation [Expected: 0; Actual: 2]␊
test-repos/dotnet-docs/SECURITY.md:27:1 MD007/ul-indent Unordered list indentation [Expected: 0; Actual: 2]␊ test-repos/dotnet-docs/SECURITY.md:27:1 error MD007/ul-indent Unordered list indentation [Expected: 0; Actual: 2]␊
test-repos/dotnet-docs/SECURITY.md:17:252 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]` test-repos/dotnet-docs/SECURITY.md:17:252 error MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]`

View file

@ -8,71 +8,71 @@ Generated by [AVA](https://avajs.dev).
> Expected linting violations > Expected linting violations
`test-repos/mdn-content/files/en-us/glossary/denial_of_service/index.md:14 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊ `test-repos/mdn-content/files/en-us/glossary/denial_of_service/index.md:14 error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊
test-repos/mdn-content/files/en-us/glossary/flex/index.md:14 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊ test-repos/mdn-content/files/en-us/glossary/flex/index.md:14 error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊
test-repos/mdn-content/files/en-us/glossary/function/index.md:12 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊ test-repos/mdn-content/files/en-us/glossary/function/index.md:12 error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊
test-repos/mdn-content/files/en-us/glossary/https_rr/index.md:13 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊ test-repos/mdn-content/files/en-us/glossary/https_rr/index.md:13 error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊
test-repos/mdn-content/files/en-us/glossary/parameter/index.md:31 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊ test-repos/mdn-content/files/en-us/glossary/parameter/index.md:31 error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊
test-repos/mdn-content/files/en-us/glossary/prefetch/index.md:12 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊ test-repos/mdn-content/files/en-us/glossary/prefetch/index.md:12 error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊
test-repos/mdn-content/files/en-us/glossary/session_hijacking/index.md:14 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊ test-repos/mdn-content/files/en-us/glossary/session_hijacking/index.md:14 error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊
test-repos/mdn-content/files/en-us/glossary/time_to_interactive/index.md:12 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h4]␊ test-repos/mdn-content/files/en-us/glossary/time_to_interactive/index.md:12 error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h4]␊
test-repos/mdn-content/files/en-us/glossary/truthy/index.md:30 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊ test-repos/mdn-content/files/en-us/glossary/truthy/index.md:30 error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊
test-repos/mdn-content/files/en-us/glossary/xhtml/index.md:12 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊ test-repos/mdn-content/files/en-us/glossary/xhtml/index.md:12 error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊
test-repos/mdn-content/files/en-us/glossary/xlink/index.md:16 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊ test-repos/mdn-content/files/en-us/glossary/xlink/index.md:16 error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊
test-repos/mdn-content/files/en-us/learn_web_development/howto/solve_html_problems/index.md:11 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊ test-repos/mdn-content/files/en-us/learn_web_development/howto/solve_html_problems/index.md:11 error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊
test-repos/mdn-content/files/en-us/mozilla/add-ons/contact_us/index.md:10 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊ test-repos/mdn-content/files/en-us/mozilla/add-ons/contact_us/index.md:10 error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊
test-repos/mdn-content/files/en-us/mozilla/add-ons/webextensions/manifest.json/externally_connectable/index.md:53 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊ test-repos/mdn-content/files/en-us/mozilla/add-ons/webextensions/manifest.json/externally_connectable/index.md:53 error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊
test-repos/mdn-content/files/en-us/mozilla/add-ons/webextensions/manifest.json/host_permissions/index.md:39 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊ test-repos/mdn-content/files/en-us/mozilla/add-ons/webextensions/manifest.json/host_permissions/index.md:39 error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊
test-repos/mdn-content/files/en-us/mozilla/firefox/releases/1.5/what_s_new_in_1.5_alpha/index.md:10 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊ test-repos/mdn-content/files/en-us/mozilla/firefox/releases/1.5/what_s_new_in_1.5_alpha/index.md:10 error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊
test-repos/mdn-content/files/en-us/mozilla/firefox/releases/3/dom_improvements/index.md:20 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊ test-repos/mdn-content/files/en-us/mozilla/firefox/releases/3/dom_improvements/index.md:20 error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊
test-repos/mdn-content/files/en-us/mozilla/firefox/releases/3/full_page_zoom/index.md:10 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊ test-repos/mdn-content/files/en-us/mozilla/firefox/releases/3/full_page_zoom/index.md:10 error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊
test-repos/mdn-content/files/en-us/mozilla/firefox/releases/3/notable_bugs_fixed/index.md:26 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊ test-repos/mdn-content/files/en-us/mozilla/firefox/releases/3/notable_bugs_fixed/index.md:26 error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊
test-repos/mdn-content/files/en-us/mozilla/firefox/releases/3/templates/index.md:10 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊ test-repos/mdn-content/files/en-us/mozilla/firefox/releases/3/templates/index.md:10 error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊
test-repos/mdn-content/files/en-us/mozilla/firefox/releases/3/xul_improvements_in_firefox_3/index.md:10 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊ test-repos/mdn-content/files/en-us/mozilla/firefox/releases/3/xul_improvements_in_firefox_3/index.md:10 error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊
test-repos/mdn-content/files/en-us/web/accessibility/aria/how_to/file_aria-related_bugs/index.md:10 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊ test-repos/mdn-content/files/en-us/web/accessibility/aria/how_to/file_aria-related_bugs/index.md:10 error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊
test-repos/mdn-content/files/en-us/web/api/canvasrenderingcontext2d/save/index.md:16 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊ test-repos/mdn-content/files/en-us/web/api/canvasrenderingcontext2d/save/index.md:16 error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊
test-repos/mdn-content/files/en-us/web/api/delegatedinktrailpresenter/expectedimprovement/index.md:16 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊ test-repos/mdn-content/files/en-us/web/api/delegatedinktrailpresenter/expectedimprovement/index.md:16 error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊
test-repos/mdn-content/files/en-us/web/api/delegatedinktrailpresenter/presentationarea/index.md:19 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊ test-repos/mdn-content/files/en-us/web/api/delegatedinktrailpresenter/presentationarea/index.md:19 error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊
test-repos/mdn-content/files/en-us/web/api/fetchevent/respondwith/index.md:30 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊ test-repos/mdn-content/files/en-us/web/api/fetchevent/respondwith/index.md:30 error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊
test-repos/mdn-content/files/en-us/web/api/htmlelement/dataset/index.md:40 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊ test-repos/mdn-content/files/en-us/web/api/htmlelement/dataset/index.md:40 error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊
test-repos/mdn-content/files/en-us/web/api/htmlelement/editcontext/index.md:17 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊ test-repos/mdn-content/files/en-us/web/api/htmlelement/editcontext/index.md:17 error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊
test-repos/mdn-content/files/en-us/web/api/reportbody/index.md:12 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊ test-repos/mdn-content/files/en-us/web/api/reportbody/index.md:12 error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊
test-repos/mdn-content/files/en-us/web/api/rtcicecandidatepairstats/bytesdiscardedonsend/index.md:17 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊ test-repos/mdn-content/files/en-us/web/api/rtcicecandidatepairstats/bytesdiscardedonsend/index.md:17 error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊
test-repos/mdn-content/files/en-us/web/api/rtcicecandidatepairstats/consentrequestssent/index.md:19 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊ test-repos/mdn-content/files/en-us/web/api/rtcicecandidatepairstats/consentrequestssent/index.md:19 error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊
test-repos/mdn-content/files/en-us/web/api/rtcicecandidatepairstats/packetsdiscardedonsend/index.md:17 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊ test-repos/mdn-content/files/en-us/web/api/rtcicecandidatepairstats/packetsdiscardedonsend/index.md:17 error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊
test-repos/mdn-content/files/en-us/web/api/rtcicecandidatepairstats/packetsreceived/index.md:15 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊ test-repos/mdn-content/files/en-us/web/api/rtcicecandidatepairstats/packetsreceived/index.md:15 error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊
test-repos/mdn-content/files/en-us/web/api/rtcicecandidatepairstats/packetssent/index.md:15 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊ test-repos/mdn-content/files/en-us/web/api/rtcicecandidatepairstats/packetssent/index.md:15 error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊
test-repos/mdn-content/files/en-us/web/api/rtcicecandidatestats/candidatetype/index.md:13 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊ test-repos/mdn-content/files/en-us/web/api/rtcicecandidatestats/candidatetype/index.md:13 error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊
test-repos/mdn-content/files/en-us/web/api/rtcicecandidatestats/foundation/index.md:19 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊ test-repos/mdn-content/files/en-us/web/api/rtcicecandidatestats/foundation/index.md:19 error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊
test-repos/mdn-content/files/en-us/web/api/rtcicecandidatestats/priority/index.md:13 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊ test-repos/mdn-content/files/en-us/web/api/rtcicecandidatestats/priority/index.md:13 error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊
test-repos/mdn-content/files/en-us/web/api/rtcicecandidatestats/usernamefragment/index.md:19 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊ test-repos/mdn-content/files/en-us/web/api/rtcicecandidatestats/usernamefragment/index.md:19 error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊
test-repos/mdn-content/files/en-us/web/api/rtcrtpreceiver/transform/index.md:17 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊ test-repos/mdn-content/files/en-us/web/api/rtcrtpreceiver/transform/index.md:17 error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊
test-repos/mdn-content/files/en-us/web/api/rtcrtpsender/transform/index.md:17 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊ test-repos/mdn-content/files/en-us/web/api/rtcrtpsender/transform/index.md:17 error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊
test-repos/mdn-content/files/en-us/web/api/texttrack/mode/index.md:21 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊ test-repos/mdn-content/files/en-us/web/api/texttrack/mode/index.md:21 error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊
test-repos/mdn-content/files/en-us/web/api/webrtc_api/build_a_phone_with_peerjs/index.md:15 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊ test-repos/mdn-content/files/en-us/web/api/webrtc_api/build_a_phone_with_peerjs/index.md:15 error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊
test-repos/mdn-content/files/en-us/web/css/css_backgrounds_and_borders/index.md:19 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊ test-repos/mdn-content/files/en-us/web/css/css_backgrounds_and_borders/index.md:19 error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊
test-repos/mdn-content/files/en-us/web/css/css_selectors/selector_structure/index.md:14 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊ test-repos/mdn-content/files/en-us/web/css/css_selectors/selector_structure/index.md:14 error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊
test-repos/mdn-content/files/en-us/web/css/font-variant-caps/index.md:54 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊ test-repos/mdn-content/files/en-us/web/css/font-variant-caps/index.md:54 error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊
test-repos/mdn-content/files/en-us/web/html/reference/attributes/crossorigin/index.md:63 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊ test-repos/mdn-content/files/en-us/web/html/reference/attributes/crossorigin/index.md:63 error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊
test-repos/mdn-content/files/en-us/web/html/reference/attributes/maxlength/index.md:18 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊ test-repos/mdn-content/files/en-us/web/html/reference/attributes/maxlength/index.md:18 error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊
test-repos/mdn-content/files/en-us/web/html/reference/attributes/required/index.md:26 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊ test-repos/mdn-content/files/en-us/web/html/reference/attributes/required/index.md:26 error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊
test-repos/mdn-content/files/en-us/web/html/reference/elements/input/time/index.md:43 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊ test-repos/mdn-content/files/en-us/web/html/reference/elements/input/time/index.md:43 error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊
test-repos/mdn-content/files/en-us/web/html/reference/global_attributes/data-_star_/index.md:73 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊ test-repos/mdn-content/files/en-us/web/html/reference/global_attributes/data-_star_/index.md:73 error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊
test-repos/mdn-content/files/en-us/web/html/reference/global_attributes/itemscope/index.md:19 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊ test-repos/mdn-content/files/en-us/web/html/reference/global_attributes/itemscope/index.md:19 error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊
test-repos/mdn-content/files/en-us/web/progressive_web_apps/manifest/reference/display_override/index.md:17 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊ test-repos/mdn-content/files/en-us/web/progressive_web_apps/manifest/reference/display_override/index.md:17 error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊
test-repos/mdn-content/files/en-us/web/progressive_web_apps/manifest/reference/file_handlers/index.md:22 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊ test-repos/mdn-content/files/en-us/web/progressive_web_apps/manifest/reference/file_handlers/index.md:22 error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊
test-repos/mdn-content/files/en-us/web/progressive_web_apps/manifest/reference/launch_handler/index.md:15 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊ test-repos/mdn-content/files/en-us/web/progressive_web_apps/manifest/reference/launch_handler/index.md:15 error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊
test-repos/mdn-content/files/en-us/web/progressive_web_apps/manifest/reference/note_taking/index.md:15 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊ test-repos/mdn-content/files/en-us/web/progressive_web_apps/manifest/reference/note_taking/index.md:15 error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊
test-repos/mdn-content/files/en-us/web/progressive_web_apps/manifest/reference/protocol_handlers/index.md:17 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊ test-repos/mdn-content/files/en-us/web/progressive_web_apps/manifest/reference/protocol_handlers/index.md:17 error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊
test-repos/mdn-content/files/en-us/web/progressive_web_apps/manifest/reference/serviceworker/index.md:16 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊ test-repos/mdn-content/files/en-us/web/progressive_web_apps/manifest/reference/serviceworker/index.md:16 error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊
test-repos/mdn-content/files/en-us/web/progressive_web_apps/manifest/reference/share_target/index.md:20 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊ test-repos/mdn-content/files/en-us/web/progressive_web_apps/manifest/reference/share_target/index.md:20 error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊
test-repos/mdn-content/files/en-us/web/progressive_web_apps/tutorials/js13kgames/app_structure/index.md:17 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊ test-repos/mdn-content/files/en-us/web/progressive_web_apps/tutorials/js13kgames/app_structure/index.md:17 error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊
test-repos/mdn-content/files/en-us/web/svg/guides/namespaces_crash_course/index.md:10 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊ test-repos/mdn-content/files/en-us/web/svg/guides/namespaces_crash_course/index.md:10 error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊
test-repos/mdn-content/files/en-us/web/svg/guides/scripting/index.md:13 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊ test-repos/mdn-content/files/en-us/web/svg/guides/scripting/index.md:13 error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊
test-repos/mdn-content/files/en-us/web/svg/tutorials/svg_from_scratch/other_content_in_svg/index.md:12 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊ test-repos/mdn-content/files/en-us/web/svg/tutorials/svg_from_scratch/other_content_in_svg/index.md:12 error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊
test-repos/mdn-content/files/en-us/web/webdriver/reference/capabilities/firefoxoptions/index.md:18 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h5]␊ test-repos/mdn-content/files/en-us/web/webdriver/reference/capabilities/firefoxoptions/index.md:18 error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h5]␊
test-repos/mdn-content/files/en-us/web/xml/xpath/guides/snippets/index.md:10 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊ test-repos/mdn-content/files/en-us/web/xml/xpath/guides/snippets/index.md:10 error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊
test-repos/mdn-content/files/en-us/web/xml/xslt/guides/common_errors/index.md:8 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊ test-repos/mdn-content/files/en-us/web/xml/xslt/guides/common_errors/index.md:8 error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊
test-repos/mdn-content/files/en-us/web/xml/xslt/guides/pi_parameters/index.md:8 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊ test-repos/mdn-content/files/en-us/web/xml/xslt/guides/pi_parameters/index.md:8 error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊
test-repos/mdn-content/files/en-us/web/xml/xslt/reference/element/stylesheet/index.md:10 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊ test-repos/mdn-content/files/en-us/web/xml/xslt/reference/element/stylesheet/index.md:10 error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]␊
test-repos/mdn-content/files/en-us/webassembly/guides/existing_c_to_wasm/index.md:66 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]` test-repos/mdn-content/files/en-us/webassembly/guides/existing_c_to_wasm/index.md:66 error MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h2; Actual: h3]`

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff