Skip to content

Commit 6d0f265

Browse files
authored
md011 - add check for reversed link syntax (#37908)
1 parent 9f44a27 commit 6d0f265

3 files changed

Lines changed: 4 additions & 0 deletions

File tree

content/code-security/supply-chain-security/understanding-your-software-supply-chain/troubleshooting-the-dependency-graph.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,12 @@ Yes, the dependency graph has {% ifversion dependency-graph-repository-view-upda
5151
By default, {% data variables.product.prodname_dotcom %} will not process more than {% ifversion fpt or ghec %}150{% else %}600{% endif %} manifests per repository. {% data variables.product.prodname_dependabot_alerts %} are not created for manifests beyond this limit. If you need to increase the limit, contact {% data variables.contact.contact_support %}.
5252

5353
Manifest files stored in directories with names that are typically used for vendored dependencies will not be processed. A directory whose name matches the following regular expressions is considered a vendored dependencies directory:
54+
<!-- markdownlint-disable MD011 -->
5455
- <code>(3rd|[Tt]hird)[-_]?[Pp]arty/</code>
5556
- <code>(^|/)vendors?/</code>
5657
- <code>(^|/)[Ee]xtern(als?)?/</code>
5758
- <code>(^|/)[Vv]+endor/</code>
59+
<!-- markdownlint-enable MD011 -->
5860

5961
Examples:
6062
- third-party/dependencies/dependency1

src/content-linter/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ We are using the [markdownlint](https://github.com/DavidAnson/markdownlint) fram
1212
| [MD009](https://github.com/DavidAnson/markdownlint/blob/main/doc/md009.md) | No unnecessary whitespace from the end of the line. | warning |
1313
| [MD014](https://github.com/DavidAnson/markdownlint/blob/main/doc/md014.md) | Dollar signs should not be used before commands without showing output. | error |
1414
| [MD024](https://github.com/DavidAnson/markdownlint/blob/main/doc/md024.md) | Disallow headings with the same content. | error |
15+
| [MD011](https://github.com/DavidAnson/markdownlint/blob/main/doc/md011.md) | Make sure that link syntax is not reversed. | error |
1516
| [MD111](./linting-rules/image-alt-text-length.js) | Images alternate text should be between 40-150 characters. | warning |
1617
| [MD112](./linting-rules/image-alt-text-end-punctuation.js) | Images alternate text should end with a punctuation. | error |
1718
| [MD113](./linting-rules/internal-links-slash.js) | Internal links must start with a `/`. | error |

src/content-linter/scripts/markdownlint.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ async function main() {
3030
MD002: { level: 2 },
3131
MD004: { style: 'dash' },
3232
MD009: true,
33+
MD011: true,
3334
MD014: true,
3435
MD024: true,
3536
MD111: true,

0 commit comments

Comments
 (0)