116 Commits

Author SHA1 Message Date
Guillaume Hugues 3e5bdf2cf3 fix race condition when parsing config files (#2521) 2026-04-27 07:01:13 -07:00
Copilot c7c259822e Don't read .swift-version files from excluded directories (#2406)
Co-authored-by: calda <1811727+calda@users.noreply.github.com>
2026-03-03 08:09:28 -08:00
Cal Stephens dc466cf37e Order redundantSwiftTestingSuite after swiftTestingTestCaseNames 2026-03-03 08:09:28 -08:00
Copilot e2d82b2f8b Allow --stdin-path with non-existing files (#2382)
Co-authored-by: calda <1811727+calda@users.noreply.github.com>
2026-03-03 08:09:28 -08:00
Nick Lockwood fb167dd78c Fix crash in --ruleinfo when options exceed old max length 2025-11-29 12:00:02 +00:00
Nick Lockwood f231c67025 Reorganize tests 2025-11-29 12:00:02 +00:00
Nick Lockwood 7a0921d301 Filter redundant default arguments from options help 2025-10-16 07:16:56 +01:00
Nick Lockwood 6ea6ae64c7 Add new rules to project .swiftformat file 2025-10-04 08:46:46 +01:00
Cal Stephens 0b5ab901ea Fix issue where .swift-version file was ignored if not also using config file (#2230) 2025-09-24 08:43:58 -07:00
Cal Stephens 328837049f Fix support for enabling and disabling disabled-by-default rules in secondary configs 2025-09-22 19:13:36 -07:00
Cal Stephens 2b939180ad Add support for filtering config file options to a specific file path glob (#2176) 2025-09-22 19:13:36 -07:00
Cal Stephens a711ad3438 Improve parsing of nested markdown code blocks (#2157) 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 2b2dbda97a Improve file test infra 2025-09-22 19:13:35 -07:00
Nick Lockwood 536b6a62dc Improve options help 2025-09-22 19:13:35 -07:00
Nick Lockwood 142386035d Improve OptionDescriptor API 2025-09-22 19:13:35 -07:00
Cal Stephens eb4d4d38f0 Fix spurious '--commas option is deprecated. Use '--trailingcommas' instead' warning (#2146) 2025-07-14 18:31:07 -07:00
Cal Stephens 3166fd00d6 Update options from --alloneword to --kebab-case (#2123) 2025-07-13 11:32:06 -07:00
Cal Stephens be46509756 Add test case to validate diff code block formatting in rule examples (#2120) 2025-07-13 11:32:06 -07:00
Laurent Etiemble ed2da979fc Add support for SARIF output format. (#2104) 2025-07-13 11:32:06 -07:00
Cal Stephens 8793bdde42 Support multiple --config file arguments (#2096) 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
Cal Stephens 584e05b1d5 Update option output formatting to support longer option names 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 217aa55dab Migrate organizeDeclarations rule to DeclarationV2 2025-05-12 20:18:43 -07:00
Nick Lockwood 37c7a45fd2 Further reduce use of stringly-typed rules 2024-11-16 20:23:02 +00:00
Christian Clauss cf9e16b108 Fix typos discovered by codespell (#1835) 2024-11-16 20:11:53 +00:00
Cal Stephens 00e219d662 Fix missing lint output for organizeDeclarations rule (#1826) 2024-11-16 20:11:16 +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 4c3c1000dd Add --outputtokens option to print output tokens instead of source code (#1811) 2024-11-16 20:11:16 +00:00
Cal Stephens 6ce3bd52c1 Implement each rule in a separate file (#1782) 2024-11-09 11:26:22 +00:00
Saeid Rezaei 51eac08b98 Add XML reporter (#1682) 2024-06-11 07:45:22 +01:00
Nick Lockwood ba4ca00b6d Move (slow) regression tests to end 2024-04-06 06:59:18 +01:00
Nick Lockwood 845aa725b4 Exclude examples from line length limit limit 2024-02-25 20:14:06 +00:00
Nick Lockwood 9c8eb475be Enable preferForLoop by default 2024-01-08 17:28:34 +00:00
Nick Lockwood 8d3dc46b96 Update for 0.51.2 release 2023-03-07 21:36:40 +00:00
Nick Lockwood ee7acc973c Refactor github reporter logic 2023-02-16 22:18:13 +00:00
Jonas Boberg 45a11a132e Add Github Actions annotations reporter (#1366) 2023-02-16 21:07:15 +00:00
Nick Lockwood 59a94aec61 Fix over-long --generictypes option help 2022-11-29 17:51:10 +00:00
Nick Lockwood cba0cc4281 Fixed regression tests (previously disabled) 2022-08-16 18:54:00 +01:00
Daniele Formichelli 1891b61863 Add support for script input (#1230) 2022-08-02 19:45:25 +01:00
Nick Lockwood dbbca1b80a Fix bug with parsing ternary chain containing chevron 2022-07-13 22:01:40 +01:00
Nick Lockwood dc6d59080d Fix bug in --exclude when using --stdinpath 2022-03-06 21:33:41 +00:00
Nick Lockwood ddbe46c4d3 Add all option for rules 2022-02-07 22:48:29 +00:00
Nick Lockwood 1f65b6822f Fix spurious unused --wrapparameters warning 2022-02-07 19:31:30 +00:00
Nick Lockwood 4b700ca4ab Support glob syntax for input paths 2021-04-21 00:21:13 +01:00
Nick Lockwood ff9fc71473 Add warning when setting options for disabled rules 2020-11-15 20:32:42 +00:00
Nick Lockwood 0c108fb851 Fix config file errors failing silently 2020-10-30 10:28:59 +00:00
Nick Lockwood 034df64984 Don't skip partially ignored arguments lists 2020-04-25 10:34:07 +01:00
Nick Lockwood 6836f23493 Support path expansion and comments in file list 2020-03-20 23:22:21 +00:00