Wednesday, October 01, 2025

Re: Searching for a way to check source files to adhere to style(9)

> issue pops up regularly here. When searching for tools to automatically
> (re)format a source file to match style(9), I gave up on clang-format
> and such and just provided a source file to some AI prompting it to
> "Format according to OpenBSD style(9)". The result looks promising.

I understand that you don't want cli tools so I hope I'm not upsetting
you when suggesting indent(1)

Maybe it's not 100% style(9) but I was always happy with followig
config:

$ cat .indent.pro
-bap
-br
-ce
-ci4
-cli0
-d0
-di0
-i8
-ip
-l79
-nbc
-ncdb
-ndj
-ei
-nfc1
-nlp
-npcs
-psl
-sc
-sob

No comments:

Post a Comment