SwiftFormat v0.48.12 Release Notes

Release Date: 2021-10-02 // over 2 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