Copilot and calda
18d1cf6542
Fix docComments rule incorrectly converting enum case group comments to doc comments ( #2557 )
...
Co-authored-by: calda <cal.stephens@airbnb.com >
2026-06-14 16:47:38 -07:00
Cal Stephens
af9c8103ee
Remove redundantStateInit rule ( #2554 )
2026-06-11 14:26:00 -07:00
Cal Stephens
334a8487cd
Update redundantStateInit to not apply if the @State property declaration has an initial value ( #2552 )
2026-06-11 11:18:18 -07:00
Copilot and calda
614f1606be
Add before-non-local-declarations value for --doc-comments ( #2550 )
...
Co-authored-by: calda <cal.stephens@airbnb.com >
2026-06-11 11:06:21 -07:00
Copilot
1178e93112
Ignore top-level macro declarations in markTypes ( #2547 )
2026-06-09 15:15:11 -07:00
Cal Stephens
7015757c20
Update redundantSwiftUIGroup to remove Group containing single view ( #2546 )
2026-06-09 10:44:13 -07:00
Cal Stephens
ce8eb9e49b
Add redundantSwiftUIGroup rule ( #2543 )
2026-06-05 18:09:49 -07:00
Cal Stephens
e06bef5d14
Add redundantStateInit rule ( #2541 )
2026-06-05 13:31:24 -07:00
Copilot and calda
52d392a330
Fix blankLinesBetweenScopes incorrectly inserting blank line before #elseif directives ( #2534 )
...
Co-authored-by: calda <1811727+calda@users.noreply.github.com >
2026-05-17 16:21:51 +09:00
Eric Horacek
cc6688c1c4
Parse freestanding macro declarations ( #2532 )
2026-05-13 07:09:20 +09:00
Doug
d17ef62654
Add --indent-blank-lines option to match the surrounding context ( #2527 )
2026-05-06 18:44:59 -07:00
Copilot and calda
fd5b4ac79c
Fix false positive redundantSendable for indirect enum ( #2529 )
...
Co-authored-by: calda <1811727+calda@users.noreply.github.com >
2026-05-06 07:56:26 -07:00
SUTHEESH SUKUMARAN
cf424cb2b3
Add --line-wrap-threshold option for length-based wrapping ( #2510 )
2026-04-27 07:19:05 -07:00
Copilot and calda
d0425c3f42
Add --type-blank-lines consistent option ( #2500 )
...
Co-authored-by: calda <1811727+calda@users.noreply.github.com >
2026-04-27 07:19:05 -07:00
Nick Lockwood
b48ffbc0bb
Fix docs typo
2026-04-27 07:01:13 -07:00
Alexey
1e0aaaa516
Fix unsafe keyword dot-spacing edge case ( #2513 )
2026-04-27 07:01:13 -07:00
Copilot and calda
69672c5d8d
Fix redundantEquatable removing manual == for types with Any.Type stored properties ( #2503 )
...
Co-authored-by: calda <1811727+calda@users.noreply.github.com >
2026-04-27 07:01:13 -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
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 and calda
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
Copilot and calda
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
Kim de Vos
d798a8a5e3
Add new format rule for wrapping case bodies ( #2476 )
2026-04-11 12:26:55 -07:00
Manny Lopez
54f63a3822
Add redundantEmptyView rule ( #2470 )
2026-04-11 12:26:55 -07:00
Copilot and calda
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 and Cal Stephens
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 and calda
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 and calda
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 and calda
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
Copilot and calda
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 and calda
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 and calda
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 and calda
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 and calda
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 and calda
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
Kim de Vos and Cal Stephens
2c43a100bd
Sort imports by access level ( #2358 )
...
Co-authored-by: Cal Stephens <cal@calstephens.tech >
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 and calda
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 and calda
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 and calda
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 and calda
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 and calda
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 and calda
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 and Cal Stephens
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 and calda
603f28ed89
Document that propertyTypes handles Set and Dictionary literal transformations ( #2409 )
...
Co-authored-by: calda <1811727+calda@users.noreply.github.com >
2026-03-03 08:09:28 -08:00
Copilot and calda
39bdad4ac3
Update blankLinesAroundMark to insert blank line before MARK at start of scope when allowed by blankLinesAtStartOfScope config ( #2405 )
...
Co-authored-by: calda <1811727+calda@users.noreply.github.com >
2026-03-03 08:09:28 -08:00
Copilot and calda
22c2bb689e
Remove spaces around :: module selection operator in spaceAroundOperators ( #2402 )
...
Co-authored-by: calda <1811727+calda@users.noreply.github.com >
2026-03-03 08:09:28 -08:00
Copilot and calda
b27a678852
Fix redundantInit rule: preserve .init with trailing closure on collection types for Swift < 6.4 ( #2396 )
...
Co-authored-by: calda <1811727+calda@users.noreply.github.com >
2026-03-03 08:09:28 -08:00
NachoSoto
e7347a7315
Add redundantSendable rule ( #2394 )
2026-03-03 08:09:28 -08:00
Copilot and calda
832cc7b94c
Update simplifyGenericConstraints to avoid adding duplicate constraints ( #2392 )
...
Co-authored-by: calda <1811727+calda@users.noreply.github.com >
2026-03-03 08:09:28 -08:00
Copilot and calda
611e1525b5
Update swiftTestingTestCaseNames to handle test suites without @Suite macro ( #2390 )
...
Co-authored-by: calda <1811727+calda@users.noreply.github.com >
2026-03-03 08:09:28 -08:00