206 Commits

Author SHA1 Message Date
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
Nick Lockwood a248a8dcb0 Fix skipping of files when using --stdinpath 2021-05-22 21:53:06 +01:00
Nick Lockwood 89761e4d3b Improve --report logic 2021-04-21 00:21:14 +01:00
Daniele Formichelli bb7a20f50a [Feature] Add support for JSON output (#900) 2021-04-21 00:21:14 +01:00
Nick Lockwood 4b700ca4ab Support glob syntax for input paths 2021-04-21 00:21:13 +01:00
Benedek Kozma 7d8fa0bc6c Add option to specify --lintonly rules (#870) 2021-03-20 17:04:06 +00: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