-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add linter configuration and check in the CI #4
Comments
I played a bit with rstcheck and wasn't really convinced. It's supposed to have a Sphinx integration but that is "under heavy development and not yet ready for use" (1). One can run it on the individual RST files and it even finds a few relevant issues. Though, about 90% are " Unknown target name" issues. I believe that's because it cannot deal with references that span multiple RST files. One could ignore those (with a config file) and at least use the "local" warnings. Those are the warnings (on current cryptodoc) that I think are worth looking at:
|
Similarly for But that's not too surprising, as it mostly checks for whitespace-related quirks (e.g. carriage returns, trailing white space, new line before EOF, ...). |
Then I tried both a few weeks ago I was also not that convinced so much with the linters. Like you I noticed that they don't work well with Sphinx's multiple RST files. And the suppression of warnings is also sub optimal.
A note about My opinion: both linters don't seem to bring as much as I hoped for. But probably still better than having none. |
My vote is at most to use |
To enforce best practice and catch errors we may want to run a linter for reStructuredText.
The following linters seem to exists:
We should decide which linter we want to use and add a configuration for it. Also investigate if it makes sense to run both linters.
If we add a linter a CI needs to be added for it.
The text was updated successfully, but these errors were encountered: