Re: [PATCH] Automate man-page linting
"G. Branden Robinson" <[email protected]> Sat, 15 Nov 2025 16:33:36 -0600
| Newsgroups | gmane.comp.gnu.findutils.bugs |
|---|---|
| Message-ID | <20251115223336.fgglchdnt5sa4omj@illithid> |
At 2025-11-15T21:13:29+0100, Bernhard Voelker wrote:
> On 11/15/25 20:03, James Youngman wrote:
> > Two patches attached; the second automates the kinds of lint checks
> > Branden recommended. The first fixes a problem that the new lint
> > check would have objected to.
>
> Sorry, I'm a bit confused.
>
> > [PATCH 1/2] Fix some lint problems in the find manual page.
>
> This overlaps with Branden's patches, doesn't it?
> * [PATCH 01/40] Fix troff error in find(1).
> * [PATCH 02/40] Replace UTF-8 character sequence in find(1)
I don't personally mind. To my view, they're obvious correctness fixes
and integrating these fixes "early" won't make my "v2" patch submission
appreciably more difficult. I'm pretty seasoned with "git rebase". :)
> >+ messages="$( ${GROFF} -t -z -ww -rCHECKSTYLE=2 -man ${srcdir}/${manpage} 2>&1 )"
> __________________________________________^^^^^^^^^^^^
>
> Is there a reason you used value 2 here?
> The original suggestion was using 3:
>
> >> groff -C -t -z -ww -rCHECKSTYLE=3 -man $(CHECKABLEMANS)
"Level 3", if you will, adds checks for only 2 things: blank lines and
leading spaces. Both of those are "cosmetic" issues; they can only make
the output a little less pretty (excessive vertical space and breaks in
weird places, respectively), but can't make it incorrect. Not in prose,
anyway.
https://cgit.git.savannah.gnu.org/cgit/groff.git/tree/tmac/an.tmac?h=1.23.0#n75
Regards,
Branden
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEh3PWHWjjDgcrENwa0Z6cfXEmbc4FAmkY/8AACgkQ0Z6cfXEm bc7YqxAAqTX+xnRWKkH9nNv/m3E4NwggxYyiHn55ZoC4nsw8Y/lL5XSkSzlbPTVa M082GRpKWkTaffbd9edNmH0A4aGO8w1U5yISPNveNPM+z3L+8twLoqUY92ufHv9m 2C7Ud8f6LhVVtLL8240cwMBzLNTmtw9UvXQcAGtCQplxynMATpsZi9Qk/abtlCb7 je0QUGiwcn1NJ8l+I/Ar09TSZZViGc2yjycWmZcn1bqH5dWhg4ahz47Ed7ysdk8o 8l+2r3SxLlRxespN3X5qfpeEhR54klCWlgvgHC9EHPvGzOGgPMdry+F3LLi/HK5z fhvcWQ7+ytekjBY8JT5QsycaAyeXDLNv1RuJ6CU4cd2SGXu+JoA/Ou0bUKLbfN4h nKrLHSqmlE7WTGbKCDmvs+eft0C2aLeg2LXuWpgLXTe0epHVV1kO0yDn5OTDYiub DagLZv29m6bgyKoWeiTvRzUGR9LzQ2ZTeTmLrqBg67/Jwp/PF6In6l03aRI0F8/g 12woCjakVmulAfky0rh2zBYTTE/t7h0mPf7gTlqFItUsHQLbflDgp0tiLCqH/g1G f0I7aTqvHcWQ29tcxNJeZtcd9cYFjrudwom1SztUvACneEEvYtwrBBiiuR+JnQDe ruJb+SkBXzHpccD4bc3Ptrz1YHvZKPjsB0sHLr0hn8kjYYwImZg= =gQCU -----END PGP SIGNATURE-----