Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve MD034/no-bare-urls range reporting (fixes #181).
- Loading branch information
1 parent
dba6d49
commit 684416a
Showing
4 changed files
with
138 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"default": true, | ||
"MD013": false, | ||
"MD046": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Detailed Link Results | ||
|
||
Text https://example.com/ text | ||
|
||
Text <https://example.com/brackets> text https://example.com/bare text | ||
|
||
Text https://example.com/bare text <https://example.com/brackets> text | ||
|
||
Text `code https://example.com/code code` text https://example.com/ text | ||
|
||
> Text <https://example.com/brackets> text https://example.com/bare text | ||
Text https://example.com/dir | ||
text https://example.com/file.txt | ||
text <https://example.com/dir/dir> | ||
text https://example.com/dir/dir/file?query=param | ||
|
||
```text | ||
Code https://example.com/code?type=fence code | ||
``` | ||
|
||
Code https://example.com/code?type=indent code | ||
|
||
Text <https://example.com/same> more text https://example.com/same still more text <https://example.com/same> done | ||
|
||
Text <https://example.com/same> more \* text https://example.com/same more \[ text <https://example.com/same> done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
[ | ||
{ | ||
"lineNumber": 3, | ||
"ruleNames": [ "MD034", "no-bare-urls" ], | ||
"ruleDescription": "Bare URL used", | ||
"ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md034", | ||
"errorDetail": null, | ||
"errorContext": "https://example.com/", | ||
"errorRange": [ 6, 20 ] | ||
}, | ||
{ | ||
"lineNumber": 5, | ||
"ruleNames": [ "MD034", "no-bare-urls" ], | ||
"ruleDescription": "Bare URL used", | ||
"ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md034", | ||
"errorDetail": null, | ||
"errorContext": "https://example.com/bare", | ||
"errorRange": [ 42, 24 ] | ||
}, | ||
{ | ||
"lineNumber": 7, | ||
"ruleNames": [ "MD034", "no-bare-urls" ], | ||
"ruleDescription": "Bare URL used", | ||
"ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md034", | ||
"errorDetail": null, | ||
"errorContext": "https://example.com/bare", | ||
"errorRange": [ 6, 24 ] | ||
}, | ||
{ | ||
"lineNumber": 9, | ||
"ruleNames": [ "MD034", "no-bare-urls" ], | ||
"ruleDescription": "Bare URL used", | ||
"ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md034", | ||
"errorDetail": null, | ||
"errorContext": "https://example.com/", | ||
"errorRange": [ 48, 20 ] | ||
}, | ||
{ | ||
"lineNumber": 11, | ||
"ruleNames": [ "MD034", "no-bare-urls" ], | ||
"ruleDescription": "Bare URL used", | ||
"ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md034", | ||
"errorDetail": null, | ||
"errorContext": "https://example.com/bare", | ||
"errorRange": [ 44, 24 ] | ||
}, | ||
{ | ||
"lineNumber": 13, | ||
"ruleNames": [ "MD034", "no-bare-urls" ], | ||
"ruleDescription": "Bare URL used", | ||
"ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md034", | ||
"errorDetail": null, | ||
"errorContext": "https://example.com/dir", | ||
"errorRange": [ 6, 23 ] | ||
}, | ||
{ | ||
"lineNumber": 14, | ||
"ruleNames": [ "MD034", "no-bare-urls" ], | ||
"ruleDescription": "Bare URL used", | ||
"ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md034", | ||
"errorDetail": null, | ||
"errorContext": "https://example.com/file.txt", | ||
"errorRange": [ 6, 28 ] | ||
}, | ||
{ | ||
"lineNumber": 16, | ||
"ruleNames": [ "MD034", "no-bare-urls" ], | ||
"ruleDescription": "Bare URL used", | ||
"ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md034", | ||
"errorDetail": null, | ||
"errorContext": "https://example.com/dir/dir/fi...", | ||
"errorRange": [ 6, 44 ] | ||
}, | ||
{ | ||
"lineNumber": 24, | ||
"ruleNames": [ "MD034", "no-bare-urls" ], | ||
"ruleDescription": "Bare URL used", | ||
"ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md034", | ||
"errorDetail": null, | ||
"errorContext": "https://example.com/same", | ||
"errorRange": [ 43, 24 ] | ||
}, | ||
{ | ||
"lineNumber": 26, | ||
"ruleNames": [ "MD034", "no-bare-urls" ], | ||
"ruleDescription": "Bare URL used", | ||
"ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md034", | ||
"errorDetail": null, | ||
"errorContext": "https://example.com/same", | ||
"errorRange": null | ||
} | ||
] |