3 ms·
I'm a big believer in automating process where possible - instead of trying to remember style rules or dealing with inconsistent code across a codebase, just wr
by rwalker 13y ago
I'm a big believer in automating process where possible - instead of trying to remember style rules or dealing with inconsistent code across a codebase, just write a script to deal with it!
This one was particularly fun to write because it was an excuse to use the awesome parcon library (http://www.opengroove.org/parcon/parcon-tutorial.html http://www.opengroove.org/parcon/parcon-tutorial.html)
- rogerbinns 13y agoI'm curious why this was written as a checker instead of something that actually fixed the problems instead of whining at a human to do so? Automation to me is the editor making it all right with minimal human thought or micro-management. For Eclipse and Java, it has a Format Source menu as well as being able to trigger that on a save, so it all just works. With Objective C, Xcode is no help beyond some crude indenting. I bought a copy of Jetbrains' AppCode with their similar source formatting functionality being a major reason. The usual tools like indent don't support Objective C, and the two free tools I found were far too painful.