-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make a ppx_odoc
that does the comment checking that ppx_js_style
does
#147
Comments
Right now, it should be possible to make the |
This seems like a very good idea. |
@aantron Dune currently does not permit having private dependencies for public libraries. This means that adding |
@dbuenzli mentioned in #226 (comment) that parsing docstrings directly from Is there a way to enforce the order of application of rewriters? Is it possible to load a |
You can give a |
Just cross-referencing the Dune issue on having a public library depend on private modules: ocaml/dune#1017 -- this restriction can be lifted in the future if it's a blocker for this ppx odoc feature. |
As a further note, we ended up exposing the sublibraries as described in #236 (comment). Of course, for a supported tool, we would want to fix the names, if the tool is developed separately. |
I'm not sure where this bot has come from, but it's clearly set to use a too short time span. The first time it ran I carefully unmarked the issues that are still important to fix, but I can't waste time doing that every month. I can't see how this won't leave the repository with 0 open issues, which makes the issue tracker just as useless as when there are 200 open stale issues. The aim should be to distinguish issues that people still care about and are likely to get solved from issues that people don't care about or will not likely get solved. Marking nothing as stale and marking everything as stale are equivalently bad approaches to addressing this. |
@lpw25 I noticed there's a But yes except on open ended/transient issue tracker like the |
@lpw25 the new bot is a "user" associated with GitHub Action: https://github.com/ocaml/odoc/blob/master/.github/workflows/stale.yml. GitHub Action allow to do automatically bunch of task that maintainer have to do manually. It is a super-set from CI. |
@dbuenzli My opinion is less strong than that: I don't mind these bots generally -- I find the one on ocaml/ocaml useful for example -- but I think that this one is misconfigured. They generate an amount of work for people that is related to the time span for which things are considered stale. I don't mind that amount of work being non-zero -- having to do something once a year for each issue I care about is fine for me -- but once a month is far too high. |
Is there still interest in this issue ? Isn't the solution to the problem to simply generate your docs ? |
ppx_js_style is the Jane Street style checking ppx. One of the things it checks is that documentation comments have valid syntax using the documentation comment parser from the old version of odoc (octavius).
Now that the parser is no longer a separate library ppx_js_style can't use an up-to-date documentation parser. Now that odoc is getting more widely used there are probably people who want to check their documentation comments without using the other parts of ppx_js_style. So my suggestion is to implement a stand-alone ppx that just checks the syntax of documentation comments.
At the moment I think it would have to live inside the odoc repository, since that is where the parser is available, but it could also be implemented separately if odoc added a parser library. Either approach seems fine to me.
The text was updated successfully, but these errors were encountered: