github nicklockwood/SwiftFormat 0.64.5

4 hours ago
  • Fixed filtered config sections applying to files that do not match, and made matching sections apply in order
  • Improved handling of unsafe in for loops and expression parsing
  • Fixed unusedArguments removing arguments referenced by lifetime attributes
  • Fixed redundantEquatable removing == when stored properties are conditionally compiled
  • Fixed preferForLoop converting forEach calls used as expressions
  • Fixed noForceUnwrapInTests converting force unwraps inside key paths
  • Fixed hoistTry placement around comments, member chains after closures, and multiline declarations
  • Fixed environmentEntry placing default values after attributes on separate lines
  • Fixed braces joining closure statements onto preceding closing braces
  • Fixed redundantClosure treating parentheses on a new line as a call
  • Fixed redundantReturn removing early returns in branches ending with throw
  • Fixed extensionAttributes doubling comment indentation after removed attributes
  • Updated duplicateImports to remove ordinary duplicate imports across code boundaries
  • Fixed docComments leaving trailing spaces when converting documentation comments

Don't miss a new SwiftFormat release

NewReleases is sending notifications on new releases.