43 Commits

Author SHA1 Message Date
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
Manny Lopez 688ff0cae6 Add wrapSingleLineBodies rule (#2295) 2026-01-25 09:02:04 -08:00
Cal Stephens b755b34f69 Wrap closing paren of single-argument functions and collections if needed (#2281) 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 6ea6ae64c7 Add new rules to project .swiftformat file 2025-10-04 08:46:46 +01:00
Cal Stephens d9b43df8b0 Update redundantPublic rule to apply to private types (#2167) 2025-09-22 19:13:35 -07:00
Cal Stephens 3166fd00d6 Update options from --alloneword to --kebab-case (#2123) 2025-07-13 11:32:06 -07:00
Cal Stephens d07ba4e6a7 Update redundantPublic rule to handle extensions of internal types (#2077) 2025-07-13 11:32:06 -07:00
Cal Stephens 760c32756c Add rule to remove redundant public access control from declarations in internal types (#2075) 2025-07-13 11:32:06 -07:00
Cal Stephens 2ffd08a332 Fix issue where unusedArguments rule didn't handle functions with trailing comma in argument list (#2088) 2025-06-15 09:00:11 -07:00
Nick Lockwood 1c635fd6d6 Fix parsing bug with nonisolated(unsafe) modifier 2024-03-16 11:16:31 +00:00
Nick Lockwood 9c8eb475be Enable preferForLoop by default 2024-01-08 17:28:34 +00:00
Nick Lockwood e621e9a17c Fix unsafe conversion of conditional switch cases to expression 2023-11-14 22:54:08 +00:00
Nick Lockwood 31e8532a97 Update .swiftformat config for project 2023-09-17 22:12:20 +01:00
Nick Lockwood 8d75b3523f Fix regex literal parsing bug 2023-08-17 20:11:27 +01:00
Cal Stephens 85edf7bf51 Add redundantInternal rule (#1486) 2023-08-13 09:23:50 +01:00
Nick Lockwood a3da3b8cdd Fix redundant parens not removed after return 2023-04-08 18:46:18 +01:00
Nick Lockwood 852b9afa1c Fix regex literal parsing 2022-12-03 21:40:57 +00:00
Cal Stephens 38ccc9565a Fix #1269 2022-10-05 23:48:36 +01:00
Nick Lockwood 595b5150e0 Fix comment wrapping after code on same line 2022-10-05 23:48:36 +01:00
Nick Lockwood ec02ce028e Improve wrapSingleLineComments rule 2022-09-24 20:24:31 +01:00
Nick Lockwood 3dbea85fcf Fix unusedArguments shadowed in switch case 2022-08-30 20:56:50 +01:00
Nick Lockwood ca329a3a1c Fix indent regression in xcode indent mode 2022-08-24 23:17:44 +01:00
Nick Lockwood dbbca1b80a Fix bug with parsing ternary chain containing chevron 2022-07-13 22:01:40 +01:00
Nick Lockwood b403107d36 Add another fix for / operator 2022-07-13 22:01:40 +01:00
Nick Lockwood 32899fa29f Fix bug with indenting of trailing closures after conditional 2022-06-22 00:45:29 +01:00
Nick Lockwood c918394717 Fix unusedArguments shadowing bug 2022-05-16 21:20:04 +01:00
Nick Lockwood 88b0e5047b Fix unsafe self removal in if statements with postfix operator 2022-01-18 22:44:50 +00:00
Nick Lockwood 24d9318b0f Fix parsing bug in redundantSelf rule 2021-11-05 18:09:36 +00:00
Nick Lockwood 92ea8c7b06 Fix removing self from unwrapped variables 2021-10-03 09:35:48 +01:00
Nick Lockwood 70f5cf51fe Update for 0.47.3 release 2020-11-09 23:19:25 +00:00
Nick Lockwood 158ca2edd4 Fix increasing extension visibility beyond type 2020-11-09 20:11:31 +00:00
Nick Lockwood 520a4872da Fix array bounds crash 2020-10-26 08:03:25 +00:00
Nick Lockwood f319b918f0 Indent wrapped statements like Xcode 12 2020-10-14 09:36:53 +01:00
Nick Lockwood 98ae8e7c74 Enable extensionAccessControl rule by default 2020-10-13 20:35:07 +01:00
Nick Lockwood 445abe35fc Fix throwing function braces mistaken for closure 2020-08-08 18:43:08 +01:00
Nick Lockwood d294de84b9 Add snapshot test for issue #697 2020-08-08 08:42:32 +01:00
Nick Lockwood e699415c99 Add snapshot test for issue #411 2020-08-08 08:31:18 +01:00
Nick Lockwood 0fd8e49926 Fix indenting of --allman closure braces 2020-08-08 08:31:18 +01:00
Nick Lockwood 2662b90340 Fix spurious static member warning 2020-08-03 22:26:38 +01:00
Nick Lockwood 042d091619 Fix bug in isStartOfClosure affecting self removal 2020-08-03 22:26:38 +01:00
Nick Lockwood 5433a5f227 Apply wrapMultilineStatementBraces to more cases 2020-08-01 13:49:59 +01:00
Nick Lockwood 662a309d58 Add issues examples to snapshots 2020-08-01 12:24:51 +01:00