github nicklockwood/SwiftFormat 0.48.12

latest releases: 0.54.6, 0.55-beta-15, 0.55-beta-14...
3 years ago

The redundantSelf rule now removes self from shadowed variable references where permitted

  • Fixed bug where self was not correctly removed on the line following an assignment
  • Fixed some cases where self was incorrectly removed from @dynamicMemberLookup members
  • Fixed error raised where removing self caused ambiguity with global Swift functions
  • Function parameters with shadowed names are now correctly marked as unused
  • The --selfrequired option now applies to members, not just @autoclosure arguments
  • Fixed trailing comment placement when using wrapEnumCases rule
  • Fixed indenting of wrapped chained functions after a closing paren or square bracket
  • Fixed bug where some(Void) was converted to someVoid
  • Fixed potential range bounds crash in editDistance() function
  • Now uses automatic test discovery on Linux instead of XCTestManifests file

Don't miss a new SwiftFormat release

NewReleases is sending notifications on new releases.