<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Hi all,</div><div class=""><br class=""></div><div class="">If someone is looking for a starter project in our tooling support area, here’s one you can dig your teeth into:</div><div class=""><br class=""></div><div class="">SourceKit contains indentation logic that is not exposed in the libIDE library; this is not desirable, primarily because SourceKit is not cross-platform. Here are some steps to improve on this:</div><div class=""><br class=""><div class=""><span class="Apple-tab-span" style="white-space:pre">        </span>• Move the indentation logic from SourceKit to libIDE. Have SourceKit just expose the functionality contained in libIDE.<br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre">        </span>• Start a 'swift-format’ command-line tool that uses the indentation mechanism from libIDE; given a file and source range it auto-indents it.<br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre">        </span>• See prior work for 'clang-format' (<a href="http://clang.llvm.org/docs/ClangFormat.html" class="">http://clang.llvm.org/docs/ClangFormat.html</a>) for investigation on how to specify and provide formatting options.</div></div><div><font color="#5856d6" class=""><br class=""></font>This is tracked via&nbsp;<a href="https://bugs.swift.org/browse/SR-146" class="">https://bugs.swift.org/browse/SR-146</a></div><div><br class=""></div><div>-Argyrios</div></body></html>