github nicklockwood/SwiftFormat 0.61.0

9 hours ago
  • Added wrapCaseBodies rule
  • Added redundantEmptyView rule
  • Added preferSwiftStringAPI rule
  • Added --test-case-access-control option for testSuiteAccessControl rule
  • Updated sortImports to support --import-grouping length,alpha
  • Updated --self-required to support assignment type names like OSLogMessage
  • Updated --suite-name-format default value to preserve
  • Fixed conditional import parsing with access modifiers
  • Fixed infinite loop in organizeDeclarations when opening brace has a trailing comment
  • Fixed closing brace indentation with --trimwhitespace nonblank-lines
  • Fixed indentation of multiline raw string literals with --indent-strings
  • Fixed redundantParens incorrectly removing () from @MainActor closure signatures
  • Fixed wrapping inside parens of function declarations with no parameters
  • Fixed extensionAccessControl incorrectly hoisting public onto extensions of nested internal types
  • Fixed spaceAroundParens incorrectly removing space after nonisolated(nonsending) modifier
  • Fixed noGuardInTests incorrectly transforming guard #available conditions
  • Fixed trailing comma for @convention closures
  • Fixed number handling in Swift Testing test case name conversion
  • Fixed redundantSelf inserting self. inside #if/#elseif compiler directive conditions

Don't miss a new SwiftFormat release

NewReleases is sending notifications on new releases.