mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-21 21:30:47 +02:00
Add rule MD056/table-column-count (fixes #92).
This commit is contained in:
parent
f694a56254
commit
30d62f19ac
26 changed files with 1748 additions and 298 deletions
|
@ -135,6 +135,7 @@ playground for learning and exploring.
|
|||
- **[MD053](doc/md053.md)** *link-image-reference-definitions* - Link and image reference definitions should be needed
|
||||
- **[MD054](doc/md054.md)** *link-image-style* - Link and image style
|
||||
- **[MD055](doc/md055.md)** *table-pipe-style* - Table pipe style
|
||||
- **[MD056](doc/md056.md)** *table-column-count* - Table column count
|
||||
|
||||
<!-- markdownlint-restore -->
|
||||
|
||||
|
@ -176,7 +177,7 @@ rules at once.
|
|||
- **`ol`** - `MD029`, `MD030`, `MD032`
|
||||
- **`spaces`** - `MD018`, `MD019`, `MD020`, `MD021`, `MD023`
|
||||
- **`spelling`** - `MD044`
|
||||
- **`table`** - `MD055`
|
||||
- **`table`** - `MD055`, `MD056`
|
||||
- **`ul`** - `MD004`, `MD005`, `MD007`, `MD030`, `MD032`
|
||||
- **`url`** - `MD034`
|
||||
- **`whitespace`** - `MD009`, `MD010`, `MD012`, `MD027`, `MD028`, `MD030`,
|
||||
|
|
|
@ -6822,6 +6822,75 @@ module.exports = {
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ "../lib/md056.js":
|
||||
/*!***********************!*\
|
||||
!*** ../lib/md056.js ***!
|
||||
\***********************/
|
||||
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
||||
|
||||
"use strict";
|
||||
// @ts-check
|
||||
|
||||
|
||||
|
||||
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
||||
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
||||
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
||||
var _require = __webpack_require__(/*! ../helpers */ "../helpers/helpers.js"),
|
||||
addErrorDetailIf = _require.addErrorDetailIf;
|
||||
var _require2 = __webpack_require__(/*! ../helpers/micromark.cjs */ "../helpers/micromark.cjs"),
|
||||
filterByTypes = _require2.filterByTypes;
|
||||
var makeRange = function makeRange(start, end) {
|
||||
return [start, end - start + 1];
|
||||
};
|
||||
module.exports = {
|
||||
"names": ["MD056", "table-column-count"],
|
||||
"description": "Table column count",
|
||||
"tags": ["table"],
|
||||
"function": function MD056(params, onError) {
|
||||
var tables = filterByTypes(params.parsers.micromark.tokens, ["table"]);
|
||||
var _iterator = _createForOfIteratorHelper(tables),
|
||||
_step;
|
||||
try {
|
||||
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
||||
var table = _step.value;
|
||||
var rows = filterByTypes(table.children, ["tableDelimiterRow", "tableRow"]);
|
||||
var expectedCount = 0;
|
||||
var _iterator2 = _createForOfIteratorHelper(rows),
|
||||
_step2;
|
||||
try {
|
||||
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
||||
var row = _step2.value;
|
||||
var cells = filterByTypes(row.children, ["tableData", "tableDelimiter", "tableHeader"]);
|
||||
var actualCount = cells.length;
|
||||
expectedCount || (expectedCount = actualCount);
|
||||
var detail = null;
|
||||
var range = null;
|
||||
if (actualCount < expectedCount) {
|
||||
detail = "Too few cells, row will be missing data";
|
||||
range = [row.endColumn - 1, 1];
|
||||
} else if (expectedCount < actualCount) {
|
||||
detail = "Too many cells, extra data will be missing";
|
||||
range = makeRange(cells[expectedCount].startColumn, row.endColumn - 1);
|
||||
}
|
||||
addErrorDetailIf(onError, row.endLine, expectedCount, actualCount, detail, null, range);
|
||||
}
|
||||
} catch (err) {
|
||||
_iterator2.e(err);
|
||||
} finally {
|
||||
_iterator2.f();
|
||||
}
|
||||
}
|
||||
} catch (err) {
|
||||
_iterator.e(err);
|
||||
} finally {
|
||||
_iterator.f();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "../lib/rules.js":
|
||||
/*!***********************!*\
|
||||
!*** ../lib/rules.js ***!
|
||||
|
@ -6843,8 +6912,11 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|||
var _require = __webpack_require__(/*! ./constants */ "../lib/constants.js"),
|
||||
homepage = _require.homepage,
|
||||
version = _require.version;
|
||||
var rules = [__webpack_require__(/*! ./md001 */ "../lib/md001.js"), __webpack_require__(/*! ./md003 */ "../lib/md003.js"), __webpack_require__(/*! ./md004 */ "../lib/md004.js"), __webpack_require__(/*! ./md005 */ "../lib/md005.js"), __webpack_require__(/*! ./md007 */ "../lib/md007.js"), __webpack_require__(/*! ./md009 */ "../lib/md009.js"), __webpack_require__(/*! ./md010 */ "../lib/md010.js"), __webpack_require__(/*! ./md011 */ "../lib/md011.js"), __webpack_require__(/*! ./md012 */ "../lib/md012.js"), __webpack_require__(/*! ./md013 */ "../lib/md013.js"), __webpack_require__(/*! ./md014 */ "../lib/md014.js"), __webpack_require__(/*! ./md018 */ "../lib/md018.js"), __webpack_require__(/*! ./md019 */ "../lib/md019.js"), __webpack_require__(/*! ./md020 */ "../lib/md020.js"), __webpack_require__(/*! ./md021 */ "../lib/md021.js"), __webpack_require__(/*! ./md022 */ "../lib/md022.js"), __webpack_require__(/*! ./md023 */ "../lib/md023.js"), __webpack_require__(/*! ./md024 */ "../lib/md024.js"), __webpack_require__(/*! ./md025 */ "../lib/md025.js"), __webpack_require__(/*! ./md026 */ "../lib/md026.js"), __webpack_require__(/*! ./md027 */ "../lib/md027.js"), __webpack_require__(/*! ./md028 */ "../lib/md028.js"), __webpack_require__(/*! ./md029 */ "../lib/md029.js"), __webpack_require__(/*! ./md030 */ "../lib/md030.js"), __webpack_require__(/*! ./md031 */ "../lib/md031.js"), __webpack_require__(/*! ./md032 */ "../lib/md032.js"), __webpack_require__(/*! ./md033 */ "../lib/md033.js"), __webpack_require__(/*! ./md034 */ "../lib/md034.js"), __webpack_require__(/*! ./md035 */ "../lib/md035.js"), __webpack_require__(/*! ./md036 */ "../lib/md036.js"), __webpack_require__(/*! ./md037 */ "../lib/md037.js"), __webpack_require__(/*! ./md038 */ "../lib/md038.js"), __webpack_require__(/*! ./md039 */ "../lib/md039.js"), __webpack_require__(/*! ./md040 */ "../lib/md040.js"), __webpack_require__(/*! ./md041 */ "../lib/md041.js"), __webpack_require__(/*! ./md042 */ "../lib/md042.js"), __webpack_require__(/*! ./md043 */ "../lib/md043.js"), __webpack_require__(/*! ./md044 */ "../lib/md044.js"), __webpack_require__(/*! ./md045 */ "../lib/md045.js"), __webpack_require__(/*! ./md046 */ "../lib/md046.js"), __webpack_require__(/*! ./md047 */ "../lib/md047.js"), __webpack_require__(/*! ./md048 */ "../lib/md048.js")].concat(_toConsumableArray(__webpack_require__(/*! ./md049-md050 */ "../lib/md049-md050.js")), [__webpack_require__(/*! ./md051 */ "../lib/md051.js"), __webpack_require__(/*! ./md052 */ "../lib/md052.js"), __webpack_require__(/*! ./md053 */ "../lib/md053.js"), __webpack_require__(/*! ./md054 */ "../lib/md054.js"), __webpack_require__(/*! ./md055 */ "../lib/md055.js")
|
||||
// md056: See https://github.com/markdownlint/markdownlint
|
||||
var rules = [__webpack_require__(/*! ./md001 */ "../lib/md001.js"),
|
||||
// md002: Deprecated and removed
|
||||
__webpack_require__(/*! ./md003 */ "../lib/md003.js"), __webpack_require__(/*! ./md004 */ "../lib/md004.js"), __webpack_require__(/*! ./md005 */ "../lib/md005.js"),
|
||||
// md006: Deprecated and removed
|
||||
__webpack_require__(/*! ./md007 */ "../lib/md007.js"), __webpack_require__(/*! ./md009 */ "../lib/md009.js"), __webpack_require__(/*! ./md010 */ "../lib/md010.js"), __webpack_require__(/*! ./md011 */ "../lib/md011.js"), __webpack_require__(/*! ./md012 */ "../lib/md012.js"), __webpack_require__(/*! ./md013 */ "../lib/md013.js"), __webpack_require__(/*! ./md014 */ "../lib/md014.js"), __webpack_require__(/*! ./md018 */ "../lib/md018.js"), __webpack_require__(/*! ./md019 */ "../lib/md019.js"), __webpack_require__(/*! ./md020 */ "../lib/md020.js"), __webpack_require__(/*! ./md021 */ "../lib/md021.js"), __webpack_require__(/*! ./md022 */ "../lib/md022.js"), __webpack_require__(/*! ./md023 */ "../lib/md023.js"), __webpack_require__(/*! ./md024 */ "../lib/md024.js"), __webpack_require__(/*! ./md025 */ "../lib/md025.js"), __webpack_require__(/*! ./md026 */ "../lib/md026.js"), __webpack_require__(/*! ./md027 */ "../lib/md027.js"), __webpack_require__(/*! ./md028 */ "../lib/md028.js"), __webpack_require__(/*! ./md029 */ "../lib/md029.js"), __webpack_require__(/*! ./md030 */ "../lib/md030.js"), __webpack_require__(/*! ./md031 */ "../lib/md031.js"), __webpack_require__(/*! ./md032 */ "../lib/md032.js"), __webpack_require__(/*! ./md033 */ "../lib/md033.js"), __webpack_require__(/*! ./md034 */ "../lib/md034.js"), __webpack_require__(/*! ./md035 */ "../lib/md035.js"), __webpack_require__(/*! ./md036 */ "../lib/md036.js"), __webpack_require__(/*! ./md037 */ "../lib/md037.js"), __webpack_require__(/*! ./md038 */ "../lib/md038.js"), __webpack_require__(/*! ./md039 */ "../lib/md039.js"), __webpack_require__(/*! ./md040 */ "../lib/md040.js"), __webpack_require__(/*! ./md041 */ "../lib/md041.js"), __webpack_require__(/*! ./md042 */ "../lib/md042.js"), __webpack_require__(/*! ./md043 */ "../lib/md043.js"), __webpack_require__(/*! ./md044 */ "../lib/md044.js"), __webpack_require__(/*! ./md045 */ "../lib/md045.js"), __webpack_require__(/*! ./md046 */ "../lib/md046.js"), __webpack_require__(/*! ./md047 */ "../lib/md047.js"), __webpack_require__(/*! ./md048 */ "../lib/md048.js")].concat(_toConsumableArray(__webpack_require__(/*! ./md049-md050 */ "../lib/md049-md050.js")), [__webpack_require__(/*! ./md051 */ "../lib/md051.js"), __webpack_require__(/*! ./md052 */ "../lib/md052.js"), __webpack_require__(/*! ./md053 */ "../lib/md053.js"), __webpack_require__(/*! ./md054 */ "../lib/md054.js"), __webpack_require__(/*! ./md055 */ "../lib/md055.js"), __webpack_require__(/*! ./md056 */ "../lib/md056.js")
|
||||
// md057: See https://github.com/markdownlint/markdownlint
|
||||
]);
|
||||
var _iterator = _createForOfIteratorHelper(rules),
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
This rule is triggered when a [GitHub Flavored Markdown table][gfm-table] is
|
||||
inconsistent about its use of leading and trailing pipe characters (`|`).
|
||||
This rule is triggered when a [GitHub Flavored Markdown table][gfm-table-055]
|
||||
is inconsistent about its use of leading and trailing pipe characters (`|`).
|
||||
|
||||
By default (`consistent` style), the header row of the first table in a document
|
||||
is used to determine the style that is enforced for all tables in that document.
|
||||
|
@ -10,8 +10,8 @@ missing the trailing pipe and its first row of cells is missing the leading
|
|||
pipe:
|
||||
|
||||
```markdown
|
||||
| Heading | Heading |
|
||||
| ------- | -------
|
||||
| Header | Header |
|
||||
| ------ | ------
|
||||
Cell | Cell |
|
||||
```
|
||||
|
||||
|
@ -19,8 +19,8 @@ To fix these issues, make sure there is a pipe character at the beginning and
|
|||
end of every row:
|
||||
|
||||
```markdown
|
||||
| Heading | Heading |
|
||||
| ------- | ------- |
|
||||
| Header | Header |
|
||||
| ------ | ------ |
|
||||
| Cell | Cell |
|
||||
```
|
||||
|
||||
|
@ -29,8 +29,8 @@ line) is treated as part of the table (per the specification) and may also
|
|||
trigger this rule:
|
||||
|
||||
```markdown
|
||||
| Heading | Heading |
|
||||
| ------- | ------- |
|
||||
| Header | Header |
|
||||
| ------ | ------ |
|
||||
| Cell | Cell |
|
||||
This text is part of the table
|
||||
```
|
||||
|
@ -39,4 +39,4 @@ Rationale: Some parsers have difficulty with tables that are missing their
|
|||
leading or trailing pipe characters. The use of leading/trailing pipes can also
|
||||
help provide visual clarity.
|
||||
|
||||
[gfm-table]: https://github.github.com/gfm/#tables-extension-
|
||||
[gfm-table-055]: https://github.github.com/gfm/#tables-extension-
|
||||
|
|
31
doc-build/md056.md
Normal file
31
doc-build/md056.md
Normal file
|
@ -0,0 +1,31 @@
|
|||
This rule is triggered when a [GitHub Flavored Markdown table][gfm-table-056]
|
||||
does not have the same number of cells in every row.
|
||||
|
||||
This table's second data row has too few cells and its third data row has too
|
||||
many cells:
|
||||
|
||||
```markdown
|
||||
| Header | Header |
|
||||
| ------ | ------ |
|
||||
| Cell | Cell |
|
||||
| Cell |
|
||||
| Cell | Cell | Cell |
|
||||
```
|
||||
|
||||
To fix these issues, ensure every row has the same number of cells:
|
||||
|
||||
```markdown
|
||||
| Header | Header |
|
||||
| ------ | ------ |
|
||||
| Cell | Cell |
|
||||
| Cell | Cell |
|
||||
| Cell | Cell |
|
||||
```
|
||||
|
||||
Note that a table's header row and its delimiter row must have the same number
|
||||
of cells or it will not be recognized as a table (per specification).
|
||||
|
||||
Rationale: Extra cells in a row are usually not shown, so their data is lost.
|
||||
Missing cells in a row create holes in the table and suggest an omission.
|
||||
|
||||
[gfm-table-056]: https://github.github.com/gfm/#tables-extension-
|
58
doc/Rules.md
58
doc/Rules.md
|
@ -2337,8 +2337,8 @@ Parameters:
|
|||
`consistent` / `leading_and_trailing` / `leading_only` /
|
||||
`no_leading_or_trailing` / `trailing_only`)
|
||||
|
||||
This rule is triggered when a [GitHub Flavored Markdown table][gfm-table] is
|
||||
inconsistent about its use of leading and trailing pipe characters (`|`).
|
||||
This rule is triggered when a [GitHub Flavored Markdown table][gfm-table-055]
|
||||
is inconsistent about its use of leading and trailing pipe characters (`|`).
|
||||
|
||||
By default (`consistent` style), the header row of the first table in a document
|
||||
is used to determine the style that is enforced for all tables in that document.
|
||||
|
@ -2349,8 +2349,8 @@ missing the trailing pipe and its first row of cells is missing the leading
|
|||
pipe:
|
||||
|
||||
```markdown
|
||||
| Heading | Heading |
|
||||
| ------- | -------
|
||||
| Header | Header |
|
||||
| ------ | ------
|
||||
Cell | Cell |
|
||||
```
|
||||
|
||||
|
@ -2358,8 +2358,8 @@ To fix these issues, make sure there is a pipe character at the beginning and
|
|||
end of every row:
|
||||
|
||||
```markdown
|
||||
| Heading | Heading |
|
||||
| ------- | ------- |
|
||||
| Header | Header |
|
||||
| ------ | ------ |
|
||||
| Cell | Cell |
|
||||
```
|
||||
|
||||
|
@ -2368,8 +2368,8 @@ line) is treated as part of the table (per the specification) and may also
|
|||
trigger this rule:
|
||||
|
||||
```markdown
|
||||
| Heading | Heading |
|
||||
| ------- | ------- |
|
||||
| Header | Header |
|
||||
| ------ | ------ |
|
||||
| Cell | Cell |
|
||||
This text is part of the table
|
||||
```
|
||||
|
@ -2378,7 +2378,47 @@ Rationale: Some parsers have difficulty with tables that are missing their
|
|||
leading or trailing pipe characters. The use of leading/trailing pipes can also
|
||||
help provide visual clarity.
|
||||
|
||||
[gfm-table]: https://github.github.com/gfm/#tables-extension-
|
||||
[gfm-table-055]: https://github.github.com/gfm/#tables-extension-
|
||||
|
||||
<a name="md056"></a>
|
||||
|
||||
## `MD056` - Table column count
|
||||
|
||||
Tags: `table`
|
||||
|
||||
Aliases: `table-column-count`
|
||||
|
||||
This rule is triggered when a [GitHub Flavored Markdown table][gfm-table-056]
|
||||
does not have the same number of cells in every row.
|
||||
|
||||
This table's second data row has too few cells and its third data row has too
|
||||
many cells:
|
||||
|
||||
```markdown
|
||||
| Header | Header |
|
||||
| ------ | ------ |
|
||||
| Cell | Cell |
|
||||
| Cell |
|
||||
| Cell | Cell | Cell |
|
||||
```
|
||||
|
||||
To fix these issues, ensure every row has the same number of cells:
|
||||
|
||||
```markdown
|
||||
| Header | Header |
|
||||
| ------ | ------ |
|
||||
| Cell | Cell |
|
||||
| Cell | Cell |
|
||||
| Cell | Cell |
|
||||
```
|
||||
|
||||
Note that a table's header row and its delimiter row must have the same number
|
||||
of cells or it will not be recognized as a table (per specification).
|
||||
|
||||
Rationale: Extra cells in a row are usually not shown, so their data is lost.
|
||||
Missing cells in a row create holes in the table and suggest an omission.
|
||||
|
||||
[gfm-table-056]: https://github.github.com/gfm/#tables-extension-
|
||||
|
||||
<!-- markdownlint-configure-file {
|
||||
"no-inline-html": {
|
||||
|
|
18
doc/md055.md
18
doc/md055.md
|
@ -10,8 +10,8 @@ Parameters:
|
|||
`consistent` / `leading_and_trailing` / `leading_only` /
|
||||
`no_leading_or_trailing` / `trailing_only`)
|
||||
|
||||
This rule is triggered when a [GitHub Flavored Markdown table][gfm-table] is
|
||||
inconsistent about its use of leading and trailing pipe characters (`|`).
|
||||
This rule is triggered when a [GitHub Flavored Markdown table][gfm-table-055]
|
||||
is inconsistent about its use of leading and trailing pipe characters (`|`).
|
||||
|
||||
By default (`consistent` style), the header row of the first table in a document
|
||||
is used to determine the style that is enforced for all tables in that document.
|
||||
|
@ -22,8 +22,8 @@ missing the trailing pipe and its first row of cells is missing the leading
|
|||
pipe:
|
||||
|
||||
```markdown
|
||||
| Heading | Heading |
|
||||
| ------- | -------
|
||||
| Header | Header |
|
||||
| ------ | ------
|
||||
Cell | Cell |
|
||||
```
|
||||
|
||||
|
@ -31,8 +31,8 @@ To fix these issues, make sure there is a pipe character at the beginning and
|
|||
end of every row:
|
||||
|
||||
```markdown
|
||||
| Heading | Heading |
|
||||
| ------- | ------- |
|
||||
| Header | Header |
|
||||
| ------ | ------ |
|
||||
| Cell | Cell |
|
||||
```
|
||||
|
||||
|
@ -41,8 +41,8 @@ line) is treated as part of the table (per the specification) and may also
|
|||
trigger this rule:
|
||||
|
||||
```markdown
|
||||
| Heading | Heading |
|
||||
| ------- | ------- |
|
||||
| Header | Header |
|
||||
| ------ | ------ |
|
||||
| Cell | Cell |
|
||||
This text is part of the table
|
||||
```
|
||||
|
@ -51,4 +51,4 @@ Rationale: Some parsers have difficulty with tables that are missing their
|
|||
leading or trailing pipe characters. The use of leading/trailing pipes can also
|
||||
help provide visual clarity.
|
||||
|
||||
[gfm-table]: https://github.github.com/gfm/#tables-extension-
|
||||
[gfm-table-055]: https://github.github.com/gfm/#tables-extension-
|
||||
|
|
37
doc/md056.md
Normal file
37
doc/md056.md
Normal file
|
@ -0,0 +1,37 @@
|
|||
# `MD056` - Table column count
|
||||
|
||||
Tags: `table`
|
||||
|
||||
Aliases: `table-column-count`
|
||||
|
||||
This rule is triggered when a [GitHub Flavored Markdown table][gfm-table-056]
|
||||
does not have the same number of cells in every row.
|
||||
|
||||
This table's second data row has too few cells and its third data row has too
|
||||
many cells:
|
||||
|
||||
```markdown
|
||||
| Header | Header |
|
||||
| ------ | ------ |
|
||||
| Cell | Cell |
|
||||
| Cell |
|
||||
| Cell | Cell | Cell |
|
||||
```
|
||||
|
||||
To fix these issues, ensure every row has the same number of cells:
|
||||
|
||||
```markdown
|
||||
| Header | Header |
|
||||
| ------ | ------ |
|
||||
| Cell | Cell |
|
||||
| Cell | Cell |
|
||||
| Cell | Cell |
|
||||
```
|
||||
|
||||
Note that a table's header row and its delimiter row must have the same number
|
||||
of cells or it will not be recognized as a table (per specification).
|
||||
|
||||
Rationale: Extra cells in a row are usually not shown, so their data is lost.
|
||||
Missing cells in a row create holes in the table and suggest an omission.
|
||||
|
||||
[gfm-table-056]: https://github.github.com/gfm/#tables-extension-
|
10
lib/configuration.d.ts
vendored
10
lib/configuration.d.ts
vendored
|
@ -1070,6 +1070,14 @@ export interface Configuration {
|
|||
*/
|
||||
style?: "consistent" | "leading_only" | "trailing_only" | "leading_and_trailing" | "no_leading_or_trailing";
|
||||
};
|
||||
/**
|
||||
* MD056/table-column-count : Table column count : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md056.md
|
||||
*/
|
||||
MD056?: boolean;
|
||||
/**
|
||||
* MD056/table-column-count : Table column count : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md056.md
|
||||
*/
|
||||
"table-column-count"?: boolean;
|
||||
/**
|
||||
* headings : MD001, MD003, MD018, MD019, MD020, MD021, MD022, MD023, MD024, MD025, MD026, MD036, MD041, MD043
|
||||
*/
|
||||
|
@ -1163,7 +1171,7 @@ export interface Configuration {
|
|||
*/
|
||||
images?: boolean;
|
||||
/**
|
||||
* table : MD055
|
||||
* table : MD055, MD056
|
||||
*/
|
||||
table?: boolean;
|
||||
[k: string]: unknown;
|
||||
|
|
44
lib/md056.js
Normal file
44
lib/md056.js
Normal file
|
@ -0,0 +1,44 @@
|
|||
// @ts-check
|
||||
|
||||
"use strict";
|
||||
|
||||
const { addErrorDetailIf } = require("../helpers");
|
||||
const { filterByTypes } = require("../helpers/micromark.cjs");
|
||||
|
||||
const makeRange = (start, end) => [ start, end - start + 1 ];
|
||||
|
||||
module.exports = {
|
||||
"names": [ "MD056", "table-column-count" ],
|
||||
"description": "Table column count",
|
||||
"tags": [ "table" ],
|
||||
"function": function MD056(params, onError) {
|
||||
const tables = filterByTypes(params.parsers.micromark.tokens, [ "table" ]);
|
||||
for (const table of tables) {
|
||||
const rows = filterByTypes(table.children, [ "tableDelimiterRow", "tableRow" ]);
|
||||
let expectedCount = 0;
|
||||
for (const row of rows) {
|
||||
const cells = filterByTypes(row.children, [ "tableData", "tableDelimiter", "tableHeader" ]);
|
||||
const actualCount = cells.length;
|
||||
expectedCount ||= actualCount;
|
||||
let detail = null;
|
||||
let range = null;
|
||||
if (actualCount < expectedCount) {
|
||||
detail = "Too few cells, row will be missing data";
|
||||
range = [ row.endColumn - 1, 1 ];
|
||||
} else if (expectedCount < actualCount) {
|
||||
detail = "Too many cells, extra data will be missing";
|
||||
range = makeRange(cells[expectedCount].startColumn, row.endColumn - 1);
|
||||
}
|
||||
addErrorDetailIf(
|
||||
onError,
|
||||
row.endLine,
|
||||
expectedCount,
|
||||
actualCount,
|
||||
detail,
|
||||
null,
|
||||
range
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -6,9 +6,11 @@ const { homepage, version } = require("./constants");
|
|||
|
||||
const rules = [
|
||||
require("./md001"),
|
||||
// md002: Deprecated and removed
|
||||
require("./md003"),
|
||||
require("./md004"),
|
||||
require("./md005"),
|
||||
// md006: Deprecated and removed
|
||||
require("./md007"),
|
||||
require("./md009"),
|
||||
require("./md010"),
|
||||
|
@ -52,8 +54,8 @@ const rules = [
|
|||
require("./md052"),
|
||||
require("./md053"),
|
||||
require("./md054"),
|
||||
require("./md055")
|
||||
// md056: See https://github.com/markdownlint/markdownlint
|
||||
require("./md055"),
|
||||
require("./md056")
|
||||
// md057: See https://github.com/markdownlint/markdownlint
|
||||
];
|
||||
for (const rule of rules) {
|
||||
|
|
|
@ -297,5 +297,8 @@
|
|||
"MD055": {
|
||||
// Table pipe style
|
||||
"style": "consistent"
|
||||
}
|
||||
},
|
||||
|
||||
// MD056/table-column-count : Table column count : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md056.md
|
||||
"MD056": true
|
||||
}
|
|
@ -267,3 +267,6 @@ MD054:
|
|||
MD055:
|
||||
# Table pipe style
|
||||
style: "consistent"
|
||||
|
||||
# MD056/table-column-count : Table column count : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md056.md
|
||||
MD056: true
|
||||
|
|
|
@ -1674,6 +1674,16 @@
|
|||
},
|
||||
"additionalProperties": false
|
||||
},
|
||||
"MD056": {
|
||||
"description": "MD056/table-column-count : Table column count : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md056.md",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"table-column-count": {
|
||||
"description": "MD056/table-column-count : Table column count : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md056.md",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"headings": {
|
||||
"description": "headings : MD001, MD003, MD018, MD019, MD020, MD021, MD022, MD023, MD024, MD025, MD026, MD036, MD041, MD043",
|
||||
"type": "boolean",
|
||||
|
@ -1790,7 +1800,7 @@
|
|||
"default": true
|
||||
},
|
||||
"table": {
|
||||
"description": "table : MD055",
|
||||
"description": "table : MD055, MD056",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
}
|
||||
|
|
|
@ -109,6 +109,10 @@ Strong **with** different style {MD050}
|
|||
|--------|--------|
|
||||
{MD055} | cell |
|
||||
|
||||
| table | header |
|
||||
|---------|--------|
|
||||
| {MD056} |
|
||||
|
||||
<!-- markdownlint-configure-file {
|
||||
"required-headings": {
|
||||
"headings": [
|
||||
|
|
|
@ -83,7 +83,7 @@ test("projectFiles", (t) => {
|
|||
"schema/*.md"
|
||||
]))
|
||||
.then((files) => {
|
||||
t.is(files.length, 59);
|
||||
t.is(files.length, 60);
|
||||
const options = {
|
||||
files,
|
||||
"config": require("../.markdownlint.json")
|
||||
|
@ -427,16 +427,15 @@ test("styleFiles", async(t) => {
|
|||
}
|
||||
});
|
||||
|
||||
test("styleAll", (t) => new Promise((resolve) => {
|
||||
t.plan(2);
|
||||
test("styleAll", async(t) => {
|
||||
t.plan(1);
|
||||
const options = {
|
||||
"files": [ "./test/break-all-the-rules.md" ],
|
||||
"config": require("../style/all.json"),
|
||||
"noInlineConfig": true,
|
||||
"resultVersion": 0
|
||||
};
|
||||
markdownlint(options, function callback(err, actualResult) {
|
||||
t.falsy(err);
|
||||
const actualResult = await markdownlint.promises.markdownlint(options);
|
||||
const expectedResult = {
|
||||
"./test/break-all-the-rules.md": {
|
||||
"MD001": [ 3 ],
|
||||
|
@ -476,32 +475,29 @@ test("styleAll", (t) => new Promise((resolve) => {
|
|||
"MD042": [ 81 ],
|
||||
"MD045": [ 85 ],
|
||||
"MD046": [ 49, 73, 77 ],
|
||||
"MD047": [ 130 ],
|
||||
"MD047": [ 134 ],
|
||||
"MD048": [ 77 ],
|
||||
"MD049": [ 90 ],
|
||||
"MD050": [ 94 ],
|
||||
"MD051": [ 96 ],
|
||||
"MD052": [ 98 ],
|
||||
"MD053": [ 100 ],
|
||||
"MD055": [ 110 ]
|
||||
"MD055": [ 110 ],
|
||||
"MD056": [ 114 ]
|
||||
}
|
||||
};
|
||||
// @ts-ignore
|
||||
t.deepEqual(actualResult, expectedResult, "Undetected issues.");
|
||||
resolve();
|
||||
});
|
||||
}));
|
||||
});
|
||||
|
||||
test("styleRelaxed", (t) => new Promise((resolve) => {
|
||||
t.plan(2);
|
||||
test("styleRelaxed", async(t) => {
|
||||
t.plan(1);
|
||||
const options = {
|
||||
"files": [ "./test/break-all-the-rules.md" ],
|
||||
"config": require("../style/relaxed.json"),
|
||||
"noInlineConfig": true,
|
||||
"resultVersion": 0
|
||||
};
|
||||
markdownlint(options, function callback(err, actualResult) {
|
||||
t.falsy(err);
|
||||
const actualResult = await markdownlint.promises.markdownlint(options);
|
||||
const expectedResult = {
|
||||
"./test/break-all-the-rules.md": {
|
||||
"MD001": [ 3 ],
|
||||
|
@ -526,21 +522,19 @@ test("styleRelaxed", (t) => new Promise((resolve) => {
|
|||
"MD042": [ 81 ],
|
||||
"MD045": [ 85 ],
|
||||
"MD046": [ 49, 73, 77 ],
|
||||
"MD047": [ 130 ],
|
||||
"MD047": [ 134 ],
|
||||
"MD048": [ 77 ],
|
||||
"MD049": [ 90 ],
|
||||
"MD050": [ 94 ],
|
||||
"MD051": [ 96 ],
|
||||
"MD052": [ 98 ],
|
||||
"MD053": [ 100 ],
|
||||
"MD055": [ 110 ]
|
||||
"MD055": [ 110 ],
|
||||
"MD056": [ 114 ]
|
||||
}
|
||||
};
|
||||
// @ts-ignore
|
||||
t.deepEqual(actualResult, expectedResult, "Undetected issues.");
|
||||
resolve();
|
||||
});
|
||||
}));
|
||||
});
|
||||
|
||||
test("nullFrontMatter", (t) => new Promise((resolve) => {
|
||||
t.plan(2);
|
||||
|
@ -843,7 +837,7 @@ test("customFileSystemAsync", (t) => new Promise((resolve) => {
|
|||
}));
|
||||
|
||||
test("readme", async(t) => {
|
||||
t.plan(124);
|
||||
t.plan(126);
|
||||
const tagToRules = {};
|
||||
for (const rule of rules) {
|
||||
for (const tag of rule.tags) {
|
||||
|
@ -1038,7 +1032,7 @@ test("validateConfigExampleJson", async(t) => {
|
|||
});
|
||||
|
||||
test("allBuiltInRulesHaveValidUrl", (t) => {
|
||||
t.plan(147);
|
||||
t.plan(150);
|
||||
for (const rule of rules) {
|
||||
// @ts-ignore
|
||||
t.truthy(rule.information);
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
|Pattern|Description|
|
||||
|-------------|-----------------|
|
||||
|`(?:\["'\](?<1>\[^"'\]*)["']|(?<1>\S+))`|{MD011}|
|
||||
|`(?:\["'\](?<1>\[^"'\]*)["']|(?<1>\S+))`|{MD011}{MD056}|
|
||||
|
||||
|Pattern|Description|
|
||||
|-------------|-----------------|
|
||||
|
|
|
@ -10,6 +10,7 @@ Generated by [AVA](https://avajs.dev).
|
|||
|
||||
`test-repos/dotnet-docs/docs/core/compatibility/6.0.md: 74: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe]␊
|
||||
test-repos/dotnet-docs/docs/core/compatibility/6.0.md: 77: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe]␊
|
||||
test-repos/dotnet-docs/docs/core/compatibility/cryptography/5.0/instantiating-default-implementations-of-cryptographic-abstractions-not-supported.md: 88: MD056/table-column-count Table column count [Expected: 3; Actual: 2; Too few cells, row will be missing data]␊
|
||||
test-repos/dotnet-docs/docs/core/compatibility/globalization/5.0/listseparator-value-change.md: 19: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: no_leading_or_trailing; Missing leading pipe]␊
|
||||
test-repos/dotnet-docs/docs/core/compatibility/globalization/5.0/listseparator-value-change.md: 19: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: no_leading_or_trailing; Missing trailing pipe]␊
|
||||
test-repos/dotnet-docs/docs/core/dependency-loading/loading-managed.md: 23: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: trailing_only; Missing leading pipe]␊
|
||||
|
@ -18,6 +19,8 @@ Generated by [AVA](https://avajs.dev).
|
|||
test-repos/dotnet-docs/docs/core/dependency-loading/loading-managed.md: 29: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: trailing_only; Missing leading pipe]␊
|
||||
test-repos/dotnet-docs/docs/core/dependency-loading/loading-managed.md: 30: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: trailing_only; Missing leading pipe]␊
|
||||
test-repos/dotnet-docs/docs/core/diagnostics/collect-dumps-crash.md: 19: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe]␊
|
||||
test-repos/dotnet-docs/docs/core/diagnostics/collect-dumps-crash.md: 19: MD056/table-column-count Table column count [Expected: 3; Actual: 2; Too few cells, row will be missing data]␊
|
||||
test-repos/dotnet-docs/docs/core/diagnostics/collect-dumps-crash.md: 21: MD056/table-column-count Table column count [Expected: 3; Actual: 2; Too few cells, row will be missing data]␊
|
||||
test-repos/dotnet-docs/docs/core/diagnostics/dotnet-dump.md: 151: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe]␊
|
||||
test-repos/dotnet-docs/docs/core/diagnostics/dotnet-dump.md: 152: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe]␊
|
||||
test-repos/dotnet-docs/docs/core/diagnostics/dotnet-dump.md: 153: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe]␊
|
||||
|
@ -210,6 +213,10 @@ Generated by [AVA](https://avajs.dev).
|
|||
test-repos/dotnet-docs/docs/core/diagnostics/sos-debugging-extension.md: 231: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe]␊
|
||||
test-repos/dotnet-docs/docs/core/diagnostics/sos-debugging-extension.md: 232: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe]␊
|
||||
test-repos/dotnet-docs/docs/core/diagnostics/sos-debugging-extension.md: 233: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe]␊
|
||||
test-repos/dotnet-docs/docs/core/extensions/globalization.md: 106: MD056/table-column-count Table column count [Expected: 3; Actual: 2; Too few cells, row will be missing data]␊
|
||||
test-repos/dotnet-docs/docs/core/project-sdk/overview.md: 21: MD056/table-column-count Table column count [Expected: 3; Actual: 2; Too few cells, row will be missing data]␊
|
||||
test-repos/dotnet-docs/docs/core/project-sdk/overview.md: 22: MD056/table-column-count Table column count [Expected: 3; Actual: 2; Too few cells, row will be missing data]␊
|
||||
test-repos/dotnet-docs/docs/core/project-sdk/overview.md: 23: MD056/table-column-count Table column count [Expected: 3; Actual: 2; Too few cells, row will be missing data]␊
|
||||
test-repos/dotnet-docs/docs/core/runtime-config/wpf.md: 18: MD055/table-pipe-style Table pipe style [Expected: leading_only; Actual: leading_and_trailing; Unexpected trailing pipe]␊
|
||||
test-repos/dotnet-docs/docs/core/runtime-config/wpf.md: 19: MD055/table-pipe-style Table pipe style [Expected: leading_only; Actual: leading_and_trailing; Unexpected trailing pipe]␊
|
||||
test-repos/dotnet-docs/docs/core/runtime-config/wpf.md: 20: MD055/table-pipe-style Table pipe style [Expected: leading_only; Actual: leading_and_trailing; Unexpected trailing pipe]␊
|
||||
|
@ -217,6 +224,8 @@ Generated by [AVA](https://avajs.dev).
|
|||
test-repos/dotnet-docs/docs/core/runtime-discovery/troubleshoot-app-launch.md: 144: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: no_leading_or_trailing; Missing trailing pipe]␊
|
||||
test-repos/dotnet-docs/docs/core/runtime-discovery/troubleshoot-app-launch.md: 151: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: no_leading_or_trailing; Missing leading pipe]␊
|
||||
test-repos/dotnet-docs/docs/core/runtime-discovery/troubleshoot-app-launch.md: 151: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: no_leading_or_trailing; Missing trailing pipe]␊
|
||||
test-repos/dotnet-docs/docs/core/runtime-discovery/troubleshoot-app-launch.md: 144: MD056/table-column-count Table column count [Expected: 2; Actual: 1; Too few cells, row will be missing data]␊
|
||||
test-repos/dotnet-docs/docs/core/runtime-discovery/troubleshoot-app-launch.md: 151: MD056/table-column-count Table column count [Expected: 2; Actual: 1; Too few cells, row will be missing data]␊
|
||||
test-repos/dotnet-docs/docs/core/tools/dotnet.md: 183: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: no_leading_or_trailing; Missing leading pipe]␊
|
||||
test-repos/dotnet-docs/docs/core/tools/dotnet.md: 183: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: no_leading_or_trailing; Missing trailing pipe]␊
|
||||
test-repos/dotnet-docs/docs/core/tools/dotnet.md: 184: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: no_leading_or_trailing; Missing leading pipe]␊
|
||||
|
@ -290,6 +299,7 @@ Generated by [AVA](https://avajs.dev).
|
|||
test-repos/dotnet-docs/docs/csharp/linq/query-a-collection-of-objects.md: 85: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: trailing_only; Missing leading pipe]␊
|
||||
test-repos/dotnet-docs/docs/csharp/linq/query-a-collection-of-objects.md: 107: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: trailing_only; Missing leading pipe]␊
|
||||
test-repos/dotnet-docs/docs/csharp/programming-guide/concepts/index.md: 14: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: trailing_only; Missing leading pipe]␊
|
||||
test-repos/dotnet-docs/docs/csharp/programming-guide/concepts/index.md: 14: MD056/table-column-count Table column count [Expected: 2; Actual: 1; Too few cells, row will be missing data]␊
|
||||
test-repos/dotnet-docs/docs/csharp/programming-guide/strings/index.md: 82: MD055/table-pipe-style Table pipe style [Expected: trailing_only; Actual: leading_and_trailing; Unexpected leading pipe]␊
|
||||
test-repos/dotnet-docs/docs/csharp/programming-guide/strings/index.md: 83: MD055/table-pipe-style Table pipe style [Expected: trailing_only; Actual: leading_and_trailing; Unexpected leading pipe]␊
|
||||
test-repos/dotnet-docs/docs/csharp/programming-guide/strings/index.md: 84: MD055/table-pipe-style Table pipe style [Expected: trailing_only; Actual: leading_and_trailing; Unexpected leading pipe]␊
|
||||
|
@ -315,11 +325,46 @@ Generated by [AVA](https://avajs.dev).
|
|||
test-repos/dotnet-docs/docs/framework/additional-apis/pos-for-net/poscommon-class.md: 59: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: trailing_only; Missing leading pipe]␊
|
||||
test-repos/dotnet-docs/docs/framework/additional-apis/pos-for-net/poscommon-class.md: 64: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe]␊
|
||||
test-repos/dotnet-docs/docs/framework/additional-apis/pos-for-net/poscommon-class.md: 65: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: trailing_only; Missing leading pipe]␊
|
||||
test-repos/dotnet-docs/docs/framework/additional-apis/pos-for-net/poscommon-class.md: 46: MD056/table-column-count Table column count [Expected: 3; Actual: 1; Too few cells, row will be missing data]␊
|
||||
test-repos/dotnet-docs/docs/framework/additional-apis/pos-for-net/poscommon-class.md: 50: MD056/table-column-count Table column count [Expected: 3; Actual: 1; Too few cells, row will be missing data]␊
|
||||
test-repos/dotnet-docs/docs/framework/additional-apis/pos-for-net/poscommon-class.md: 54: MD056/table-column-count Table column count [Expected: 3; Actual: 1; Too few cells, row will be missing data]␊
|
||||
test-repos/dotnet-docs/docs/framework/additional-apis/pos-for-net/poscommon-class.md: 59: MD056/table-column-count Table column count [Expected: 3; Actual: 1; Too few cells, row will be missing data]␊
|
||||
test-repos/dotnet-docs/docs/framework/additional-apis/pos-for-net/poscommon-class.md: 65: MD056/table-column-count Table column count [Expected: 3; Actual: 1; Too few cells, row will be missing data]␊
|
||||
test-repos/dotnet-docs/docs/framework/additional-apis/pos-for-net/supported-device-classes.md: 33: MD056/table-column-count Table column count [Expected: 4; Actual: 3; Too few cells, row will be missing data]␊
|
||||
test-repos/dotnet-docs/docs/framework/additional-apis/pos-for-net/supported-device-classes.md: 34: MD056/table-column-count Table column count [Expected: 4; Actual: 3; Too few cells, row will be missing data]␊
|
||||
test-repos/dotnet-docs/docs/framework/additional-apis/pos-for-net/supported-device-classes.md: 35: MD056/table-column-count Table column count [Expected: 4; Actual: 3; Too few cells, row will be missing data]␊
|
||||
test-repos/dotnet-docs/docs/framework/additional-apis/pos-for-net/supported-device-classes.md: 36: MD056/table-column-count Table column count [Expected: 4; Actual: 3; Too few cells, row will be missing data]␊
|
||||
test-repos/dotnet-docs/docs/framework/additional-apis/pos-for-net/supported-device-classes.md: 37: MD056/table-column-count Table column count [Expected: 4; Actual: 3; Too few cells, row will be missing data]␊
|
||||
test-repos/dotnet-docs/docs/framework/additional-apis/pos-for-net/supported-device-classes.md: 38: MD056/table-column-count Table column count [Expected: 4; Actual: 3; Too few cells, row will be missing data]␊
|
||||
test-repos/dotnet-docs/docs/framework/additional-apis/pos-for-net/supported-device-classes.md: 40: MD056/table-column-count Table column count [Expected: 4; Actual: 3; Too few cells, row will be missing data]␊
|
||||
test-repos/dotnet-docs/docs/framework/additional-apis/pos-for-net/supported-device-classes.md: 42: MD056/table-column-count Table column count [Expected: 4; Actual: 3; Too few cells, row will be missing data]␊
|
||||
test-repos/dotnet-docs/docs/framework/additional-apis/pos-for-net/supported-device-classes.md: 43: MD056/table-column-count Table column count [Expected: 4; Actual: 3; Too few cells, row will be missing data]␊
|
||||
test-repos/dotnet-docs/docs/framework/additional-apis/pos-for-net/supported-device-classes.md: 44: MD056/table-column-count Table column count [Expected: 4; Actual: 3; Too few cells, row will be missing data]␊
|
||||
test-repos/dotnet-docs/docs/framework/additional-apis/pos-for-net/supported-device-classes.md: 45: MD056/table-column-count Table column count [Expected: 4; Actual: 3; Too few cells, row will be missing data]␊
|
||||
test-repos/dotnet-docs/docs/framework/additional-apis/pos-for-net/supported-device-classes.md: 46: MD056/table-column-count Table column count [Expected: 4; Actual: 3; Too few cells, row will be missing data]␊
|
||||
test-repos/dotnet-docs/docs/framework/additional-apis/pos-for-net/supported-device-classes.md: 47: MD056/table-column-count Table column count [Expected: 4; Actual: 3; Too few cells, row will be missing data]␊
|
||||
test-repos/dotnet-docs/docs/framework/additional-apis/pos-for-net/supported-device-classes.md: 48: MD056/table-column-count Table column count [Expected: 4; Actual: 3; Too few cells, row will be missing data]␊
|
||||
test-repos/dotnet-docs/docs/framework/additional-apis/pos-for-net/supported-device-classes.md: 49: MD056/table-column-count Table column count [Expected: 4; Actual: 3; Too few cells, row will be missing data]␊
|
||||
test-repos/dotnet-docs/docs/framework/additional-apis/pos-for-net/supported-device-classes.md: 50: MD056/table-column-count Table column count [Expected: 4; Actual: 3; Too few cells, row will be missing data]␊
|
||||
test-repos/dotnet-docs/docs/framework/additional-apis/pos-for-net/supported-device-classes.md: 51: MD056/table-column-count Table column count [Expected: 4; Actual: 3; Too few cells, row will be missing data]␊
|
||||
test-repos/dotnet-docs/docs/framework/additional-apis/pos-for-net/supported-device-classes.md: 52: MD056/table-column-count Table column count [Expected: 4; Actual: 3; Too few cells, row will be missing data]␊
|
||||
test-repos/dotnet-docs/docs/framework/additional-apis/pos-for-net/supported-device-classes.md: 54: MD056/table-column-count Table column count [Expected: 4; Actual: 3; Too few cells, row will be missing data]␊
|
||||
test-repos/dotnet-docs/docs/framework/additional-apis/pos-for-net/supported-device-classes.md: 55: MD056/table-column-count Table column count [Expected: 4; Actual: 3; Too few cells, row will be missing data]␊
|
||||
test-repos/dotnet-docs/docs/framework/additional-apis/pos-for-net/supported-device-classes.md: 58: MD056/table-column-count Table column count [Expected: 4; Actual: 3; Too few cells, row will be missing data]␊
|
||||
test-repos/dotnet-docs/docs/framework/additional-apis/pos-for-net/supported-device-classes.md: 60: MD056/table-column-count Table column count [Expected: 4; Actual: 3; Too few cells, row will be missing data]␊
|
||||
test-repos/dotnet-docs/docs/framework/additional-apis/pos-for-net/supported-device-classes.md: 62: MD056/table-column-count Table column count [Expected: 4; Actual: 3; Too few cells, row will be missing data]␊
|
||||
test-repos/dotnet-docs/docs/framework/additional-apis/pos-for-net/supported-device-classes.md: 64: MD056/table-column-count Table column count [Expected: 4; Actual: 3; Too few cells, row will be missing data]␊
|
||||
test-repos/dotnet-docs/docs/framework/additional-apis/pos-for-net/supported-device-classes.md: 66: MD056/table-column-count Table column count [Expected: 4; Actual: 3; Too few cells, row will be missing data]␊
|
||||
test-repos/dotnet-docs/docs/framework/additional-apis/pos-for-net/supported-device-classes.md: 67: MD056/table-column-count Table column count [Expected: 4; Actual: 3; Too few cells, row will be missing data]␊
|
||||
test-repos/dotnet-docs/docs/framework/additional-apis/pos-for-net/supported-device-classes.md: 68: MD056/table-column-count Table column count [Expected: 4; Actual: 3; Too few cells, row will be missing data]␊
|
||||
test-repos/dotnet-docs/docs/framework/configure-apps/file-schema/runtime/appcontextswitchoverrides-element.md: 84: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: trailing_only; Missing leading pipe]␊
|
||||
test-repos/dotnet-docs/docs/framework/data/adonet/ef/language-reference/supported-and-unsupported-linq-methods-linq-to-entities.md: 139: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: trailing_only; Missing leading pipe]␊
|
||||
test-repos/dotnet-docs/docs/framework/get-started/index.md: 77: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe]␊
|
||||
test-repos/dotnet-docs/docs/framework/tools/al-exe-assembly-linker.md: 50: MD056/table-column-count Table column count [Expected: 2; Actual: 3; Too many cells, extra data will be missing]␊
|
||||
test-repos/dotnet-docs/docs/framework/tools/caspol-exe-code-access-security-policy-tool.md: 55: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe]␊
|
||||
test-repos/dotnet-docs/docs/framework/tools/mage-exe-manifest-generation-and-editing-tool.md: 78: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: trailing_only; Missing leading pipe]␊
|
||||
test-repos/dotnet-docs/docs/framework/tools/sn-exe-strong-name-tool.md: 50: MD056/table-column-count Table column count [Expected: 2; Actual: 3; Too many cells, extra data will be missing]␊
|
||||
test-repos/dotnet-docs/docs/framework/tools/sn-exe-strong-name-tool.md: 54: MD056/table-column-count Table column count [Expected: 2; Actual: 3; Too many cells, extra data will be missing]␊
|
||||
test-repos/dotnet-docs/docs/framework/unmanaged-api/wmi/beginenumeration.md: 71: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: trailing_only; Missing leading pipe]␊
|
||||
test-repos/dotnet-docs/docs/framework/unmanaged-api/wmi/beginenumeration.md: 78: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: trailing_only; Missing leading pipe]␊
|
||||
test-repos/dotnet-docs/docs/framework/unmanaged-api/wmi/beginenumeration.md: 88: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: trailing_only; Missing leading pipe]␊
|
||||
|
@ -333,7 +378,11 @@ Generated by [AVA](https://avajs.dev).
|
|||
test-repos/dotnet-docs/docs/framework/unmanaged-api/wmi/putmethod.md: 64: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe]␊
|
||||
test-repos/dotnet-docs/docs/framework/unmanaged-api/wmi/qualifierset-beginenumeration.md: 67: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe]␊
|
||||
test-repos/dotnet-docs/docs/framework/unmanaged-api/wmi/qualifierset-getnames.md: 50: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe]␊
|
||||
test-repos/dotnet-docs/docs/framework/unmanaged-api/wmi/spawnderivedclass.md: 56: MD056/table-column-count Table column count [Expected: 3; Actual: 2; Too few cells, row will be missing data]␊
|
||||
test-repos/dotnet-docs/docs/framework/wcf/feature-details/working-with-certificates.md: 144: MD056/table-column-count Table column count [Expected: 2; Actual: 1; Too few cells, row will be missing data]␊
|
||||
test-repos/dotnet-docs/docs/framework/wcf/feature-details/working-with-certificates.md: 145: MD056/table-column-count Table column count [Expected: 2; Actual: 1; Too few cells, row will be missing data]␊
|
||||
test-repos/dotnet-docs/docs/fsharp/language-reference/caller-information.md: 14: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe]␊
|
||||
test-repos/dotnet-docs/docs/fsharp/language-reference/compiler-options.md: 23: MD056/table-column-count Table column count [Expected: 2; Actual: 3; Too many cells, extra data will be missing]␊
|
||||
test-repos/dotnet-docs/docs/fsharp/language-reference/keyword-reference.md: 200: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: no_leading_or_trailing; Missing leading pipe]␊
|
||||
test-repos/dotnet-docs/docs/fsharp/language-reference/keyword-reference.md: 200: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: no_leading_or_trailing; Missing trailing pipe]␊
|
||||
test-repos/dotnet-docs/docs/fsharp/language-reference/keyword-reference.md: 201: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: no_leading_or_trailing; Missing leading pipe]␊
|
||||
|
@ -356,9 +405,27 @@ Generated by [AVA](https://avajs.dev).
|
|||
test-repos/dotnet-docs/docs/fsharp/language-reference/keyword-reference.md: 209: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: no_leading_or_trailing; Missing trailing pipe]␊
|
||||
test-repos/dotnet-docs/docs/fsharp/language-reference/keyword-reference.md: 210: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: no_leading_or_trailing; Missing leading pipe]␊
|
||||
test-repos/dotnet-docs/docs/fsharp/language-reference/keyword-reference.md: 210: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: no_leading_or_trailing; Missing trailing pipe]␊
|
||||
test-repos/dotnet-docs/docs/fsharp/language-reference/keyword-reference.md: 137: MD056/table-column-count Table column count [Expected: 3; Actual: 5; Too many cells, extra data will be missing]␊
|
||||
test-repos/dotnet-docs/docs/fsharp/language-reference/plaintext-formatting.md: 104: MD056/table-column-count Table column count [Expected: 3; Actual: 2; Too few cells, row will be missing data]␊
|
||||
test-repos/dotnet-docs/docs/fsharp/style-guide/component-design-guidelines.md: 69: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe]␊
|
||||
test-repos/dotnet-docs/docs/fsharp/style-guide/component-design-guidelines.md: 81: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe]␊
|
||||
test-repos/dotnet-docs/docs/fsharp/style-guide/component-design-guidelines.md: 71: MD056/table-column-count Table column count [Expected: 5; Actual: 7; Too many cells, extra data will be missing]␊
|
||||
test-repos/dotnet-docs/docs/fsharp/style-guide/component-design-guidelines.md: 79: MD056/table-column-count Table column count [Expected: 5; Actual: 4; Too few cells, row will be missing data]␊
|
||||
test-repos/dotnet-docs/docs/fundamentals/apicompat/diagnostic-ids.md: 44: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe]␊
|
||||
test-repos/dotnet-docs/docs/fundamentals/code-analysis/includes/excluded-symbol-names.md: 20: MD056/table-column-count Table column count [Expected: 2; Actual: 3; Too many cells, extra data will be missing]␊
|
||||
test-repos/dotnet-docs/docs/fundamentals/code-analysis/includes/excluded-symbol-names.md: 22: MD056/table-column-count Table column count [Expected: 2; Actual: 3; Too many cells, extra data will be missing]␊
|
||||
test-repos/dotnet-docs/docs/fundamentals/code-analysis/includes/excluded-type-names-with-derived-types.md: 19: MD056/table-column-count Table column count [Expected: 2; Actual: 3; Too many cells, extra data will be missing]␊
|
||||
test-repos/dotnet-docs/docs/fundamentals/code-analysis/includes/excluded-type-names-with-derived-types.md: 21: MD056/table-column-count Table column count [Expected: 2; Actual: 3; Too many cells, extra data will be missing]␊
|
||||
test-repos/dotnet-docs/docs/fundamentals/code-analysis/quality-rules/ca1008.md: 84: MD056/table-column-count Table column count [Expected: 2; Actual: 3; Too many cells, extra data will be missing]␊
|
||||
test-repos/dotnet-docs/docs/fundamentals/code-analysis/quality-rules/ca1031.md: 74: MD056/table-column-count Table column count [Expected: 2; Actual: 3; Too many cells, extra data will be missing]␊
|
||||
test-repos/dotnet-docs/docs/fundamentals/code-analysis/quality-rules/ca1031.md: 76: MD056/table-column-count Table column count [Expected: 2; Actual: 3; Too many cells, extra data will be missing]␊
|
||||
test-repos/dotnet-docs/docs/fundamentals/code-analysis/quality-rules/ca1062.md: 114: MD056/table-column-count Table column count [Expected: 2; Actual: 3; Too many cells, extra data will be missing]␊
|
||||
test-repos/dotnet-docs/docs/fundamentals/code-analysis/quality-rules/ca1062.md: 116: MD056/table-column-count Table column count [Expected: 2; Actual: 3; Too many cells, extra data will be missing]␊
|
||||
test-repos/dotnet-docs/docs/fundamentals/code-analysis/quality-rules/ca1501.md: 113: MD056/table-column-count Table column count [Expected: 2; Actual: 3; Too many cells, extra data will be missing]␊
|
||||
test-repos/dotnet-docs/docs/fundamentals/code-analysis/quality-rules/ca1501.md: 115: MD056/table-column-count Table column count [Expected: 2; Actual: 3; Too many cells, extra data will be missing]␊
|
||||
test-repos/dotnet-docs/docs/fundamentals/code-analysis/quality-rules/ca1710.md: 145: MD056/table-column-count Table column count [Expected: 2; Actual: 3; Too many cells, extra data will be missing]␊
|
||||
test-repos/dotnet-docs/docs/fundamentals/code-analysis/quality-rules/ca2241.md: 71: MD056/table-column-count Table column count [Expected: 2; Actual: 3; Too many cells, extra data will be missing]␊
|
||||
test-repos/dotnet-docs/docs/fundamentals/code-analysis/quality-rules/ca2241.md: 73: MD056/table-column-count Table column count [Expected: 2; Actual: 3; Too many cells, extra data will be missing]␊
|
||||
test-repos/dotnet-docs/docs/fundamentals/diagnostics/runtime-loader-binder-events.md: 79: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe]␊
|
||||
test-repos/dotnet-docs/docs/fundamentals/diagnostics/runtime-loader-binder-events.md: 81: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe]␊
|
||||
test-repos/dotnet-docs/docs/fundamentals/diagnostics/runtime-loader-binder-events.md: 144: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe]␊
|
||||
|
@ -374,8 +441,13 @@ Generated by [AVA](https://avajs.dev).
|
|||
test-repos/dotnet-docs/docs/fundamentals/diagnostics/runtime-thread-events.md: 282: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe]␊
|
||||
test-repos/dotnet-docs/docs/fundamentals/diagnostics/runtime-thread-events.md: 303: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe]␊
|
||||
test-repos/dotnet-docs/docs/fundamentals/diagnostics/runtime-thread-events.md: 326: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe]␊
|
||||
test-repos/dotnet-docs/docs/fundamentals/diagnostics/runtime-type-events.md: 18: MD056/table-column-count Table column count [Expected: 3; Actual: 2; Too few cells, row will be missing data]␊
|
||||
test-repos/dotnet-docs/docs/fundamentals/runtime-libraries/system-text-encoding.md: 87: MD056/table-column-count Table column count [Expected: 6; Actual: 7; Too many cells, extra data will be missing]␊
|
||||
test-repos/dotnet-docs/docs/fundamentals/syslib-diagnostics/syslib0007.md: 28: MD056/table-column-count Table column count [Expected: 3; Actual: 2; Too few cells, row will be missing data]␊
|
||||
test-repos/dotnet-docs/docs/iot/tutorials/adc.md: 57: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe]␊
|
||||
test-repos/dotnet-docs/docs/iot/tutorials/adc.md: 58: MD056/table-column-count Table column count [Expected: 2; Actual: 1; Too few cells, row will be missing data]␊
|
||||
test-repos/dotnet-docs/docs/iot/tutorials/lcd-display.md: 50: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe]␊
|
||||
test-repos/dotnet-docs/docs/iot/tutorials/lcd-display.md: 51: MD056/table-column-count Table column count [Expected: 2; Actual: 1; Too few cells, row will be missing data]␊
|
||||
test-repos/dotnet-docs/docs/machine-learning/how-to-guides/explain-machine-learning-model-permutation-feature-importance-ml-net.md: 27: MD055/table-pipe-style Table pipe style [Expected: leading_only; Actual: leading_and_trailing; Unexpected trailing pipe]␊
|
||||
test-repos/dotnet-docs/docs/machine-learning/how-to-guides/explain-machine-learning-model-permutation-feature-importance-ml-net.md: 156: MD055/table-pipe-style Table pipe style [Expected: leading_only; Actual: leading_and_trailing; Unexpected trailing pipe]␊
|
||||
test-repos/dotnet-docs/docs/machine-learning/how-to-guides/explain-machine-learning-model-permutation-feature-importance-ml-net.md: 157: MD055/table-pipe-style Table pipe style [Expected: leading_only; Actual: leading_and_trailing; Unexpected trailing pipe]␊
|
||||
|
@ -405,12 +477,14 @@ Generated by [AVA](https://avajs.dev).
|
|||
test-repos/dotnet-docs/docs/machine-learning/how-to-guides/prepare-data-ml-net.md: 337: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe]␊
|
||||
test-repos/dotnet-docs/docs/machine-learning/how-to-guides/prepare-data-ml-net.md: 338: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe]␊
|
||||
test-repos/dotnet-docs/docs/machine-learning/resources/metrics.md: 76: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe]␊
|
||||
test-repos/dotnet-docs/docs/machine-learning/resources/transforms.md: 125: MD056/table-column-count Table column count [Expected: 3; Actual: 2; Too few cells, row will be missing data]␊
|
||||
test-repos/dotnet-docs/docs/machine-learning/tutorials/sentiment-analysis-model-builder.md: 53: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: no_leading_or_trailing; Missing leading pipe]␊
|
||||
test-repos/dotnet-docs/docs/machine-learning/tutorials/sentiment-analysis-model-builder.md: 53: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: no_leading_or_trailing; Missing trailing pipe]␊
|
||||
test-repos/dotnet-docs/docs/machine-learning/tutorials/sentiment-analysis-model-builder.md: 54: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: no_leading_or_trailing; Missing leading pipe]␊
|
||||
test-repos/dotnet-docs/docs/machine-learning/tutorials/sentiment-analysis-model-builder.md: 54: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: no_leading_or_trailing; Missing trailing pipe]␊
|
||||
test-repos/dotnet-docs/docs/machine-learning/tutorials/sentiment-analysis-model-builder.md: 55: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: no_leading_or_trailing; Missing leading pipe]␊
|
||||
test-repos/dotnet-docs/docs/machine-learning/tutorials/sentiment-analysis-model-builder.md: 55: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: no_leading_or_trailing; Missing trailing pipe]␊
|
||||
test-repos/dotnet-docs/docs/standard/base-types/regular-expression-example-scanning-for-hrefs.md: 45: MD056/table-column-count Table column count [Expected: 2; Actual: 3; Too many cells, extra data will be missing]␊
|
||||
test-repos/dotnet-docs/docs/standard/base-types/regular-expression-language-quick-reference.md: 108: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: no_leading_or_trailing; Missing leading pipe]␊
|
||||
test-repos/dotnet-docs/docs/standard/base-types/regular-expression-language-quick-reference.md: 108: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: no_leading_or_trailing; Missing trailing pipe]␊
|
||||
test-repos/dotnet-docs/docs/standard/base-types/regular-expression-language-quick-reference.md: 109: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: no_leading_or_trailing; Missing leading pipe]␊
|
||||
|
@ -419,19 +493,27 @@ Generated by [AVA](https://avajs.dev).
|
|||
test-repos/dotnet-docs/docs/standard/base-types/regular-expression-language-quick-reference.md: 110: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: no_leading_or_trailing; Missing trailing pipe]␊
|
||||
test-repos/dotnet-docs/docs/standard/base-types/regular-expression-language-quick-reference.md: 111: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: no_leading_or_trailing; Missing leading pipe]␊
|
||||
test-repos/dotnet-docs/docs/standard/base-types/regular-expression-language-quick-reference.md: 111: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: no_leading_or_trailing; Missing trailing pipe]␊
|
||||
test-repos/dotnet-docs/docs/standard/base-types/regular-expression-language-quick-reference.md: 99: MD056/table-column-count Table column count [Expected: 4; Actual: 5; Too many cells, extra data will be missing]␊
|
||||
test-repos/dotnet-docs/docs/standard/data/sqlite/connection-strings.md: 69: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe]␊
|
||||
test-repos/dotnet-docs/docs/standard/data/sqlite/connection-strings.md: 71: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe]␊
|
||||
test-repos/dotnet-docs/docs/standard/data/sqlite/connection-strings.md: 72: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe]␊
|
||||
test-repos/dotnet-docs/docs/standard/exceptions/exception-class-and-properties.md: 25: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe]␊
|
||||
test-repos/dotnet-docs/docs/standard/generics/math.md: 142: MD056/table-column-count Table column count [Expected: 2; Actual: 3; Too many cells, extra data will be missing]␊
|
||||
test-repos/dotnet-docs/docs/standard/io/buffers.md: 55: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: trailing_only; Missing leading pipe]␊
|
||||
test-repos/dotnet-docs/docs/standard/language-independence.md: 58: MD055/table-pipe-style Table pipe style [Expected: no_leading_or_trailing; Actual: trailing_only; Unexpected trailing pipe]␊
|
||||
test-repos/dotnet-docs/docs/standard/language-independence.md: 59: MD055/table-pipe-style Table pipe style [Expected: no_leading_or_trailing; Actual: leading_only; Unexpected leading pipe]␊
|
||||
test-repos/dotnet-docs/docs/standard/numerics.md: 72: MD056/table-column-count Table column count [Expected: 5; Actual: 4; Too few cells, row will be missing data]␊
|
||||
test-repos/dotnet-docs/docs/standard/numerics.md: 73: MD056/table-column-count Table column count [Expected: 5; Actual: 4; Too few cells, row will be missing data]␊
|
||||
test-repos/dotnet-docs/docs/standard/numerics.md: 74: MD056/table-column-count Table column count [Expected: 5; Actual: 4; Too few cells, row will be missing data]␊
|
||||
test-repos/dotnet-docs/docs/standard/serialization/system-text-json/migrate-from-newtonsoft.md: 88: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: no_leading_or_trailing; Missing leading pipe]␊
|
||||
test-repos/dotnet-docs/docs/standard/serialization/system-text-json/migrate-from-newtonsoft.md: 88: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: no_leading_or_trailing; Missing trailing pipe]␊
|
||||
test-repos/dotnet-docs/docs/standard/serialization/system-text-json/migrate-from-newtonsoft.md: 137: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: no_leading_or_trailing; Missing leading pipe]␊
|
||||
test-repos/dotnet-docs/docs/standard/serialization/system-text-json/migrate-from-newtonsoft.md: 137: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: no_leading_or_trailing; Missing trailing pipe]␊
|
||||
test-repos/dotnet-docs/docs/standard/serialization/system-text-json/migrate-from-newtonsoft.md: 186: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: no_leading_or_trailing; Missing leading pipe]␊
|
||||
test-repos/dotnet-docs/docs/standard/serialization/system-text-json/migrate-from-newtonsoft.md: 186: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: no_leading_or_trailing; Missing trailing pipe]␊
|
||||
test-repos/dotnet-docs/docs/standard/serialization/system-text-json/migrate-from-newtonsoft.md: 88: MD056/table-column-count Table column count [Expected: 2; Actual: 1; Too few cells, row will be missing data]␊
|
||||
test-repos/dotnet-docs/docs/standard/serialization/system-text-json/migrate-from-newtonsoft.md: 137: MD056/table-column-count Table column count [Expected: 2; Actual: 1; Too few cells, row will be missing data]␊
|
||||
test-repos/dotnet-docs/docs/standard/serialization/system-text-json/migrate-from-newtonsoft.md: 186: MD056/table-column-count Table column count [Expected: 2; Actual: 1; Too few cells, row will be missing data]␊
|
||||
test-repos/dotnet-docs/docs/visual-basic/language-reference/statements/end-keyword-statement.md: 61: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe]␊
|
||||
test-repos/dotnet-docs/docs/visual-basic/language-reference/statements/end-keyword-statement.md: 62: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe]␊
|
||||
test-repos/dotnet-docs/docs/visual-basic/language-reference/statements/end-keyword-statement.md: 63: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe]␊
|
||||
|
|
Binary file not shown.
|
@ -8,4 +8,6 @@ Generated by [AVA](https://avajs.dev).
|
|||
|
||||
> Expected linting violations
|
||||
|
||||
''
|
||||
`test-repos/mdn-content/files/en-us/web/css/@supports/index.md: 81: MD056/table-column-count Table column count [Expected: 2; Actual: 1; Too few cells, row will be missing data]␊
|
||||
test-repos/mdn-content/files/en-us/web/css/@supports/index.md: 87: MD056/table-column-count Table column count [Expected: 2; Actual: 1; Too few cells, row will be missing data]␊
|
||||
test-repos/mdn-content/files/en-us/web/css/@supports/index.md: 91: MD056/table-column-count Table column count [Expected: 2; Actual: 1; Too few cells, row will be missing data]`
|
||||
|
|
Binary file not shown.
|
@ -441,7 +441,12 @@ Generated by [AVA](https://avajs.dev).
|
|||
test-repos/pi-hole-docs/docs/core/pihole-command.md: 319: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: no_leading_or_trailing; Missing leading pipe]␊
|
||||
test-repos/pi-hole-docs/docs/core/pihole-command.md: 319: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: no_leading_or_trailing; Missing trailing pipe]␊
|
||||
test-repos/pi-hole-docs/docs/core/pihole-command.md: 320: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: no_leading_or_trailing; Missing leading pipe]␊
|
||||
test-repos/pi-hole-docs/docs/core/pihole-command.md: 320: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: no_leading_or_trailing; Missing trailing pipe]`
|
||||
test-repos/pi-hole-docs/docs/core/pihole-command.md: 320: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: no_leading_or_trailing; Missing trailing pipe]␊
|
||||
test-repos/pi-hole-docs/docs/regex/tutorial.md: 84: MD056/table-column-count Table column count [Expected: 2; Actual: 3; Too many cells, extra data will be missing]␊
|
||||
test-repos/pi-hole-docs/docs/regex/tutorial.md: 85: MD056/table-column-count Table column count [Expected: 2; Actual: 3; Too many cells, extra data will be missing]␊
|
||||
test-repos/pi-hole-docs/docs/regex/tutorial.md: 86: MD056/table-column-count Table column count [Expected: 2; Actual: 3; Too many cells, extra data will be missing]␊
|
||||
test-repos/pi-hole-docs/docs/regex/tutorial.md: 137: MD056/table-column-count Table column count [Expected: 3; Actual: 4; Too many cells, extra data will be missing]␊
|
||||
test-repos/pi-hole-docs/docs/regex/tutorial.md: 138: MD056/table-column-count Table column count [Expected: 3; Actual: 5; Too many cells, extra data will be missing]`
|
||||
|
||||
## https://github.com/v8/v8.dev
|
||||
|
||||
|
@ -503,6 +508,10 @@ Generated by [AVA](https://avajs.dev).
|
|||
test-repos/v8-v8-dev/src/blog/pointer-compression.md: 333: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe]␊
|
||||
test-repos/v8-v8-dev/src/blog/pointer-compression.md: 334: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe]␊
|
||||
test-repos/v8-v8-dev/src/blog/pointer-compression.md: 335: MD055/table-pipe-style Table pipe style [Expected: leading_and_trailing; Actual: leading_only; Missing trailing pipe]␊
|
||||
test-repos/v8-v8-dev/src/blog/pointer-compression.md: 198: MD056/table-column-count Table column count [Expected: 3; Actual: 4; Too many cells, extra data will be missing]␊
|
||||
test-repos/v8-v8-dev/src/blog/pointer-compression.md: 333: MD056/table-column-count Table column count [Expected: 3; Actual: 4; Too many cells, extra data will be missing]␊
|
||||
test-repos/v8-v8-dev/src/blog/pointer-compression.md: 334: MD056/table-column-count Table column count [Expected: 3; Actual: 4; Too many cells, extra data will be missing]␊
|
||||
test-repos/v8-v8-dev/src/blog/pointer-compression.md: 335: MD056/table-column-count Table column count [Expected: 3; Actual: 4; Too many cells, extra data will be missing]␊
|
||||
test-repos/v8-v8-dev/src/blog/understanding-ecmascript-part-1.md: 41: MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "> 3. Return \`? HasOwnProperty(..."]␊
|
||||
test-repos/v8-v8-dev/src/blog/understanding-ecmascript-part-1.md: 55: MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "> 5. Return \`true\`."]␊
|
||||
test-repos/v8-v8-dev/src/blog/understanding-ecmascript-part-1.md: 91: MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "> 1. Return \`! OrdinaryGetOwnP..."]␊
|
||||
|
@ -598,6 +607,7 @@ Generated by [AVA](https://avajs.dev).
|
|||
test-repos/webhintio-hint/packages/hint-performance-budget/README.md: 198: MD053/link-image-reference-definitions Link and image reference definitions should be needed [Unused link or image reference definition: "tcp handshake"] [Context: "[tcp handshake]: https://hpbn...."]␊
|
||||
test-repos/webhintio-hint/packages/hint-strict-transport-security/README.md: 278: MD053/link-image-reference-definitions Link and image reference definitions should be needed [Unused link or image reference definition: "mod_mime"] [Context: "[mod_mime]: https://httpd.apac..."]␊
|
||||
test-repos/webhintio-hint/packages/hint-x-content-type-options/README.md: 181: MD053/link-image-reference-definitions Link and image reference definitions should be needed [Unused link or image reference definition: "fetch spec issue"] [Context: "[fetch spec issue]: https://gi..."]␊
|
||||
test-repos/webhintio-hint/packages/hint/docs/about/CONTRIBUTORS.md: 10: MD056/table-column-count Table column count [Expected: 3; Actual: 2; Too few cells, row will be missing data]␊
|
||||
test-repos/webhintio-hint/packages/hint/docs/about/GOVERNANCE.md: 218: MD053/link-image-reference-definitions Link and image reference definitions should be needed [Unused link or image reference definition: "openjs foundation"] [Context: "[OpenJS Foundation]: https://o..."]␊
|
||||
test-repos/webhintio-hint/packages/hint/docs/about/GOVERNANCE.md: 219: MD053/link-image-reference-definitions Link and image reference definitions should be needed [Unused link or image reference definition: "webhint org"] [Context: "[webhint org]: https://github...."]␊
|
||||
test-repos/webhintio-hint/packages/hint/docs/contributor-guide/getting-started/architecture.md: 78: MD053/link-image-reference-definitions Link and image reference definitions should be needed [Unused link or image reference definition: "typescript"] [Context: "[typescript]: https://www.type..."]␊
|
||||
|
|
Binary file not shown.
File diff suppressed because it is too large
Load diff
Binary file not shown.
141
test/table-column-count.md
Normal file
141
test/table-column-count.md
Normal file
|
@ -0,0 +1,141 @@
|
|||
# Table Column Count
|
||||
|
||||
## Expected
|
||||
|
||||
| Table |
|
||||
|-------|
|
||||
| Cell |
|
||||
| Cell |
|
||||
| Cell |
|
||||
|
||||
| Table | Header |
|
||||
|-------|--------|
|
||||
| Cell | Cell |
|
||||
| Cell | Cell |
|
||||
| Cell | Cell |
|
||||
|
||||
| Table | Header | Header |
|
||||
|-------|--------|--------|
|
||||
| Cell | Cell | Cell |
|
||||
| Cell | Cell | Cell |
|
||||
| Cell | Cell | Cell |
|
||||
|
||||
Table | Header
|
||||
-------|--------
|
||||
Cell | Cell
|
||||
|
||||
{MD055:-4} {MD055:-3} {MD055:-2}
|
||||
|
||||
| Table | Header |
|
||||
|-------|--------|
|
||||
| Cell | Cell |
|
||||
|
||||
{MD009:-4} {MD009:-3} {MD009:-2}
|
||||
|
||||
## Blank
|
||||
|
||||
| Table |
|
||||
|-------|
|
||||
| |
|
||||
| Cell |
|
||||
|
||||
| Table | Header | Header |
|
||||
|-------|--------|--------|
|
||||
| | Cell | Cell |
|
||||
| Cell | | Cell |
|
||||
| Cell | Cell | |
|
||||
| | | |
|
||||
|
||||
## Too Few
|
||||
|
||||
| Table | Header |
|
||||
|-------|--------|
|
||||
| Cell |
|
||||
| Cell | Cell |
|
||||
| Cell |
|
||||
|
||||
{MD056:-4} {MD056:-2}
|
||||
|
||||
| Table | Header | Header |
|
||||
|-------|--------|--------|
|
||||
| Cell |
|
||||
| Cell | Cell |
|
||||
| Cell | Cell | Cell |
|
||||
|
||||
{MD056:-4} {MD056:-3}
|
||||
|
||||
Table | Header
|
||||
-------|--------
|
||||
Cell
|
||||
|
||||
{MD055:-4} {MD055:-3} {MD055:-2} {MD056:-2}
|
||||
|
||||
| Table | Header |
|
||||
|-------|--------|
|
||||
| Cell |
|
||||
|
||||
{MD009:-4} {MD009:-3} {MD009:-2} {MD056:-2}
|
||||
|
||||
## Too Many
|
||||
|
||||
| Table |
|
||||
|-------|
|
||||
| Cell |
|
||||
| Cell | Cell |
|
||||
| Cell |
|
||||
|
||||
{MD056:-3}
|
||||
|
||||
| Table | Header |
|
||||
|-------|--------|
|
||||
| Cell | Cell | Cell | Cell |
|
||||
| Cell | Cell | Cell |
|
||||
| Cell | Cell |
|
||||
|
||||
{MD056:-4} {MD056:-3}
|
||||
|
||||
| Table | Header | Header |
|
||||
|-------|--------|--------|
|
||||
| Cell | Cell | Cell | Cell |
|
||||
| Cell | Cell | Cell |
|
||||
| Cell | Cell | Cell | Cell | Cell |
|
||||
|
||||
{MD056:-4} {MD056:-2}
|
||||
|
||||
Table | Header
|
||||
-------|--------
|
||||
Cell | Cell | Cell
|
||||
|
||||
{MD055:-4} {MD055:-3} {MD055:-2} {MD056:-2}
|
||||
|
||||
| Table | Header |
|
||||
|-------|--------|
|
||||
| Cell | Cell | Cell |
|
||||
|
||||
{MD009:-4} {MD009:-3} {MD009:-2} {MD056:-2}
|
||||
|
||||
## Mixed
|
||||
|
||||
| Table |
|
||||
|-------|
|
||||
| Cell | Cell |
|
||||
| Cell |
|
||||
| Cell | Cell |
|
||||
|
||||
{MD056:-4} {MD056:-2}
|
||||
|
||||
| Table | Header |
|
||||
|-------|--------|
|
||||
| Cell | Cell | Cell |
|
||||
| Cell |
|
||||
| Cell | Cell |
|
||||
|
||||
{MD056:-4} {MD056:-3}
|
||||
|
||||
| Table | Header | Header |
|
||||
|-------|--------|--------|
|
||||
| Cell | Cell | Cell |
|
||||
| Cell | Cell | Cell | Cell |
|
||||
| Cell |
|
||||
|
||||
{MD056:-3} {MD056:-2}
|
|
@ -6,7 +6,7 @@
|
|||
}
|
||||
} -->
|
||||
|
||||
## Missing in Heading Row
|
||||
## Missing in Header Row
|
||||
|
||||
| Table | {MD055}
|
||||
|-------|---------|
|
||||
|
@ -19,111 +19,111 @@
|
|||
|
||||
## Missing in Separator Row
|
||||
|
||||
| Table | Heading |
|
||||
|-------|---------
|
||||
| Table | Header |
|
||||
|-------|--------
|
||||
|
||||
{MD055:-2}
|
||||
|
||||
| Table | Heading |
|
||||
-------|---------|
|
||||
| Table | Header |
|
||||
-------|--------|
|
||||
|
||||
{MD055:-2}
|
||||
|
||||
| Table | Heading |
|
||||
-------|---------
|
||||
| Table | Header |
|
||||
-------|--------
|
||||
|
||||
{MD055:-2}
|
||||
|
||||
## Missing Leading and Trailing
|
||||
|
||||
{MD055} | Heading
|
||||
---------|---------
|
||||
{MD055} | Header
|
||||
---------|--------
|
||||
{MD055} | Cell
|
||||
|
||||
{MD055:-3}
|
||||
|
||||
{MD055} | Heading
|
||||
--------:|:-------:
|
||||
{MD055} | Header
|
||||
--------:|:------:
|
||||
{MD055} | Cell
|
||||
|
||||
{MD055:-3}
|
||||
|
||||
| Table | Heading |
|
||||
|--------:|:--------|
|
||||
| Table | Header |
|
||||
|--------:|:-------|
|
||||
{MD055} | Cell
|
||||
|
||||
| Table | Heading |
|
||||
|---------|---------|
|
||||
| Table | Header |
|
||||
|---------|--------|
|
||||
{MD055} | Cell
|
||||
| Cell | Cell |
|
||||
| Cell | Cell |
|
||||
|
||||
| Table | Heading |
|
||||
|---------|---------|
|
||||
| Table | Header |
|
||||
|---------|--------|
|
||||
| Cell | Cell |
|
||||
{MD055} | Cell
|
||||
| Cell | Cell |
|
||||
|
||||
| Table | Heading |
|
||||
|---------|---------|
|
||||
| Table | Header |
|
||||
|---------|--------|
|
||||
| Cell | Cell |
|
||||
| Cell | Cell |
|
||||
{MD055} | Cell
|
||||
|
||||
## Missing Trailing
|
||||
|
||||
| Table | Heading |
|
||||
|--------:|:--------|
|
||||
| Table | Header |
|
||||
|--------:|:-------|
|
||||
| {MD055} | Cell
|
||||
|
||||
| Table | Heading |
|
||||
|---------|---------|
|
||||
| Table | Header |
|
||||
|---------|--------|
|
||||
| {MD055} | Cell
|
||||
| Cell | Cell |
|
||||
| Cell | Cell |
|
||||
|
||||
| Table | Heading |
|
||||
|---------|---------|
|
||||
| Table | Header |
|
||||
|---------|--------|
|
||||
| Cell | Cell |
|
||||
| {MD055} | Cell
|
||||
| Cell | Cell |
|
||||
|
||||
| Table | Heading |
|
||||
|---------|---------|
|
||||
| Table | Header |
|
||||
|---------|--------|
|
||||
| Cell | Cell |
|
||||
| Cell | Cell |
|
||||
| {MD055} | Cell
|
||||
|
||||
## Missing Leading
|
||||
|
||||
| Table | Heading |
|
||||
|--------:|:--------|
|
||||
| Table | Header |
|
||||
|--------:|:-------|
|
||||
{MD055} | Cell |
|
||||
|
||||
| Table | Heading |
|
||||
|---------|---------|
|
||||
| Table | Header |
|
||||
|---------|--------|
|
||||
{MD055} | Cell |
|
||||
| Cell | Cell |
|
||||
| Cell | Cell |
|
||||
|
||||
| Table | Heading |
|
||||
|---------|---------|
|
||||
| Table | Header |
|
||||
|---------|--------|
|
||||
| Cell | Cell |
|
||||
{MD055} | Cell |
|
||||
| Cell | Cell |
|
||||
|
||||
| Table | Heading |
|
||||
|---------|---------|
|
||||
| Table | Header |
|
||||
|---------|--------|
|
||||
| Cell | Cell |
|
||||
| Cell | Cell |
|
||||
{MD055} | Cell |
|
||||
|
||||
## Followed by Text
|
||||
|
||||
| Table | Heading |
|
||||
|-------|---------|
|
||||
| Table | Header |
|
||||
|-------|--------|
|
||||
| Cell | Cell |
|
||||
{MD055} Text
|
||||
{MD055} {MD056} Text
|
||||
|
||||
## Table inside Blockquote
|
||||
|
||||
|
@ -133,12 +133,12 @@
|
|||
|
||||
## Well-Formed
|
||||
|
||||
| Table | Heading |
|
||||
|-------|---------|
|
||||
| Table | Header |
|
||||
|-------|--------|
|
||||
| Cell | Cell |
|
||||
|
||||
| Table | Heading |
|
||||
|-------|---------|
|
||||
| Table | Header |
|
||||
|-------|--------|
|
||||
| Cell | Cell |
|
||||
| Cell | Cell |
|
||||
| Cell | Cell |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue