41 Commits

Author SHA1 Message Date
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
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
Nick Lockwood 6ea6ae64c7 Add new rules to project .swiftformat file 2025-10-04 08:46:46 +01: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
Facundo Menzella 7439b0d880 Extend initCoderUnavailable rule (#1442) 2024-06-09 18:47:04 +01:00
Nick Lockwood 3a7b04e73c Add wrapLoopBodies rule 2024-01-08 17:28:34 +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
Cal Stephens 85edf7bf51 Add redundantInternal rule (#1486) 2023-08-13 09:23:50 +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
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
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
Cal Stephens 794e1482e5 Add redundantClosure rule (#998) 2021-12-04 08:38:50 +00:00
Nick Lockwood 92ea8c7b06 Fix removing self from unwrapped variables 2021-10-03 09:35:48 +01:00
Nick Lockwood 68e9aa57b4 Remove redundant parens around closure arguments 2021-04-20 20:57:59 +01:00
Nick Lockwood 6242bb4cc1 Tweak default .swiftformat config 2020-12-26 17:16:08 +00:00
Nick Lockwood ef1df40f5f Apply redundantFileprivate to extension members 2020-12-07 19:57:47 +00:00
Nick Lockwood 781ef02a18 Fix indenting for wrapped else if statements 2020-10-15 21:11:34 +01: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
Facundo Menzella 940604ac9c Enum namespace rule (#737) 2020-10-13 20:35:07 +01:00
Facundo Menzella fa60eaf12a Add Redundant type rule (#706) 2020-08-24 11:43:45 +01:00
Facundo Menzella 1ef64988b2 Added initCoderUnavailable rule (#700) 2020-08-24 11:43:44 +01:00
Nick Lockwood 9f76ede6a2 Improve multilineSwitchCases rule 2020-08-20 00:06:54 +01:00
Nick Lockwood eefee58a1e Improve multilineEnumCases rule 2020-08-20 00:06:54 +01:00
Nick Lockwood 29f5b65422 wrapMultilineStatementBraces now applies to init 2020-07-30 02:37:13 +01:00
Nick Lockwood 50a71310da Add --guardelse option 2020-07-30 01:38:56 +01:00
Nick Lockwood 99769739d1 Handle multiline for loop brace wrapping 2020-07-25 09:02:36 +01:00
Cal Stephens f0db723c39 Add wrapMultilineConditionalBraces rule (#668) 2020-07-25 09:02:36 +01:00
Nick Lockwood 8c30088a1f Fix --specifierorder bug 2020-05-14 01:38:01 +01:00
Nick Lockwood 9ba3b7b4c6 Fix override specifier ordering 2020-05-01 01:08:29 +01:00
Nick Lockwood 034df64984 Don't skip partially ignored arguments lists 2020-04-25 10:34:07 +01:00
Nick Lockwood 2e74f70909 Fix failure to remove redundant self in collection 2020-01-03 20:07:47 +00:00
Nick Lockwood 6feea7be0b Fix bug with trailing comma added to type literal 2019-11-27 09:06:11 +00:00
Nick Lockwood 7634354e55 Added regression test suite 2019-04-09 22:02:22 +01:00