Nick Lockwood
b48ffbc0bb
Fix docs typo
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
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
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
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
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
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
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
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
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
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
NachoSoto
e7347a7315
Add redundantSendable rule ( #2394 )
2026-03-03 08:09:28 -08:00
Copilot
c40b283622
Add --suite-name-format option to swiftTestingTestCaseNames rule ( #2384 )
...
Co-authored-by: calda <1811727+calda@users.noreply.github.com >
2026-03-03 08:09:28 -08:00
Copilot
aaedb601ea
Add redundantSwiftTestingSuite rule ( #2385 )
...
Co-authored-by: Cal Stephens <cal@calstephens.tech >
2026-03-03 08:09:28 -08:00
Cal Stephens
5b7bab1983
Add --test-case-name-format raw-identifiers option to swiftTestingTestCaseNames rule (enabled by default) ( #2359 )
2026-03-03 08:09:27 -08:00
Giyeop Hyeon (Jamie)
0c8a4613ef
Add preferExplicitFalse rule ( #2357 )
2026-03-03 08:09:27 -08:00
Cal Stephens
6d72a96404
Keep unusedPrivateDeclarations disabled by default ( #2321 )
2026-01-25 09:02:04 -08:00
Cal Stephens
4888e64821
Update redundantMemberwiseInit rule to support result builder attributes ( #2304 )
2026-01-25 09:02:04 -08:00
Cal Stephens
c0558072ab
Remove --optional-for-each convert option
2026-01-25 09:02:04 -08:00
Manny Lopez
3d4dc98a01
Split wrapSingleLineBodies into wrapPropertyBodies and wrapFunctionBodies ( #2298 )
2026-01-25 09:02:04 -08:00
Miguel Jimenez
b993e17594
Add redundantViewBuilder Rule ( #2297 )
2026-01-25 09:02:04 -08:00
Manny Lopez
688ff0cae6
Add wrapSingleLineBodies rule ( #2295 )
2026-01-25 09:02:04 -08:00
Cal Stephens
20512c8860
Update preferForLoop rule to support optional forEach calls with --optional-for-each convert ( #2294 )
2026-01-25 09:02:04 -08:00
Cal Stephens
8917aa0313
Add --prefer-synthesized-init-for-internal-structs option ( #2291 )
2026-01-25 09:02:04 -08:00
Nick Lockwood
7aaff1cab5
Enable noForceUnwrapInTests rule by default
2026-01-25 09:02:04 -08:00
Nick Lockwood
079939f88e
Enable more rules by default
2026-01-25 09:02:04 -08:00
David Roman
d3b707d7cc
Add preserve ifdef indent mode ( #2269 )
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
b8984b48be
Add validateTestCases and testSuiteAccessControl rules ( #2249 )
2026-01-25 09:02:04 -08:00
Manny Lopez
0a0ec17cf3
Add simplifyGenericConstraints rule ( #2243 )
2026-01-25 09:02:04 -08:00
Nick Lockwood
e223f7d6d6
Always strip "default" option from help description
2025-10-16 07:16:56 +01:00
Nick Lockwood
7a0921d301
Filter redundant default arguments from options help
2025-10-16 07:16:56 +01:00
Nick Lockwood
fa65ed6e64
Improve acronyms rule
2025-10-04 11:10:28 +01:00
Cal Stephens
fe0dd073ec
Update singlePropertyPerLine to preserve async let declarations ( #2210 )
2025-09-22 19:13:36 -07:00
Cal Stephens
ebdc24c4a5
Improve support for XCTAssertEqual and XCTAssertNil in noForceUnwrapInTests ( #2208 )
2025-09-22 19:13:36 -07:00
Cal Stephens
9fbd4f0909
Add redundantAsync rule ( #2207 )
2025-09-22 19:13:36 -07:00
Cal Stephens
cd87505ae5
Add redundantThrows rule ( #2206 )
2025-09-22 19:13:36 -07:00
Cal Stephens
5e82ae3ad6
Rename throwingTests rule to noForceTryInTests
2025-09-22 19:13:36 -07:00
Cal Stephens
703593f551
Add noForceUnwrapInTests rule ( #2204 )
2025-09-22 19:13:36 -07:00
Cal Stephens
fbbe980923
Add preferFinalClasses rule ( #2196 )
2025-09-22 19:13:36 -07:00
Cal Stephens
d1e430c6a0
Add --default-test-suite-attributes option to preferSwiftTesting rule ( #2192 )
2025-09-22 19:13:36 -07:00
Cal Stephens
23e43f7ee4
Update trailingClosures rule to support multiple trailing closures ( #2190 )
2025-09-22 19:13:36 -07:00
via-guy
33f7a6a108
Update propertyTypes rule support array and dictionary literals ( #2185 )
...
Co-authored-by: Cal Stephens <cal@calstephens.tech >
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
5b343adc26
Add --type-body-marks remove option to organizeDeclarations ( #2175 )
2025-09-22 19:13:36 -07:00
Nick Lockwood
d802c75749
Generalize list formatter and dropped the Oxford comma
2025-09-22 19:13:35 -07:00
Cal Stephens
d9b43df8b0
Update redundantPublic rule to apply to private types ( #2167 )
2025-09-22 19:13:35 -07:00
Cal Stephens
1e2aac8da6
Add support for Swift 6.2 raw identifiers ( #2166 )
2025-09-22 19:13:35 -07:00