Closed Bug 1537759 Opened 7 years ago Closed 7 years ago

lint restructured text files

Categories

(Developer Infrastructure :: Lint and Formatting, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1527361

People

(Reporter: tarek, Unassigned)

Details

I've noticed on bug 1535562 a small reStructuredText error.

Those are hard to detect when underlying titles, we should add a rst linter

To build a linter for reST files, we can use rst2html output and error code, which will detect the issue and give us a human readable error we can add prior to landing the patch

We can use the command I added in Python for inspiration:

https://hg.python.org/cpython/file/tip/Lib/distutils/command/check.py

Do you know any linter doing that?
Another option might be to add --halt=2 (warning) to rst2html (default: 4 - severe)

I'm going to dupe this to the other one as I've linked that other one out to a few places (was hoping to make it part of a GSoC project, though if anyone wants it finished sooner, feel free to grab it).

I'm also open to linters other than restructuredtext-lint.

Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE

Worth noting that fixing bug 1536103 would probably also have caught the problem.

Product: Firefox Build System → Developer Infrastructure
You need to log in before you can comment on or make changes to this bug.