Splitting this discussion off from https://kolmafia.us/threads/25944.If you’re using IntelliJ, there’s a syntax file on the wiki. There may be files for other IDEs. Otherwise, I agree with heeheehee. I would be happy to add an ANT target to format modified source pages if I had a tool with that feature.
So, there's an existing util/format.xml in the repo, although that isn't perfect (I tried running it on a few sample files, and the diff was... large). Poking around on the wiki has https://wiki.kolmafia.us/index.php/File:KoLMafia_Style.xml so I've copied that into util/ to see if it works any better.
I've installed IntelliJ, accepted its terms of service, and run the following command:
Bash:
$ idea format -s util/intellij.xml -m '*.java' src/net/sourceforge/kolmafia/request
That was... a bit too optimistic. I think there's some amount of work to get it to match our current coding style.
But that said, I don't know that anyone's particularly attached to the current style. What if we just... switched to some established standard?