88 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
Cal Stephens 2fcc583d76 Use doc comments before local functions 2026-01-29 19:53:51 -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
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
Manny Lopez 0a0ec17cf3 Add simplifyGenericConstraints rule (#2243) 2026-01-25 09:02:04 -08:00
Nick Lockwood b9d4e151b1 Fix bug with traversing conditional switch cases 2025-11-11 21:05:06 +00: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
Miguel Jimenez 0b7afe0cdb Add Redundant struct Member wise Init rule (#2098) 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 431efe59a4 Add regression tests for option overrides 2024-11-16 20:23:02 +00:00
Facundo Menzella 7439b0d880 Extend initCoderUnavailable rule (#1442) 2024-06-09 18:47:04 +01:00
Nick Lockwood 5c88fb1b05 Add macro examples 2024-03-16 11:20:02 +00:00
Nick Lockwood 1c635fd6d6 Fix parsing bug with nonisolated(unsafe) modifier 2024-03-16 11:16:31 +00:00
Nick Lockwood 3a7b04e73c Add wrapLoopBodies rule 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 e621e9a17c Fix unsafe conversion of conditional switch cases to expression 2023-11-14 22:54:08 +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 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 a7b695a3e5 Add headerFileName rule 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 893fadd88b Update for 0.51.0 release 2023-02-28 22:45:21 +00:00
Cal Stephens 888b1c87e4 Update redundantReturn/Closure to support single-statement if/switch (SE-0380) 2023-02-28 22:11:31 +00:00
Nick Lockwood 852b9afa1c Fix regex literal parsing 2022-12-03 21:40:57 +00:00
Cal Stephens f493888bd1 Add docComments rule to convert between regular/doc comments (#1266) 2022-11-23 18:48:11 +00:00
Nick Lockwood 19a055f455 Fix parsing bug in redundantSelf rule 2022-11-23 18:47:38 +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 b5c7c45792 Update to Swift 5.1 2022-09-28 21:20:33 +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 cba0cc4281 Fixed regression tests (previously disabled) 2022-08-16 18:54:00 +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 a6888dca3d Fix shadowed parameter not marked as unused 2022-05-01 15:59:14 +01:00
Wolfgang Lutz 8926240bcd Fix some typos (#1155) 2022-03-15 22:20:26 +00:00
Nick Lockwood 88b0e5047b Fix unsafe self removal in if statements with postfix operator 2022-01-18 22:44:50 +00:00
Cal Stephens 794e1482e5 Add redundantClosure rule (#998) 2021-12-04 08:38:50 +00:00
Cal Stephens 04414751e7 Add literal support to redundantType rule (#921) 2021-11-06 16:09:02 +00:00