-
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.
Problem: multiple issues with the CLI output 1. In the --help output, metavars GLOB_PATTERN and REPOSITORY_TYPE used spaces instead of underscores. Variables typically don't contain spaces in their names, so it looked confusing. 2. Incorrect or unintuitive coloring of the output. For example, filenames were dim even though they're important and should stand out, the report of success wasn't green, error messages weren't red, etc. 3. Excessive indentation and empty lines that made it difficult to visually parse the error report. Also the use of the exotic '➥' character that looks bad in many font configurations. 4. Filenames and line numbers were far apart, making it impossible to Ctrl+Click to jump to the source of the error. 5. In case of connection failure, the output was too verbose and platform-dependent. Solution: 1. Adjust the pretty-printing functions and update test output. 2. Extend VerifyError with a constructor for connection failures.
- Loading branch information
Showing
39 changed files
with
687 additions
and
992 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
|
@@ -93,6 +93,7 @@ library: | |
- filepath | ||
- fmt | ||
- ftp-client | ||
- crypton-connection | ||
- Glob | ||
- http-client | ||
- http-types | ||
|
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 |
---|---|---|
@@ -1,32 +1,26 @@ | ||
=== Invalid references found === | ||
a.md:16:1-43: bad reference: | ||
The reference to "ambiguous anchor in this file" failed verification. | ||
- anchor (file-local): some-text | ||
Ambiguous reference to anchor 'some-text' | ||
In file a.md | ||
It could refer to either: | ||
- some-text (header I) 6:1-11 | ||
- some-text (header I) 8:1-15 | ||
- some-text (header II) 12:1-12 | ||
Use of ambiguous anchors is discouraged because the target | ||
can change silently while the document containing it evolves. | ||
|
||
➥ In file a.md | ||
bad reference (file-local) at src:16:1-43: | ||
- text: "ambiguous anchor in this file" | ||
- anchor: some-text | ||
|
||
Ambiguous reference to anchor 'some-text' | ||
In file a.md | ||
It could refer to either: | ||
- some-text (header I) at src:6:1-11 | ||
- some-text (header I) at src:8:1-15 | ||
- some-text (header II) at src:12:1-12 | ||
Use of ambiguous anchors is discouraged because the target | ||
can change silently while the document containing it evolves. | ||
|
||
➥ In file b.md | ||
bad reference (relative) at src:7:1-48: | ||
- text: "ambiguous anchor in other file" | ||
- link: a.md | ||
- anchor: some-text | ||
|
||
Ambiguous reference to anchor 'some-text' | ||
In file a.md | ||
It could refer to either: | ||
- some-text (header I) at src:6:1-11 | ||
- some-text (header I) at src:8:1-15 | ||
- some-text (header II) at src:12:1-12 | ||
Use of ambiguous anchors is discouraged because the target | ||
can change silently while the document containing it evolves. | ||
b.md:7:1-48: bad reference: | ||
The reference to "ambiguous anchor in other file" failed verification. | ||
- link (relative): a.md | ||
- anchor: some-text | ||
Ambiguous reference to anchor 'some-text' | ||
In file a.md | ||
It could refer to either: | ||
- some-text (header I) 6:1-11 | ||
- some-text (header I) 8:1-15 | ||
- some-text (header II) 12:1-12 | ||
Use of ambiguous anchors is discouraged because the target | ||
can change silently while the document containing it evolves. | ||
|
||
Invalid references dumped, 2 in total. |
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 |
---|---|---|
@@ -1,27 +1,19 @@ | ||
=== Invalid references found === | ||
a.md:12:1-13: bad reference: | ||
The reference to "broken" failed verification. | ||
- anchor (file-local): h3 | ||
Anchor 'h3' is not present, did you mean: | ||
- h1 (header I) 6:1-4 | ||
- h2 (header II) 8:1-5 | ||
|
||
➥ In file a.md | ||
bad reference (file-local) at src:12:1-13: | ||
- text: "broken" | ||
- anchor: h3 | ||
a.md:14:1-18: bad reference: | ||
The reference to "broken" failed verification. | ||
- anchor (file-local): heading | ||
Anchor 'heading' is not present, did you mean: | ||
- the-heading (header I) 10:1-13 | ||
|
||
Anchor 'h3' is not present, did you mean: | ||
- h1 (header I) at src:6:1-4 | ||
- h2 (header II) at src:8:1-5 | ||
|
||
➥ In file a.md | ||
bad reference (file-local) at src:14:1-18: | ||
- text: "broken" | ||
- anchor: heading | ||
|
||
Anchor 'heading' is not present, did you mean: | ||
- the-heading (header I) at src:10:1-13 | ||
|
||
➥ In file a.md | ||
bad reference (file-local) at src:16:1-31: | ||
- text: "broken" | ||
- anchor: really-unique-anchor | ||
|
||
Anchor 'really-unique-anchor' is not present | ||
a.md:16:1-31: bad reference: | ||
The reference to "broken" failed verification. | ||
- anchor (file-local): really-unique-anchor | ||
Anchor 'really-unique-anchor' is not present | ||
|
||
Invalid references dumped, 3 in total. |
Oops, something went wrong.