Tim van der Molen (2021-04-04 17:12 +0200):
> Tim van der Molen (2021-04-04 17:08 +0200):
> > AFAIK, -Wstyle does include style messages, but it leaves out the
> > OpenBSD-specific ones. For example:
> > 
> > $ echo '.Dd April 4, 2021\n.Os' | mandoc -Tlint
> > mandoc: <stdin>:1:5: STYLE: Mdocdate missing: Dd April 4, 2021 (OpenBSD)
> > mandoc: <stdin>: WARNING: missing manual title, using UNTITLED: EOF
> > mandoc: <stdin>: STYLE: RCS id missing: (OpenBSD)
> > mandoc: <stdin>: WARNING: no document body
> > 
> > $ echo '.Dd April 4, 2021\n.Os' | mandoc -Tlint -Wstyle
> > mandoc: <stdin>: WARNING: missing manual title, using UNTITLED: EOF
> > mandoc: <stdin>: WARNING: no document body

Stupid example, sorry. I meant something like this:

$ echo '.Dd 2021-04-04\n.Os' | mandoc -Tlint | grep STYLE
mandoc: <stdin>:1:5: STYLE: legacy man(7) date format: Dd 2021-04-04
mandoc: <stdin>:1:5: STYLE: Mdocdate missing: Dd 2021-04-04 (OpenBSD)
mandoc: <stdin>: STYLE: RCS id missing: (OpenBSD)

$ echo '.Dd 2021-04-04\n.Os' | mandoc -Tlint -Wstyle | grep STYLE
mandoc: <stdin>:1:5: STYLE: legacy man(7) date format: Dd 2021-04-04

Reply via email to