-
Notifications
You must be signed in to change notification settings - Fork 8
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
Merge with elm-docstyle? #66
Comments
By merging, do you mean: when calling elm-doc with Also, what do you mean by translating? Taking a quick look at elm-docstyle, my concerns would be:
elm-doc has been meant to be a temporary solution until something like elm-docstyle comes along, so I'm looking forward to what comes of this. |
Hi @ento,
Sorry for the misunderstanding, my message was too terse. Elm-docstyle is written in Elm, while elm-doc is written in Python. I thought to translate elm-docstyle to Python and implement its functionality completely into elm-doc.
If I remember correctly, we do not do that. @TeodoroFilippini could you please confirm?
It has its own configuration file. Since the code would need to be translated anyhow, we can define what additional functionality would be implemented in elm-doc. |
Ah, okay. To further clarify, elm-docstyle's Elm implementation will no longer be maintained, or is the intention to keep updating both implementations? In any case, there'll be pros and cons to the alternative ways of how to go about this, and I don't feel like I have the full picture yet to be able to decide what's best. |
@mristin we do not have a test suite for detecting Elm compilation errors, since elm-docstyle uses elm-syntax to parse the Elm source code, which in turn raises an error whenever the compiler would. |
The errors the Elm compiler may catch range from syntax errors to documentation errors such as those listed here. I assume documentation errors are not caught by elm-syntax. Since elm-doc's purpose is to generate browsable documentation, and as it currently uses the Elm compiler to do so, my interest is in if elm-docstyle's validation mode has guarantee that it will catch all (documentation) errors that the Elm compiler will catch and abort (or if it's in the interest of the project to have such a guarantee). I see a few alternative paths:
Whether to implement these in Elm or Python is an orthogonal decision. Any thoughts / preferences? |
Hi!
Since elm-docstyle supports
--validate
flag, would you consider merging that functionality with elm-docstyle? (https://github.com/Parquery/elm-docstyle)If so, I would like to translate it to Python and submit a PR.
Thanks for your feedback!
The text was updated successfully, but these errors were encountered: