14 Commits

Author SHA1 Message Date
Copilot 357efe0348 Add --test-case-access-control option for testSuiteAccessControl rule (#2457)
Co-authored-by: calda <1811727+calda@users.noreply.github.com>
2026-04-11 12:26:55 -07:00
Cal Stephens f5b4809d2c Update redundantMemberwiseInit to preserve inits with attributes (#2346) 2026-01-29 19:53:51 -08:00
Rui Chen 9e49c274fe Back-deploy range containment check
Replace macOS 13-only `ClosedRange.contains(_:)` overload for range
containment with a back-deployable check using lowerBound/upperBound
comparisons. This allows SwiftFormat to build without requiring
platforms: [.macOS(.v13)] in Package.swift.

Build tested:
- swift build --configuration release
- swift test --filter DeclarationTests (1 test passed)
2026-01-29 19:53:51 -08:00
Cal Stephens 4888e64821 Update redundantMemberwiseInit rule to support result builder attributes (#2304) 2026-01-25 09:02:04 -08:00
Cal Stephens d02ba73bb5 Update typeSugar to only preserve optionals in structs with a synthesized memberwise initializer (#2260) 2026-01-25 09:02:04 -08:00
Cal Stephens fbbe980923 Add preferFinalClasses rule (#2196) 2025-09-22 19:13:36 -07:00
Cal Stephens 5e7882baa8 Improve type-related helpers by adding TypeName type (#2187) 2025-09-22 19:13:36 -07:00
Milo (Amir) Ardalan d2fba2c7fe Add --typeblanklines insert option to blankLinesAtStartOfScope and blankLinesAtEndOfScope rules
Co-authored-by: Cal Stephens <cal.stephens@airbnb.com>
2025-07-13 11:32:06 -07:00
Cal Stephens d07ba4e6a7 Update redundantPublic rule to handle extensions of internal types (#2077) 2025-07-13 11:32:06 -07:00
Cal Stephens b9d5940c01 Fix edge cases in modifiersOnSameLine rule (#2076) 2025-07-13 11:32:06 -07:00
Nick Lockwood c42207bd41 Update .swiftformat swiftfversion 2025-07-13 11:32:06 -07:00
Cal Stephens 3d843a0636 Add AutoUpdatingIndex and AutoUpdatingRange 2025-05-12 20:18:43 -07:00
Cal Stephens 54be59fd59 Fix crash in organizeDeclarations rule due to invalidated declaration references (#1971) 2025-05-12 20:18:43 -07:00
Cal Stephens 8300861f34 Remove DeclarationV1 API, rename DeclarationV2 to Declaration 2025-05-12 20:18:43 -07:00