github nicklockwood/SwiftFormat 0.48.0

latest releases: 0.54.6, 0.55-beta-15, 0.55-beta-14...
3 years ago
  • Added --emptybraces to control how empty braces are formatted
  • The redundantReturn rule now removes redundant return statements in Void functions
  • The redundantParens rule now removes redundant parens around closure arguments
  • Fixed parsing error with complex guard statements
  • Extended prefersKeyPath to support contains, allSatisfy and filter methods
  • Fixed matching of excluded paths containing ../
  • Added support for using globs/wildcards in input paths
  • Eliminated false positives in change list when using --lint mode
  • File header comments are now inserted after the shebang/hashbang in executable Swift scripts
  • Xcode Extension now silently ignores rules requiring file info that isn't available to extensions
  • Fixed bug where wrapEnumCases rule was incorrectly applied to if case or guard case
  • Added --report argument for exporting formatting changes or lint violations as a JSON file
  • Improved tab layout in SwiftFormat for Xcode companion app

Don't miss a new SwiftFormat release

NewReleases is sending notifications on new releases.