Josep Bigorra got different Lisp indentation from different editors and again in continuous integration (CI). A prototype pretty-printer then rewrote nearly every line of a 300-line file. Those experiments shaped Sift, a formatter and linter for four Lisp dialects.

  • Keep the source details. Sift uses one reader that records where each form, comment and delimiter came from. Bigorra’s earlier parser-plus-line-scanner setup lost track of comments inside expressions.
  • Keep the patch small. The formatter preserves line breaks and flags long lines separately. Its tests format each fixture twice and check that the second pass changes nothing.
  • Use the same rules everywhere. The editor and CI share the engine and its stable rule codes. CI reports the patch without rewriting the working tree.

Try a new formatter on a file people already maintain. Look at the diff, run it again, and make sure CI agrees with the editor. A clean demo file won’t tell you how much noise the tool adds to an ordinary review.