-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixup! fixup! fixup! [#138] Report links that escape repo directory
- Loading branch information
1 parent
09186a6
commit 1d5d68a
Showing
11 changed files
with
185 additions
and
111 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
8 changes: 0 additions & 8 deletions
8
tests/golden/check-local-references-outside-repo/bad-absolute-filepath.md
This file was deleted.
Oops, something went wrong.
90 changes: 0 additions & 90 deletions
90
tests/golden/check-local-references-outside-repo/check-local-references-outside-repo.bats
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
...-references-outside-repo/inner-directory/check-local-references-outside-repo.md
This file was deleted.
Oops, something went wrong.
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
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
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
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,91 @@ | ||
=== Invalid references found === | ||
|
||
➥ In file dir1/dir2/d2f1.md | ||
bad reference (current file) at src:9:1-18: | ||
- text: "bad-cf-ref" | ||
- link: | ||
- anchor: bad | ||
|
||
⛀ Anchor 'bad' is not present | ||
|
||
|
||
➥ In file dir1/dir2/d2f1.md | ||
bad reference (relative) at src:21:1-43: | ||
- text: "bad-file-rel" | ||
- link: ../a/b/c/unexisting-file.md | ||
- anchor: - | ||
|
||
⛀ File does not exist: | ||
dir1/dir2/../a/b/c/unexisting-file.md | ||
|
||
|
||
➥ In file dir1/dir2/d2f1.md | ||
bad reference (relative) at src:23:1-38: | ||
- text: "bad-anchor-rel-1" | ||
- link: d2f2.md | ||
- anchor: bad-anchor | ||
|
||
⛀ Anchor 'bad-anchor' is not present | ||
|
||
|
||
➥ In file dir1/dir2/d2f1.md | ||
bad reference (relative) at src:24:1-49: | ||
- text: "bad-anchor-rel-2" | ||
- link: unexisting-file.md | ||
- anchor: bad-anchor | ||
|
||
⛀ File does not exist: | ||
dir1/dir2/unexisting-file.md | ||
|
||
|
||
➥ In file dir1/dir2/d2f1.md | ||
bad reference (absolute) at src:28:1-29: | ||
- text: "file-abs-1" | ||
- link: /dir1/./d1f1.md | ||
- anchor: - | ||
|
||
⛀ File does not exist: | ||
dir1/dir1/./d1f1.md | ||
|
||
|
||
➥ In file dir1/dir2/d2f1.md | ||
bad reference (absolute) at src:29:1-55: | ||
- text: "anchor-abs-1" | ||
- link: /dir1/.././d1f1.md | ||
- anchor: existing-anchor-d1f1 | ||
|
||
⛀ File does not exist: | ||
dir1/dir1/.././d1f1.md | ||
|
||
|
||
➥ In file dir1/dir2/d2f1.md | ||
bad reference (absolute) at src:30:1-73: | ||
- text: "anchor-abs-2" | ||
- link: /dir1/dir2/../../dir1/./dir2/d2f2.md | ||
- anchor: existing-anchor-d2f2 | ||
|
||
⛀ File does not exist: | ||
dir1/dir1/dir2/../../dir1/./dir2/d2f2.md | ||
|
||
|
||
➥ In file dir1/dir2/d2f1.md | ||
bad reference (relative) at src:40:1-42: | ||
- text: "path-through-top-dir" | ||
- link: ../../dir1/d1f1.md | ||
- anchor: - | ||
|
||
⛀ Link targets a local file outside repository: | ||
dir1/dir2/../../dir1/d1f1.md | ||
|
||
|
||
➥ In file dir1/dir2/d2f1.md | ||
bad reference (relative) at src:41:1-75: | ||
- text: "path-through-top-dir-with-anchor" | ||
- link: ../../dir1/d1f1.md | ||
- anchor: existing-anchor-d1f1 | ||
|
||
⛀ Link targets a local file outside repository: | ||
dir1/dir2/../../dir1/d1f1.md | ||
|
||
|
||
Invalid references dumped, 9 in total. |