github nicklockwood/SwiftFormat 0.58.7

4 hours ago
  • Fixed redundantSelf not being applied inside if #available(...) { ... } clauses
  • Fixed fileHeader rule incorrectly setting creation year to current when file path contains spaces
  • Fixed mis-insertion for nil-init rule related to optional closure return values
  • Fixed unusedPrivateDeclarations false positive when call site was outside enabled range
  • Fixed sortImports rule incorrectly moving // swift-tools-version: comment directive
  • Fixed hoistTry rule sometimes producing mangled code when hoisting across line boundaries
  • Fixed crash in --ruleinfo command when rule options exceed the old max length requirement
  • Fixed crash in unusedArguments due to scope range bug

Don't miss a new SwiftFormat release

NewReleases is sending notifications on new releases.