2107 Commits
Author SHA1 Message Date
Nick Lockwood 607c7057e5 Update for 0.53.2 release 0.53.2 2024-02-17 12:38:55 +00:00
Nick Lockwood e7449430c5 Fix unusedArguments edge case 2024-02-17 12:30:35 +00:00
Nick Lockwood 843b1f9ded Fix bug with redundantSelf and @MainActor 2024-02-12 19:16:13 +00:00
Nick Lockwood 95d4039c9b Improve keyword matching 2024-02-12 19:16:13 +00:00
Nick Lockwood 6498522350 Fix bug in hoistAwait rule 2024-01-31 08:33:28 +00:00
Nick Lockwood 402367fbe9 Update for 0.53.1 release 0.53.1 2024-01-26 18:35:30 +00:00
Nick Lockwood d2148c730e Preserve internal import 2024-01-26 00:20:26 +00:00
Nick Lockwood 630cdff508 Fix unusedArguments false positive 2024-01-26 00:20:26 +00:00
Nick Lockwood ce6524c7ed Fix duplicate file header bug 2024-01-26 00:20:26 +00:00
Marat Nazirov ac414ffd4f Fix missing code wrapper in Rules.md (#1610) 2024-01-12 22:11:42 +00:00
Nick Lockwood fef156a613 Update for 0.53.0 release 0.53.0 2024-01-08 19:19:59 +00:00
Cal Stephens ea008e7be3 Don't unwrap attributes if they would exceed --maxwidth 2024-01-08 17:28:34 +00:00
Cal Stephens df2b56d581 Add wrapLoopBodies rule 2024-01-08 17:28:34 +00:00
Nick Lockwood bd81c4889c Flip --shortoptionals default to except-properties 2024-01-08 17:28:34 +00:00
Nick Lockwood 3a7b04e73c Add wrapLoopBodies rule 2024-01-08 17:28:34 +00:00
Cal Stephens 1c5b4f7c5b Fix issue parseType helper didn't handle qualified types like Foo.Bar 2024-01-08 17:28:34 +00:00
Cal Stephens a7d6232aeb Add noExplicitOwnership rule 2024-01-08 17:28:34 +00:00
Nick Lockwood 5b7f2bb2a2 Enable blankLinesBetweenChainedFunctions by default 2024-01-08 17:28:34 +00:00
Nick Lockwood 82f8b9734b Enable blankLineAfterImports by default 2024-01-08 17:28:34 +00:00
Nick Lockwood 9c8eb475be Enable preferForLoop by default 2024-01-08 17:28:34 +00:00
Nick Lockwood b4910bf3bb Add special case handling for allX loop identifiers 2024-01-08 17:27:20 +00:00
Nick Lockwood a6e8e95331 Improve preferForLoop identifier selection logic 2024-01-08 17:27:20 +00:00
Nick Lockwood 5222db8c50 Change preferForLoop options for single-line loops 2024-01-08 17:27:20 +00:00
Cal Stephens a5abcd2072 Fix issue where for loop would break conditional assignment rule 2024-01-08 17:27:20 +00:00
Nick Lockwood fa832ab015 Rename forLoop to preferForLoop 2024-01-08 17:27:20 +00:00
Cal Stephens fc98ece053 Fix edge cases in forLoop rule (#1494) 2024-01-08 17:27:20 +00:00
Cal Stephens ee609d2819 Add rule to convert forEach { ... } calls to for loops (#1490) 2024-01-08 17:27:20 +00:00
Nick Lockwood 2141f575bc Fix globs header 2024-01-08 17:27:20 +00:00
Nick Lockwood 75c97cadcd Fix self inserted before set clause in computed property 2024-01-08 17:27:20 +00:00
Fatih Doğan d50790ee8c Fix xcode command plugin 2024-01-08 17:27:20 +00:00
Yuta Saito 52c2135353 Remove runtime stdlib dependency from pre-built binary targeting Linux
Currently, the pre-built binary targeting Linux links Swift stdlib and
core libraries dynamically. Unlike darwin platforms, Swift does not
guarantee ABI stability on Linux, so the pre-built binary must be run
with exactly the same version of Swift stdlib and core libraries that
it was built with on GitHub Actions. And also the shared libraries can
be installed in various locations, so users usually need to set
`LD_LIBRARY_PATH`.

However, asking users to do the above works only for power users.
Reducing the runtime dependencies makes it usable for more users.
2024-01-08 17:27:05 +00:00
Nick Lockwood ad7707bd34 Update for 0.52.11 release 0.52.11 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
kiddten 4c59d418dd Update .pre-commit-hooks.yaml (#1587) 2023-12-05 20:00:11 +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 0.52.10 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 5cf32e8b3f Remove junk lines from test suite 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 0.52.9 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