1574 Commits
Author SHA1 Message Date
Nick Lockwood ad7707bd34 Update for 0.52.11 release 2023-12-06 00:05:51 +00:00
Cal Stephens 0bd9f0da27 Fix indent for wrapped conditional assignment expressions 2023-12-05 23:46:40 +00:00
Nick Lockwood 79d219464a Use isUnwrapOperator where applicable 2023-12-05 20:00:02 +00:00
Nick Lockwood 2bb148e73e Fix assertion failure in redundantSelf rule 2023-12-05 20:00:02 +00:00
Nick Lockwood f89e4e4620 Fix raw string parsing bug 2023-12-05 20:00:02 +00:00
Cal Stephens 90d9d20b12 Update if/switch expression workaround for Swift 5.9 bug to handle as! cast 2023-12-05 20:00:02 +00:00
Nick Lockwood cac06079ce Update for 0.52.10 release 2023-11-14 23:08:29 +00:00
Nick Lockwood e621e9a17c Fix unsafe conversion of conditional switch cases to expression 2023-11-14 22:54:08 +00:00
Nick Lockwood d538b2fbf7 Refactor conditionalBranches helper 2023-11-14 22:54:08 +00:00
Nick Lockwood 3b41d2ae4c Fix enumNamespaces rule breaking import struct/class 2023-11-14 22:54:08 +00:00
Nick Lockwood d37a477177 Update for 0.52.9 release 2023-11-11 08:06:23 +00:00
Cal Stephens 14963bde23 Fix issue where switch case with multiple where clauses could parse incorrectly 2023-11-11 07:51:55 +00:00
Cal Stephens 52b9aaf330 Fix issue where enumNamespaces rule wouldn't be applied following import statement 2023-11-11 07:51:55 +00:00
Nick Lockwood 83ae67adc0 Fix blankLineAfterImports for @preconcurrency attribute 2023-11-11 07:51:55 +00:00
Nick Lockwood 311df920b8 Fix redundantClosure when redundantReturn disabled 2023-11-11 07:51:55 +00:00
Cal Stephens c1e4c4861d Fix issue where if/switch expressions with 'as?' cast would break build in Swift 5.9 2023-11-11 07:51:55 +00:00
Cal Stephens 2b0c472d5e Fix issue where closure with if expression in method call would be unexpectedly removed 2023-11-11 07:51:55 +00:00
Nick Lockwood b31b80ffb6 Fix redundantClosure inside conditional statement 2023-11-11 07:51:55 +00:00
Nick Lockwood 4c8386a35e Update for 0.52.8 release 2023-10-17 03:54:35 -07:00
Cal Stephens fedf5d7dfc Update redundantClosure rule to handle cases where if/switch expression would not be allowed 2023-10-16 02:55:27 -07:00
Nick Lockwood 69fdbd9707 Fix docComments rule for macros 2023-10-14 08:50:16 +01:00
Nick Lockwood 0214767055 Only convert docComments when entire block is eligible 2023-10-08 20:24:53 +01:00
Nick Lockwood 579dc9165b Refactor docComments slightly 2023-10-08 19:25:25 +01:00
Nick Lockwood 7b0f378f58 Update for 0.52.7 release 2023-10-06 19:56:02 +01:00
Cal Stephens 0a7bb6bc5d Improve conditionalAssignment and redundantClosure rules by parsing full expressions (#1539) 2023-10-04 21:29:24 +01:00
Nick Lockwood adb2c6036e Fix redundantClosure leaving stray try or await 2023-10-02 23:34:48 +01:00
Nick Lockwood 5d4a7202a2 Fix example 2023-10-02 23:33:58 +01:00
Nick Lockwood dfa38a7335 Update for 0.52.6 release 2023-10-01 07:42:17 +01:00
Nick Lockwood 1b3d72a9f7 Fix redundantReturn with consecutive if statements 2023-10-01 07:32:59 +01:00
Nick Lockwood 7eb1706ba2 Update for 0.52.5 release 2023-09-30 09:15:21 +01:00
Nick Lockwood 4adf5b3172 Remove arbitrary unwrap threshold for braces rule 2023-09-30 07:25:47 +01:00
Nick Lockwood d5197fb213 Fix broken indent inside #ifdef after comment 2023-09-29 18:48:02 +01:00
Nick Lockwood 5f14622a5a Allow operators to be marked as effect-capturing 2023-09-29 18:48:02 +01:00
Nick Lockwood 31a41ef53a Fix docComments with Note: prefix 2023-09-28 07:50:21 +01:00
Nick Lockwood 7d60342368 Fix docComments rule inside #if statement 2023-09-28 07:45:41 +01:00
Cal Stephens d6d29b0dcd [#1525] Fix issue where removing return from failable init would break build 2023-09-28 07:21:19 +01:00
Nick Lockwood 281a485e86 Fix unused variable warning 2023-09-25 23:26:35 +01:00
Nick Lockwood 1f8b956bb9 Update for 0.52.4 release 2023-09-17 22:12:20 +01:00
Nick Lockwood 31e8532a97 Update .swiftformat config for project 2023-09-17 22:12:20 +01:00
Nick Lockwood 21db8026d2 Improve default indent after wrapping conditions 2023-09-17 22:12:20 +01:00
Nick Lockwood 78c4a2bcf8 Fix --wrapconditions after-first when first line is comment 2023-09-17 22:12:20 +01:00
Cal Stephens a6254686ed Update sortTypealiases rule to also remove duplicates 2023-09-17 22:12:20 +01:00
Nick Lockwood 52f16623ab Add fixes for parameter packs 2023-09-17 22:12:20 +01:00
Nick Lockwood 712a3bb50e Improve "failed to terminate" error message 2023-09-17 22:12:19 +01:00
Nick Lockwood 5b5e76aefd Fix docComments false positives 2023-09-17 19:38:37 +01:00
Nick Lockwood 5097994fdb Fix redundantLet in ViewBuilder modifier 2023-09-15 21:26:17 +01:00
Nick Lockwood 89185d1da7 Add test for incorrect use of keyword matching 2023-09-15 19:18:15 +01:00
Nick Lockwood 087e633245 Fix redundantLet after @MainActor or @Sendable 2023-09-15 19:17:45 +01:00
Nick Lockwood 1c1bf3b72a Update for 0.52.3 release 2023-09-02 09:14:14 +01:00
Nick Lockwood f5e3375fba Fix incorrect hoist of try inside multiline string 2023-09-02 09:02:32 +01:00