github nicklockwood/SwiftFormat 0.64.8

one hour ago
  • Added --timeout to configure the rule timeout, which now measures per-thread CPU time where supported and retains a wall-clock limit
  • Added --max-concurrent-files to limit concurrent file discovery and formatting
  • Added a Code Climate reporter and --relative-paths for text, JSON, and XML lint reports
  • Added --wrap-generic-requirements and --wrap-where-clause to control wrapping in generic declarations
  • Added --doc-comments before-declarations-and-local-functions to allow doc comments on local functions that follow executable code
  • Made wrapFunctionBodies, wrapIfExpressionBodies, wrapIfStatementBodies, wrapLoopBodies, and wrapPropertyBodies opt-in
  • Improved wrapArguments balancing for multiline arguments and fixed indentation of braces and else after wrapping a multiline condition
  • Fixed wrapping of #if and #elseif conditions, which must stay on one line
  • Fixed ifExpressions converting ternaries whose leading try or await applies to the branches
  • Fixed hoistTry and hoistAwait moving effect keywords out of closure capture lists
  • Fixed swiftformat:disable:next directives targeting the wrong line after a blank line is inserted above them
  • Fixed redundantPublic removing public from members of types nested in package extensions
  • Fixed redundantOverload removing overrides and overloads required by module-qualified conformances in the same file
  • Fixed noExplicitOwnership removing required ownership modifiers from noncopyable types and their Self parameters
  • Fixed declaration parsing looping when a local type contains nested types or conditional compilation blocks
  • Fixed yodaConditions separating macros from their trailing closures
  • Fixed redundantReturn leaving redundant bare returns in trailing do blocks
  • Fixed swiftTestingTestCaseNames generating invalid raw identifiers from display names with escape sequences
  • Fixed indentation of wrapped chains inside multiline string interpolations
  • Improved redundantParens handling of optional any and some types in Swift 6.4
  • Fixed redundantMemberwiseInit handling of implicit nil defaults and explicitly typed @Environment properties
  • Fixed opaqueGenericParameters handling of same-type constraints on associated types
  • Fixed modifierOrder misinterpreting properties named open
  • Fixed trailingCommas adding commas to bracketed expressions that could be types
  • Updated redundantExtendedLifetime to handle redundant lifetime extensions in defer blocks
  • Fixed unused-option warnings for rules enabled in configuration files
  • Improved snapshot lookup and configuration processing on large repositories, and stopped rewriting unchanged formatting caches
  • Optimized macOS release builds for speed and updated the Ruby selection for the GitHub Pages build

Don't miss a new SwiftFormat release

NewReleases is sending notifications on new releases.