136 Commits

Author SHA1 Message Date
Copilot 357efe0348 Add --test-case-access-control option for testSuiteAccessControl rule (#2457)
Co-authored-by: calda <1811727+calda@users.noreply.github.com>
2026-04-11 12:26:55 -07:00
Copilot dce393fe93 Update --self-required to support assignment type names like OSLogMessage (#2448)
Co-authored-by: calda <1811727+calda@users.noreply.github.com>
2026-04-11 12:26:54 -07:00
Kim de Vos 2c43a100bd Sort imports by access level (#2358)
Co-authored-by: Cal Stephens <cal@calstephens.tech>
2026-03-03 08:09:28 -08:00
Copilot c40b283622 Add --suite-name-format option to swiftTestingTestCaseNames rule (#2384)
Co-authored-by: calda <1811727+calda@users.noreply.github.com>
2026-03-03 08:09:28 -08:00
Cal Stephens 5b7bab1983 Add --test-case-name-format raw-identifiers option to swiftTestingTestCaseNames rule (enabled by default) (#2359) 2026-03-03 08:09:27 -08:00
Cal Stephens c0558072ab Remove --optional-for-each convert option 2026-01-25 09:02:04 -08:00
Manny Lopez 688ff0cae6 Add wrapSingleLineBodies rule (#2295) 2026-01-25 09:02:04 -08:00
Cal Stephens 20512c8860 Update preferForLoop rule to support optional forEach calls with --optional-for-each convert (#2294) 2026-01-25 09:02:04 -08:00
Cal Stephens 8917aa0313 Add --prefer-synthesized-init-for-internal-structs option (#2291) 2026-01-25 09:02:04 -08:00
Cal Stephens d02ba73bb5 Update typeSugar to only preserve optionals in structs with a synthesized memberwise initializer (#2260) 2026-01-25 09:02:04 -08:00
Nick Lockwood 251c4d8f7f Add isAttribute helpers 2026-01-25 09:02:03 -08:00
Nick Lockwood fa65ed6e64 Improve acronyms rule 2025-10-04 11:10:28 +01:00
Nick Lockwood 6ea6ae64c7 Add new rules to project .swiftformat file 2025-10-04 08:46:46 +01:00
Cal Stephens 9fbd4f0909 Add redundantAsync rule (#2207) 2025-09-22 19:13:36 -07:00
Cal Stephens cd87505ae5 Add redundantThrows rule (#2206) 2025-09-22 19:13:36 -07:00
Cal Stephens d1e430c6a0 Add --default-test-suite-attributes option to preferSwiftTesting rule (#2192) 2025-09-22 19:13:36 -07:00
Cal Stephens 832e06822d Add option to disallow partial wrapping of functions and collections (#2186) 2025-09-22 19:13:36 -07:00
Cal Stephens 5b343adc26 Add --type-body-marks remove option to organizeDeclarations (#2175) 2025-09-22 19:13:36 -07:00
Cal Stephens d4a15aff9f Add organizeDeclarations threshold options to organize types without adding marks (#2162) 2025-09-22 19:13:35 -07:00
Nick Lockwood 0249e6b524 Further improve error messaging for invalid options 2025-09-22 19:13:35 -07:00
Nick Lockwood e6f0df6be5 Remove "format-" prefix from --markdown-file arguments 2025-09-22 19:13:35 -07:00
Nick Lockwood 23ef0a350c Convert markdownFormattingMode to format option 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 24072c3e65 Convert elsePosition to an enum 2025-09-22 19:13:35 -07:00
Nick Lockwood 6b1791353e Convert semicolons option to enum 2025-09-22 19:13:35 -07:00
Nick Lockwood 536b6a62dc Improve options help 2025-09-22 19:13:35 -07:00
Louis Prud’homme 0e6282849c Add --blank-line-after-switch-case always option to blankLineAfterSwitchCase rule (#2150) 2025-09-22 19:13:35 -07:00
Nick Lockwood 142386035d Improve OptionDescriptor API 2025-09-22 19:13:35 -07:00
Nick Lockwood f5dad6938c Fix preferFileMacro case-sensitivity bug 2025-07-14 06:46:09 -07:00
Cal Stephens 49bd6898c6 Add --trailing-commas multi-element-lists option (#2133) 2025-07-13 11:32:06 -07:00
Cal Stephens 3166fd00d6 Update options from --alloneword to --kebab-case (#2123) 2025-07-13 11:32:06 -07:00
Cal Stephens 4ece74a8a6 Support escaping # characters in config files (#2114) 2025-07-13 11:32:06 -07:00
Manny Lopez 6759036fa8 Add urlMacro rule to prefer #URL(...) macro to force-unwrapped initializer URL(...)! (#2095) 2025-07-13 11:32:06 -07:00
Cameron Pulsford a65ea804ca Add --trailingcommas collections-only option to opt out of Swift 6.1 trailing comma support (#2081)
Co-authored-by: Cal Stephens <cal.stephens@airbnb.com>
2025-07-13 11:32:06 -07:00
Milo (Amir) Ardalan d2fba2c7fe Add --typeblanklines insert option to blankLinesAtStartOfScope and blankLinesAtEndOfScope rules
Co-authored-by: Cal Stephens <cal.stephens@airbnb.com>
2025-07-13 11:32:06 -07:00
Cal Stephens 3225fb2681 Improve names of some existing options 2025-07-13 11:32:06 -07:00
Alexander Yan Smirnov 46c307803a Add option to blankLinesAfterGuardStatements rule to have blank line between consecutive guards (#2058) 2025-07-13 11:32:06 -07:00
Cal Stephens e6b2ce5e6a Add option to disable line wrapping within string interpolation (#2059) 2025-07-13 11:32:06 -07:00
Cal Stephens f763724650 Update acronyms rule to use --preserveacronyms option instead of --preservedsymbols (#2038) 2025-05-12 20:19:20 -07:00
Mike Kasianowicz b2b8562c93 wrapreturntype: never (#2016) 2025-05-12 20:18:43 -07:00
Cal Stephens cb741704fc Fix edge cases with swiftTesting rule (#1968) 2025-05-12 20:18:43 -07:00
Nick Lockwood fcf0b9112c Refactor EquatableMacroInfo type 2025-05-12 20:18:43 -07:00
Cal Stephens f10bc6f374 Rename noFileID rule to fileMacro, support preferring either #file or #fileID 2025-05-12 20:18:42 -07:00
Cal Stephens d2ea346884 Add rule to remove redundant Equatable implementations 2025-05-12 20:18:42 -07:00
Miguel Jimenez 10336e6530 Add option to sort SwiftUI properties by the first property appearance (#1821) 2025-05-12 20:18:42 -07:00
Miguel Jimenez 0237ffb70f Add SwiftUI properties subcategory alphabetical sort (#1794) 2025-05-12 20:18:42 -07:00
Nick Lockwood 6e1349d6b3 Rename --preservesymbols to --preservedsymbols and add Package by default 2024-11-16 20:23:42 +00:00
Nick Lockwood 10b6a6c73f Rename --redundanttype to --propertytypes 2024-11-16 20:23:11 +00:00
Nick Lockwood 8188792be5 Fix bug with renamed options warnings 2024-11-16 20:23:02 +00:00
Nick Lockwood c735e6bd7e Rename --onelineforeach to --inlinedforeach 2024-11-16 20:23:02 +00:00