sphinx-lint icon indicating copy to clipboard operation
sphinx-lint copied to clipboard

Use Sphinx config to discover directives

Open JulienPalard opened this issue 3 years ago • 1 comments
trafficstars

An idea of @Jean-Abou-Samra, see: https://github.com/sphinx-doc/sphinx/issues/10143#issuecomment-1025134708

I like the idea: it should lead to less false positives, which is very important. It could even help spot typos in directive names!

As long as it's still fast to check a single file, so it can be used as a linter in an editor, I don't want rstlint to become slower than make suspicious from cpython, on my machine, for a full cpython/Doc/ check:

  • sphinx-lint takes 5.7s
  • make suspicious takes from 36s to 1m22s (depends on the cache)

JulienPalard avatar Feb 02 '22 13:02 JulienPalard

Not sure if I'll have the time soon, but I'm basically interested in working on this.

jeanas avatar Feb 03 '22 02:02 jeanas