[GH-ISSUE #1182] No bare-urls when using _redirects file #2482

Closed
opened 2026-03-07 20:08:11 +03:00 by kerem · 1 comment
Owner

Originally created by @MikePfunk28 on GitHub (Apr 20, 2024).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/1182

From what I can tell it thinks my _redirects file is a markdown, when it has no extension. Using cloudflare pages, you create a _redirects file with no extension in order to write your redirects. I got this error and change my file accordingly, then realized it does not apply here.

Edit:
This happens for at least MD022, and MD025, probably every single one in this case. So maybe priority isnt low, but it doesnt break anything.

MD022/blanks-around-headings: Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below]markdownlintMD022

MD025/single-title/single-h1: Multiple top-level headings in the same documentmarkdownlintMD025

MD034/no-bare-urls: Bare URL usedmarkdownlintMD034

Originally created by @MikePfunk28 on GitHub (Apr 20, 2024). Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/1182 From what I can tell it thinks my _redirects file is a markdown, when it has no extension. Using cloudflare pages, you create a _redirects file with no extension in order to write your redirects. I got this error and change my file accordingly, then realized it does not apply here. Edit: This happens for at least MD022, and MD025, probably every single one in this case. So maybe priority isnt low, but it doesnt break anything. MD022/blanks-around-headings: Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below]markdownlint[MD022](https://github.com/DavidAnson/markdownlint/blob/v0.34.0/doc/md022.md) MD025/single-title/single-h1: Multiple top-level headings in the same documentmarkdownlint[MD025](https://github.com/DavidAnson/markdownlint/blob/v0.34.0/doc/md025.md) MD034/no-bare-urls: Bare URL usedmarkdownlint[MD034](https://github.com/DavidAnson/markdownlint/blob/v0.34.0/doc/md034.md)
kerem 2026-03-07 20:08:11 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@DavidAnson commented on GitHub (Apr 20, 2024):

As a library, this package only lints the files/strings you pass in to it. If you don't want that file linted, don't pass it in.

If you are using this library via some other means (CLI), the same advice applies.

<!-- gh-comment-id:2067781427 --> @DavidAnson commented on GitHub (Apr 20, 2024): As a library, this package only lints the files/strings you pass in to it. If you don't want that file linted, don't pass it in. If you are using this library via some other means (CLI), the same advice applies.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/markdownlint#2482
No description provided.