17 Commits

Author SHA1 Message Date
Copilot 727c044bfa Fix extensionAccessControl incorrectly hoisting public onto extensions of nested internal types (#2461)
Co-authored-by: Cal Stephens <cal@calstephens.tech>
2026-04-11 12:26:55 -07:00
Nick Lockwood 6ea6ae64c7 Add new rules to project .swiftformat file 2025-10-04 08:46:46 +01:00
Cal Stephens 3166fd00d6 Update options from --alloneword to --kebab-case (#2123) 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 2fd589f4a0 Update blankLinesAtStartOfScope rule to support switch cases and closures with captures/params (#1997) 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 e683fb14ed Make all tests pass 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 9dad26e2ac Migrate extensionAccessControl rule to DeclarationV2 API 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
Cal Stephens c79878b86e Move rule examples below implementation closure (#1832) 2024-11-16 20:18:32 +00:00
Nick Lockwood 6beebcd21c Move examples into rules files 2024-11-16 20:13:32 +00:00
Nick Lockwood 5e39daeef7 Update minimum supported Swift version to 5.3 2024-11-16 20:11:54 +00:00
Cal Stephens 709a1d5009 Add tests related to code organization and rule helper usage (#1808) 2024-11-16 20:11:16 +00:00
Cal Stephens 72c30a1c26 Move rule-specific helpers from DeclarationHelpers.swift to OrganizeDeclarations.swift, improve shared helpers (#1798) 2024-11-09 11:26:29 +00:00
Cal Stephens 6ce3bd52c1 Implement each rule in a separate file (#1782) 2024-11-09 11:26:22 +00:00