213 Commits

Author SHA1 Message Date
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
Cal Stephens 22a472ced4 Update for 0.59.1 release 2026-01-29 19:55:41 -08:00
Cal Stephens 53c804f5e8 Avoid conflict with format.sh by excluding Sources from regression tests 2026-01-29 19:53:51 -08:00
Cal Stephens 2fcc583d76 Use doc comments before local functions 2026-01-29 19:53:51 -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 afe7956293 Support concurrent formatting for --filelist 2025-11-11 21:16:05 +00:00
Nick Lockwood 83e5f6aa58 Add unknown-rules option 2025-10-04 08:46:46 +01: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
Nick Lockwood d802c75749 Generalize list formatter and dropped the Oxford comma 2025-09-22 19:13:35 -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 23ef0a350c Convert markdownFormattingMode to format option 2025-09-22 19:13:35 -07:00
Nick Lockwood be767fc1ce Improve MarkdownFormattingMode implementation 2025-07-14 06:46:09 -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
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
Nick Lockwood c42207bd41 Update .swiftformat swiftfversion 2025-07-13 11:32:06 -07:00
Nick Lockwood 37c7a45fd2 Further reduce use of stringly-typed rules 2024-11-16 20:23:02 +00:00
Hampus Tågerud fa63f59698 Support using git info with stdin 2024-11-16 20:12:03 +00:00
Cal Stephens 9517fd25b8 Add support for specifying Swift language mode 2024-11-16 20:11:54 +00:00
Nick Lockwood 5e39daeef7 Update minimum supported Swift version to 5.3 2024-11-16 20:11:54 +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
Jake Langford bb0a3acaab Fix linting with stdin (#1744) 2024-07-10 19:50:35 +01:00
Hampus Tågerud a7fa0f34c6 Add options to configure how dates are displayed in file header 2024-06-09 18:47:04 +01:00
Hampus Tågerud 8c5f7ae78f Add created.name and created.email file header placeholders 2024-06-09 18:47:04 +01:00
Nick Lockwood e15a3d1d7d Throw error if reporter type is omitted and can't be inferred 2024-05-27 09:03:22 +01:00
Nick Lockwood 9c38b05a25 Deprecate explicit default value for --reporter 2024-05-18 13:14:08 +01:00
Nick Lockwood 3d8df164e3 Fix spurious reporter errors 2024-05-18 12:37:19 +01:00
Nick Lockwood 019b74fdff Avoid creating stdout directory when using --output stdout 2024-05-18 12:32:40 +01:00
Nick Lockwood 05cb325003 Update for 0.53.9 release 2024-05-12 19:51:19 +01:00
Nick Lockwood 88f60807d0 Add DefaultReporter to fix --lint --quiet mode 2024-05-12 19:01:45 +01:00
Cal Stephens 81176d543f Add --strict option to emit non-zero exit code after applying changes (#1676) 2024-04-20 05:00:44 +01:00
Nick Lockwood f0a917300f Make lint warnings/errors consistent 2024-03-17 09:36:39 +00:00
Nick Lockwood 1f8b956bb9 Update for 0.52.4 release 2023-09-17 22:12:20 +01:00
Nick Lockwood 712a3bb50e Improve "failed to terminate" error message 2023-09-17 22:12:19 +01:00
Nick Lockwood 97556346ac Fix false warning for unused options 2023-08-14 23:13:38 +01:00
Nick Lockwood 04b955d620 Add --baseconfig option 2023-04-09 14:25:52 +01:00
Nick Lockwood 6b2e5f94b0 Fix .swiftformat file permissions error not being reported 2023-04-06 14:24:55 +01: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 b5c7c45792 Update to Swift 5.1 2022-09-28 21:20:33 +01:00
Daniele Formichelli 1891b61863 Add support for script input (#1230) 2022-08-02 19:45:25 +01:00
Nick Lockwood bb2e0205e3 Treat lint failure as error when using stdin 2022-03-19 13:19:30 +00:00
CooperWolfe cc80cf12ef Fix os availability error (issue #1158) (#1159) 2022-03-19 13:19:30 +00:00
MarkKoz 573ae3f445 Get temp dir in an OS-independent way 2022-03-15 21:58:09 +00:00
Nick Lockwood ddbe46c4d3 Add all option for rules 2022-02-07 22:48:29 +00:00
Nick Lockwood 0c329a90c3 Fix SwiftFormat changing creation date of files 2022-02-07 18:55:32 +00:00
Nick Lockwood b0401b0457 Fix error reporting for --filelist files 2021-11-05 20:13:10 +00:00