enhancementhelp wanted
Repository metrics
- Stars
- (265 stars)
- PR merge metrics
- (No merged PRs in 30d)
Description
Here's an example while processing hundreds of documents:
juin 18, 2020 8:25:15 AM
AVERTISSEMENT: <stdin>: line 38: list item index: expected 1, got 2
juin 18, 2020 8:25:15 AM
AVERTISSEMENT: <stdin>: line 68: list item index: expected 1, got 3
juin 18, 2020 8:25:18 AM
INFOS: possible invalid reference: index-configuration-limitations-element-size-calculations
juin 18, 2020 8:25:18 AM
AVERTISSEMENT: <stdin>: line 63: list item index: expected 1, got 3
juin 18, 2020 8:25:18 AM
AVERTISSEMENT: <stdin>: line 70: list item index: expected 1, got 4
juin 18, 2020 8:25:19 AM
AVERTISSEMENT: <stdin>: line 49: list item index: expected 1, got 3
juin 18, 2020 8:25:19 AM
AVERTISSEMENT: <stdin>: line 67: list item index: expected 1, got 4
juin 18, 2020 8:25:19 AM
AVERTISSEMENT: <stdin>: line 81: list item index: expected 1, got 5
juin 18, 2020 8:25:19 AM
AVERTISSEMENT: <stdin>: line 84: list item index: expected 2, got 6
juin 18, 2020 8:25:19 AM
AVERTISSEMENT: <stdin>: line 98: list item index: expected 1, got 7
As mentioned by Dan, Asciidoctor only processes a single file, the assumption is that it's the file you are processing. But when processing a collection of files, I think we can enhance the warning message:
https://twitter.com/mojavelinux/status/1261400540249915393
Also I'm not sure if the full date is necessary in this context and maybe we could print it on the same line?
Here's a proposal:
> articles/an-approach-to-parsing-the-query-log.adoc
08:25:15 - WARN - line 38: list item index: expected 1, got 2
08:25:17 - WARN - line 68: list item index: expected 1, got 3
> articles/tls-ssl-configuration-for-specific-ciphers.adoc
08:25:18 - INFO - possible invalid reference: index-configuration-limitations-element-size-calculations
> articles/a-method-to-replicate-a-causal-cluster-to-new-hardware-with-minimum-downtime.adoc
08:25:18 - line 63: list item index: expected 1, got 3
08:25:18 - line 70: list item index: expected 1, got 4
> articles/how-to-install-neo4j-in-a-disconnected-environment.adoc
08:25:19 - WARN - line 49: list item index: expected 1, got 3
08:25:19 - WARN - line 67: list item index: expected 1, got 4
08:25:19 - WARN - line 81: list item index: expected 1, got 5
08:25:19 - WARN - line 84: list item index: expected 2, got 6
08:25:19 - WARN - line 98: list item index: expected 1, got 7