SourceKitten v0.13.0 Release Notes

  • ๐Ÿ’ฅ Breaking
    • None.
    โœจ Enhancements
    • โž• Add format command that re-indents a Swift file much like pasting into Xcode would. This command optionally takes the following parameters:

      • --file (string): relative or absolute path of Swift file to format
      • --no-trim-whitespace: trim trailing whitespace
      • --use-tabs: use tabs to indent
      • --indent-width (integer): number of spaces to indent
        JP Simard
    • โž• Add --spm-module [ModuleName] flag to doc to document Swift Package Manager modules. Need to run swift build prior to running sourcekitten doc. The right Swift toolchain version must also be selected (by setting TOOLCHAIN_DIR or similar).
      JP Simard

    • โž• Add support TOOLCHAINS environment variable to selecting alternative toolchains for loading SourceKitService.
      Norio Nomura

    ๐Ÿ› Bug Fixes
    • โž• Add support for handling CXCursor_UnexposedDecl declarations when documenting Objective-C.
      JP Simard realm/jazzy#543