|
| 1 | +.\" Hey, EMACS: -*- nroff -*- |
| 2 | +.\" (C) Copyright 2025 Julien Palard <julien@palard.fr> |
| 3 | +.\" |
| 4 | +.TH sphinx-lint 1 "November 16 2025" |
| 5 | +.\" Please adjust this date whenever revising the manpage. |
| 6 | +.\" |
| 7 | +.\" Some roff macros, for reference: |
| 8 | +.\" .nh disable hyphenation |
| 9 | +.\" .hy enable hyphenation |
| 10 | +.\" .ad l left justify |
| 11 | +.\" .ad b justify to both left and right margins |
| 12 | +.\" .nf disable filling |
| 13 | +.\" .fi enable filling |
| 14 | +.\" .br insert line break |
| 15 | +.\" .sp <n> insert n+1 empty lines |
| 16 | +.\" for manpage-specific macros, see man(7) |
| 17 | +.SH NAME |
| 18 | +sphinx-lint \- proofreads \fB.rst\fP files |
| 19 | +.SH SYNOPSIS |
| 20 | +.B sphinx-lint |
| 21 | +[-h] [-v] [-i IGNORE] [-d DISABLE] [-e ENABLE] [--list] |
| 22 | +[--max-line-length MAX_LINE_LENGTH] [-s SORT_BY] [-j N] [-V] [paths ...] |
| 23 | +.br |
| 24 | +.SH DESCRIPTION |
| 25 | +\fBsphinx-lint\fP searches for stylistic and formal issues in \fB.rst\fP |
| 26 | +and \fB.py\fP files. |
| 27 | +.PP |
| 28 | +If no paths are given, \fBsphinx-lint\fP searches files starting from the |
| 29 | +current working directory. |
| 30 | +.SH OPTIONS |
| 31 | +These programs follow the usual GNU command line syntax, with long |
| 32 | +options starting with two dashes ('\-'). |
| 33 | +A summary of options is included below. |
| 34 | +.TP |
| 35 | +.B \-h, \-\-help |
| 36 | +Show a summary of options. |
| 37 | +.TP |
| 38 | +.B \-v, \-\-verbose |
| 39 | +Print all checked file names and additional information. |
| 40 | +.TP |
| 41 | +.B -i, --ignore IGNORE |
| 42 | +Ignore the specified subdirectory or file path. |
| 43 | +.TP |
| 44 | +.B -d, --disable DISABLE |
| 45 | +Comma-separated list of checks to disable. Use \fIall\fP to disable all checks. |
| 46 | +Can be used in conjunction with \fB--enable\fP (evaluated left-to-right). |
| 47 | +For example, \fB--disable all --enable trailing-whitespace\fP enables a |
| 48 | +single check while disabling all others. |
| 49 | +.TP |
| 50 | +.B -e, --enable ENABLE |
| 51 | +Comma-separated list of checks to enable. Use \fIall\fP to enable all checks. |
| 52 | +Can be used in conjunction with \fB--disable\fP (evaluated left-to-right). |
| 53 | +For example, \fB--enable all --disable trailing-whitespace\fP enables all |
| 54 | +checks except the specified one. |
| 55 | +.TP |
| 56 | +.B --list |
| 57 | +List enabled checkers and exit. Useful to see which checkers would be |
| 58 | +used with a given set of \fB--enable\fP and \fB--disable\fP options. |
| 59 | +.TP |
| 60 | +.B --max-line-length MAX_LINE_LENGTH |
| 61 | +Maximum number of characters allowed on a single line. |
| 62 | +.TP |
| 63 | +.B -s, --sort-by SORT_BY |
| 64 | +Comma-separated list of fields used to sort errors. Available fields: |
| 65 | +\fIfilename\fP, \fIline\fP, \fIerror_type\fP. |
| 66 | +.TP |
| 67 | +.B -j, --jobs N |
| 68 | +Run in parallel with \fBN\fP processes. Defaults to \fIauto\fP, which sets |
| 69 | +\fBN\fP to the number of logical CPUs. Values less than one are treated as \fB1\fP. |
| 70 | +.TP |
| 71 | +.B -V, --version |
| 72 | +Show the program's version number and exit. |
| 73 | +.SH SEE ALSO |
| 74 | +.BR sphinx-build (1) |
0 commit comments