295 Commits

Author SHA1 Message Date
Manny Lopez 688ff0cae6 Add wrapSingleLineBodies rule (#2295) 2026-01-25 09:02:04 -08:00
Nick Lockwood c037026ffb Fix range crash 2025-11-29 12:00:02 +00:00
Nick Lockwood d9d01328f5 Refactor Formatter.lastIndex(in:) 2025-11-11 21:05:06 +00:00
Nick Lockwood b9d4e151b1 Fix bug with traversing conditional switch cases 2025-11-11 21:05:06 +00:00
Nick Lockwood b7c445b5e4 Fix AutoUpdatingRange keeping transient formatters alive 2025-11-11 21:04:58 +00:00
Nick Lockwood 6ea6ae64c7 Add new rules to project .swiftformat file 2025-10-04 08:46:46 +01:00
Cal Stephens 1c1d501068 Improve trailingClosures support for multiple trailing closures, fix bug where trailing closures could be applied to ineligible function calls (#2224) 2025-09-24 08:43:58 -07:00
Cal Stephens 5e7882baa8 Improve type-related helpers by adding TypeName type (#2187) 2025-09-22 19:13:36 -07:00
Nick Lockwood 0246516c38 Discard changes outside of specified range 2025-09-22 19:13:36 -07:00
Nick Lockwood 0249e6b524 Further improve error messaging for invalid options 2025-09-22 19:13:35 -07:00
Nick Lockwood db8ab2336e Improve error messaging for invalid options arguments 2025-09-22 19:13:35 -07:00
Nick Lockwood fbedab8753 Improve swiftformat:options directive performance 2025-07-13 11:32:06 -07:00
Nick Lockwood d866f44049 Support :this and :previous in comment directives 2025-07-13 11:32:06 -07:00
Cal Stephens b9d5940c01 Fix edge cases in modifiersOnSameLine rule (#2076) 2025-07-13 11:32:06 -07:00
Cal Stephens ef2bbe9f1a Add support for formatting code blocks in markdown files (#2068) 2025-07-13 11:32:06 -07:00
Nick Lockwood c42207bd41 Update .swiftformat swiftfversion 2025-07-13 11:32:06 -07:00
Cal Stephens 29bf8aa7ce Update opaqueGenericParameters rule to support protocol requirements 2025-05-12 20:18:43 -07:00
Cal Stephens 3d843a0636 Add AutoUpdatingIndex and AutoUpdatingRange 2025-05-12 20:18:43 -07:00
Mike Kasianowicz b2b8562c93 wrapreturntype: never (#2016) 2025-05-12 20:18:43 -07:00
Cal Stephens 8300861f34 Remove DeclarationV1 API, rename DeclarationV2 to Declaration 2025-05-12 20:18:43 -07:00
Cal Stephens 217aa55dab Migrate organizeDeclarations rule to DeclarationV2 2025-05-12 20:18:43 -07:00
Cal Stephens c0a200117f Migrate unusedPrivateDelcarations rule to DeclarationV2 2025-05-12 20:18:43 -07:00
Cal Stephens e683fb14ed Make all tests pass 2025-05-12 20:18:43 -07:00
Cal Stephens a9985e2ad5 Migrate redundantEquatable rule to DeclarationV2 2025-05-12 20:18:43 -07:00
Cal Stephens f0ce5c8773 Migrate environmentEntry rule to DeclarationV2 2025-05-12 20:18:43 -07:00
Cal Stephens 1476d18e5c Create new DeclarationV2 API that tracks subrange in Formatter 2025-05-12 20:18:43 -07:00
NikeKov a426017c23 [New rule] spacingGuards (#1804) 2025-05-12 20:18:42 -07:00
Cal Stephens b7d099e63b Update fatal error messages to include rule name (#2006) 2025-04-29 18:22:52 -07:00
Nick Lockwood 5fdd6a5707 Update for 0.55.0 release 2024-11-16 23:03:55 +00:00
Cal Stephens 00e219d662 Fix missing lint output for organizeDeclarations rule (#1826) 2024-11-16 20:11:16 +00:00
Nick Lockwood 9e5d0d588a Update for 0.53.5 release 2024-03-17 09:50:39 +00:00
Nick Lockwood f0a917300f Make lint warnings/errors consistent 2024-03-17 09:36:39 +00:00
Nick Lockwood a03119407c Update for 0.53.4 release 2024-03-09 08:07:35 +00:00
Nick Lockwood dbc9a4406d Update for 0.53.3 release 2024-03-02 11:01:19 +00:00
Nick Lockwood 607c7057e5 Update for 0.53.2 release 2024-02-17 12:38:55 +00:00
Nick Lockwood 402367fbe9 Update for 0.53.1 release 2024-01-26 18:35:30 +00:00
Nick Lockwood ce6524c7ed Fix duplicate file header bug 2024-01-26 00:20:26 +00:00
Nick Lockwood fef156a613 Update for 0.53.0 release 2024-01-08 19:19:59 +00:00
Nick Lockwood ad7707bd34 Update for 0.52.11 release 2023-12-06 00:05:51 +00:00
Nick Lockwood cac06079ce Update for 0.52.10 release 2023-11-14 23:08:29 +00:00
Nick Lockwood d37a477177 Update for 0.52.9 release 2023-11-11 08:06:23 +00:00
Nick Lockwood 4c8386a35e Update for 0.52.8 release 2023-10-17 03:54:35 -07:00
Nick Lockwood 7b0f378f58 Update for 0.52.7 release 2023-10-06 19:56:02 +01:00
Nick Lockwood dfa38a7335 Update for 0.52.6 release 2023-10-01 07:42:17 +01:00
Nick Lockwood 7eb1706ba2 Update for 0.52.5 release 2023-09-30 09:15:21 +01:00
Nick Lockwood 1f8b956bb9 Update for 0.52.4 release 2023-09-17 22:12:20 +01:00
Nick Lockwood 1c1bf3b72a Update for 0.52.3 release 2023-09-02 09:14:14 +01:00
Nick Lockwood 1780bcdc32 Update for 0.52.2 release 2023-08-19 06:16:00 +01:00
Nick Lockwood 2f6800b54f Update for 0.52.1 release 2023-08-17 20:19:04 +01:00
Nick Lockwood e3c4693d07 Update for 0.52.0 release 2023-08-13 18:54:48 +01:00