24 Commits
Author SHA1 Message Date
SUTHEESH SUKUMARAN cf424cb2b3 Add --line-wrap-threshold option for length-based wrapping (#2510) 2026-04-27 07:19:05 -07:00
Copilotandcalda ebcb440df9 Avoid wrapping inside parens of function declarations with no parameters (#2467)
Co-authored-by: calda <1811727+calda@users.noreply.github.com>
2026-04-11 12:26:55 -07:00
Copilotandcalda 4980eda912 Fix wrapArguments incorrectly applied to async function declarations instead of wrapParameters (#2407)
Co-authored-by: calda <1811727+calda@users.noreply.github.com>
2026-03-03 08:09:28 -08:00
Copilotandcalda 3bc29e1ea9 Fix guard…else indentation in wrapArguments with wrap-conditions (#2368)
Co-authored-by: calda <1811727+calda@users.noreply.github.com>
2026-03-03 08:09:27 -08:00
Cal Stephens b755b34f69 Wrap closing paren of single-argument functions and collections if needed (#2281) 2026-01-25 09:02:04 -08:00
Nick Lockwood a605b2854c Fix unexpected wrapping of closing paren 2025-10-04 14:26:21 +01:00
Nick Lockwood 6ea6ae64c7 Add new rules to project .swiftformat file 2025-10-04 08:46:46 +01:00
Nick Lockwood 035ce340d4 Make trailingCommas removal more strict 2025-09-22 19:13:36 -07:00
Cal Stephens 832e06822d Add option to disallow partial wrapping of functions and collections (#2186) 2025-09-22 19:13:36 -07:00
Cal Stephens 5bfbb67f6f Update rule tests to use multi-line strings (#2168) 2025-09-22 19:13:35 -07:00
Cal Stephens eae5180f6d Update --wrap-return-type never to work with --allman true (#2132) 2025-07-13 11:32:06 -07:00
Cameron PulsfordandCal Stephens a65ea804ca Add --trailingcommas collections-only option to opt out of Swift 6.1 trailing comma support (#2081)
Co-authored-by: Cal Stephens <cal.stephens@airbnb.com>
2025-07-13 11:32:06 -07:00
Cal Stephens 760c32756c Add rule to remove redundant public access control from declarations in internal types (#2075) 2025-07-13 11:32:06 -07:00
Cal Stephens 6746ecdf06 Fix issue where --wrapeffects option would incorrectly unwrap async let properties (#2048) 2025-05-13 19:56:49 -07:00
Cal Stephens 08b0e0ad33 Rename spacingGuards rule to blankLinesAfterGuardStatements (#2036) 2025-05-12 20:19:20 -07:00
Cal Stephens 6efd3d9ca0 Fix open paren wrapping edge case with closures and wrapped return 2025-05-12 20:18:43 -07:00
Cal Stephens 24334e162e Add more wrapArguments test cases (#2027) 2025-05-12 20:18:43 -07:00
Mike Kasianowicz b2b8562c93 wrapreturntype: never (#2016) 2025-05-12 20:18:43 -07:00
Cal Stephens 782e9522b9 Update --wrapeffects and --wrapreturntype to support protocol requirements (#2018) 2025-05-12 20:18:43 -07:00
Eric Horacek 184cd81df5 Add multiline function chains rule (#1981) 2025-05-12 20:18:43 -07:00
NikeKov a426017c23 [New rule] spacingGuards (#1804) 2025-05-12 20:18:42 -07:00
Cal Stephens 0548f0dd26 Fix support for --closingparen same-line --callsiteparen balanced (#2015) 2025-05-02 14:25:29 -07:00
Nick Lockwood add0c34108 Rename propertyType rule to propertyTypes 2024-11-16 20:23:01 +00:00
Cal Stephens 6ce3bd52c1 Implement each rule in a separate file (#1782) 2024-11-09 11:26:22 +00:00