Introduce a Linter / Validation System #56
Labels
documentation
Improvements or additions to documentation
enhancement
New feature or request
help wanted
Extra attention is needed
This is another feature we want to tackle and have within the API docs tooling. The idea is similar to ESlint: We have a system that reports on irregularities when running the API docs tooling against files.
Assume you have a missing version on one of the YAML metadata (i.e.:
version: REPLACEME
), or some of the YAML is missing (like each module may have an "introduced_in" on the first node/section), or you have some invalid type within the API docs (ie:{SomethingThatDoesNotExist}
or a typo{Obrect}
instead of{Object}
--skip-validation
;The system must know the almost exact position of something, possibly within the AST tree, which gives you a position object for each item so you can narrow it to a close position.
queries.mjs
,generators.mjs
and all utils know what is the current context being handled. (Note that since parsing and processing is async, we cannot set a static context within a Singleton)The system should not use try/catch or exceptions since the code should be evergreen and failproof to actual errors within the markdown.
constants.mjs
Possible items for the system:
REPLACEME
)The text was updated successfully, but these errors were encountered: