Nick Lockwood
e223f7d6d6
Always strip "default" option from help description
2025-10-16 07:16:56 +01:00
Nick Lockwood
7a0921d301
Filter redundant default arguments from options help
2025-10-16 07:16:56 +01:00
Nick Lockwood
83e5f6aa58
Add unknown-rules option
2025-10-04 08:46:46 +01: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
Nick Lockwood
d802c75749
Generalize list formatter and dropped the Oxford comma
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
db8ab2336e
Improve error messaging for invalid options arguments
2025-09-22 19:13:35 -07:00
Nick Lockwood
536b6a62dc
Improve options help
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
Nick Lockwood
be767fc1ce
Improve MarkdownFormattingMode implementation
2025-07-14 06:46:09 -07:00
Nick Lockwood
6e758726cd
Add helper function for option list formatting
2025-07-14 06:46:09 -07:00
Cal Stephens
e9edfe7ed2
Speed up test suite by parallelizing tests, creating separate target for regression tests ( #2124 )
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
30efac6dab
Fix config file generation in SwiftFormat for Xcode app to escape options with # character in quotes ( #2121 )
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
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
Nick Lockwood
8188792be5
Fix bug with renamed options warnings
2024-11-16 20:23:02 +00:00
Nick Lockwood
37c7a45fd2
Further reduce use of stringly-typed rules
2024-11-16 20:23:02 +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
Hampus Tågerud
a7fa0f34c6
Add options to configure how dates are displayed in file header
2024-06-09 18:47:04 +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
1f8b956bb9
Update for 0.52.4 release
2023-09-17 22:12:20 +01:00
Nick Lockwood
97556346ac
Fix false warning for unused options
2023-08-14 23:13:38 +01:00
Nick Lockwood
b9de8a7a29
Make options case-insensitive
2023-08-13 11:01:00 +01:00
Nick Lockwood
04b955d620
Add --baseconfig option
2023-04-09 14:25:52 +01:00
Nick Lockwood
356a4716a4
Ignore .swiftformat files when using explicit config
2023-02-28 22:45:21 +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
Nick Lockwood
5e1cfd4cca
Don't merge options from descendent configurations
2022-09-28 19:16:02 +01:00
Daniele Formichelli
1891b61863
Add support for script input ( #1230 )
2022-08-02 19:45:25 +01: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
38132cacb1
Fix meaningless warning for deprecated options
2021-12-29 12:19:21 +00:00
Nick Lockwood
b64ac86307
Fix potential crash in editDistance() function
2021-10-02 00:57:53 +01:00
Ortal
dbef2aa205
Make functions public to support creating an Xcode Extension ( #932 )
2021-05-16 16:03:54 +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
186b2d6d1a
Improve command-line typo suggestions
2020-12-24 00:17:53 +00:00
Danny Mösch
5afe4366e9
Ignore comments in lines connected by a continuation character ( #828 )
...
Currently, in the configuration file, if a comment follows a line continuation character, the comment and all the subsequent lines are ignored. With this change the parser just ignores the comments, but not the lines which follow after the comment. So the continuation only applies to the first line after the continuation character which is not a comment.
2020-12-23 22:20:48 +00:00
Nick Lockwood
ff9fc71473
Add warning when setting options for disabled rules
2020-11-15 20:32:42 +00:00
Nick Lockwood
1f96916df2
Update for 0.47.0 release
2020-10-15 00:40:51 +01:00
Cal Stephens
957423e501
Use the Levenshtein edit distance to correct misspelled marks
2020-08-29 22:51:49 +01:00