Commit Graph

2822 Commits

Author SHA1 Message Date
Cal Stephens 397309e736 Update for 0.61.0 release 0.61.0 2026-04-11 12:26:55 -07:00
Cal Stephens 09fe3ee70f Disable preferSwiftStringAPI by default due to iOS 16 / macOS 13 API availability (#2495) 2026-04-11 12:26:55 -07:00
Copilot 591d9c2a1e Update prepare_release.sh to build after formatting with new SwiftFormat version (#2496)
Co-authored-by: calda <1811727+calda@users.noreply.github.com>
2026-04-11 12:26:55 -07:00
Eric Horacek 4ace97e09d Fix conditional import parsing with access modifiers (#2494)
Co-authored-by: Codex <noreply@openai.com>
2026-04-11 12:26:55 -07:00
SUTHEESH SUKUMARAN 78836b9959 Replace objc string methods with swift equivalents #2292 (#2491)
Add preferSwiftStringAPI rule (#2292)

Replaces the Objective-C bridged `replacingOccurrences(of:with:)` with
Swift-native `replacing(_:with:)`. The ObjC method has known Unicode
bugs (e.g. corrupting emoji flag sequences); the Swift equivalent is
safer, shorter, and available from Swift 5.7+.

Only the two-argument form is transformed — calls with `options:` or
`range:` are left unchanged as they have no direct Swift equivalent.
2026-04-11 12:26:55 -07:00
Copilot 05d684a648 Fix indentation of multiline raw string literals with --indent-strings (#2484)
Co-authored-by: calda <1811727+calda@users.noreply.github.com>
2026-04-11 12:26:55 -07:00
dependabot[bot] d24b89a736 Bump the github-actions group with 7 updates (#2483) 2026-04-11 12:26:55 -07:00
Copilot 835f6f287d Fix infinite loop in organizeDeclarations when opening brace has a trailing comment (#2478)
Co-authored-by: calda <1811727+calda@users.noreply.github.com>
2026-04-11 12:26:55 -07:00
Copilot c0b2441381 Skip lint CI job for PRs with no diff (#2481)
Co-authored-by: calda <1811727+calda@users.noreply.github.com>
2026-04-11 12:26:55 -07:00
Copilot a7681c91b5 Skip CI build / test jobs for PRs with empty diffs (#2479)
Co-authored-by: calda <1811727+calda@users.noreply.github.com>
2026-04-11 12:26:55 -07:00
Copilot d8245dbba7 Fix closing brace indentation with --trimwhitespace nonblank-lines (#2477)
Co-authored-by: calda <1811727+calda@users.noreply.github.com>
2026-04-11 12:26:55 -07:00
Kim de Vos d798a8a5e3 Add new format rule for wrapping case bodies (#2476) 2026-04-11 12:26:55 -07:00
acevif 93004fb971 Add Nix devShell installation guidance (#2474) 2026-04-11 12:26:55 -07:00
Manny Lopez 54f63a3822 Add redundantEmptyView rule (#2470) 2026-04-11 12:26:55 -07:00
Copilot e913427cab Fix redundantParens incorrectly removing () from @MainActor closure signatures (#2469)
Co-authored-by: calda <1811727+calda@users.noreply.github.com>
2026-04-11 12:26:55 -07:00
Copilot 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
Copilot 727c044bfa Fix extensionAccessControl incorrectly hoisting public onto extensions of nested internal types (#2461)
Co-authored-by: Cal Stephens <cal@calstephens.tech>
2026-04-11 12:26:55 -07:00
Copilot 3f4f61ba85 Update sortImports to support --import-grouping length,alpha (#2463)
Co-authored-by: calda <1811727+calda@users.noreply.github.com>
2026-04-11 12:26:55 -07:00
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
Copilot 9d60158a4a Fix spaceAroundParens incorrectly removing space after nonisolated(nonsending) modifier (#2460)
Co-authored-by: calda <1811727+calda@users.noreply.github.com>
2026-04-11 12:26:54 -07:00
Copilot 15946b503e Fix noGuardInTests incorrectly transforming guard #available conditions (#2458)
Co-authored-by: calda <1811727+calda@users.noreply.github.com>
2026-04-11 12:26:54 -07:00
dependabot[bot] b68547920f Bump the github-actions group with 5 updates (#2453) 2026-04-11 12:26:54 -07:00
Guillaume Hugues b0b756dc29 Fix trailing comma for @convention closures (#2452) 2026-04-11 12:26:54 -07:00
Copilot dce393fe93 Update --self-required to support assignment type names like OSLogMessage (#2448)
Co-authored-by: calda <1811727+calda@users.noreply.github.com>
2026-04-11 12:26:54 -07:00
Copilot 9a00c082cc Document known issue for propertyTypes rule with static factory methods on namespace types (#2449)
Co-authored-by: calda <1811727+calda@users.noreply.github.com>
2026-04-11 12:26:54 -07:00
Copilot 66986ce271 Update --suite-name-format default value to preserve (#2441)
Co-authored-by: calda <1811727+calda@users.noreply.github.com>
2026-04-11 12:26:54 -07:00
Copilot e86b840fd6 Fix number handling in Swift Testing test case name conversion (#2438)
Co-authored-by: calda <1811727+calda@users.noreply.github.com>
2026-04-11 12:26:54 -07:00
Copilot f00ffbcd17 Fix redundantSelf inserting self. inside #if/#elseif compiler directive conditions (#2436)
Co-authored-by: calda <1811727+calda@users.noreply.github.com>
2026-04-11 12:26:54 -07:00
dependabot[bot] da64ef8394 Bump the github-actions group with 5 updates (#2434) 2026-04-11 12:26:54 -07:00
Cal Stephens c8e50ff2cf Update for 0.60.1 release 0.60.1 2026-03-07 08:37:31 -08:00
Copilot 7872f50c73 Deprecate redundantProperty rule, rename to redundantVariable (#2433)
Co-authored-by: calda <1811727+calda@users.noreply.github.com>
2026-03-07 08:37:31 -08:00
Copilot 6b29108aca Preserve redundantProperty variable when explicit type differs from enclosing return type (#2432)
Co-authored-by: calda <1811727+calda@users.noreply.github.com>
2026-03-07 08:37:31 -08:00
Copilot 5092e9143e enumNamespaces: Don't convert Swift Testing suites from struct to enum (#2429)
Co-authored-by: calda <1811727+calda@users.noreply.github.com>
2026-03-07 08:37:31 -08:00
Copilot 5b39f8e954 Fix redundantSendable leaving extra space when removing ': Sendable' with space before colon (#2428)
Co-authored-by: calda <1811727+calda@users.noreply.github.com>
2026-03-07 08:37:31 -08:00
Copilot 64bb14a2cd Fix redundantSendable incorrectly removing Sendable from types inside public extension (#2423)
Co-authored-by: calda <1811727+calda@users.noreply.github.com>
2026-03-07 08:37:31 -08:00
Cal Stephens f098405c8e Update for 0.60.0 release 0.60.0 2026-03-03 08:09:28 -08:00
Kim de Vos 7160b47f28 Fix unused argument bug in code with try? await (#2421) 2026-03-03 08:09:28 -08:00
Kim de Vos 2c43a100bd Sort imports by access level (#2358)
Co-authored-by: Cal Stephens <cal@calstephens.tech>
2026-03-03 08:09:28 -08:00
Cal Stephens 001215dfe9 Add CI lint job (#2420) 2026-03-03 08:09:28 -08:00
Nick Lockwood a962548ecf Fix incorrect replacement of && operator inside a ternary condition 2026-03-03 08:09:28 -08:00
Copilot fc3a2ccb10 Update redundantEquatable to preserve == implementation in types with Strideable conformance (#2417)
Co-authored-by: calda <1811727+calda@users.noreply.github.com>
2026-03-03 08:09:28 -08:00
Copilot 1fe1332f32 redundantParens: remove empty parens from attributes (#2414)
Co-authored-by: calda <1811727+calda@users.noreply.github.com>
2026-03-03 08:09:28 -08:00
Copilot 4876d0a888 Fix support for backtick-escaped identifiers in unusedArguments for loop check (#2415)
Co-authored-by: calda <1811727+calda@users.noreply.github.com>
2026-03-03 08:09:28 -08:00
Copilot b7e7bce7f1 Improve handling of acronyms in swiftTestingTestCaseNames rule (#2413)
Co-authored-by: calda <1811727+calda@users.noreply.github.com>
2026-03-03 08:09:28 -08:00
Copilot d2027b4095 Improve handling of switch statements with nested #if blocks (#2412)
Co-authored-by: calda <1811727+calda@users.noreply.github.com>
2026-03-03 08:09:28 -08:00
Copilot 7e749ac203 Fix unusedArguments incorrectly replacing type identifiers in typed for-loop bindings (#2411)
Co-authored-by: calda <1811727+calda@users.noreply.github.com>
2026-03-03 08:09:28 -08:00
Copilot 38d5a380ec Improve handling of switch statements with #if blocks (#2408)
Co-authored-by: calda <1811727+calda@users.noreply.github.com>
2026-03-03 08:09:28 -08:00
Copilot 6bd4fbef78 Improve how redundantType rule handles Set literals (#2410)
Co-authored-by: calda <1811727+calda@users.noreply.github.com>
2026-03-03 08:09:28 -08:00
Copilot eee75a9eba Extend unusedArguments rule to handle for loop binding variables (#2404)
Co-authored-by: Cal Stephens <cal@calstephens.tech>
2026-03-03 08:09:28 -08:00
Copilot c7c259822e Don't read .swift-version files from excluded directories (#2406)
Co-authored-by: calda <1811727+calda@users.noreply.github.com>
2026-03-03 08:09:28 -08:00