Add option to load hexdoc patterns from a JSON file instead of scraping them with regex #911
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This will help allow users to generate hexdoc books for addons without source code available (ie. from a JAR). It's also a necessary prerequisite for creating a datagen tool to generate hexdoc pattern info, which would make the regex stub entirely unnecessary.
This PR also includes the following small changes:
extra.hexcasting.pattern_stubs
default to an empty list.extra.hexcasting.allow_duplicates
(default false). If true, we log a warning instead of raising an exception if a duplicate pattern is detected.