Dinesh Sharma and Danny Mösch
8e3b50fa61
Add new category for @IBSegueAction to type_contents_order rule ( #5524 )
...
Co-authored-by: Danny Mösch <danny.moesch@icloud.com >
2024-12-14 18:02:54 -05:00
Jared Grubb
c45427e08b
Handle @unknown default in vertical_whitespace_between_cases rule ( #5843 )
2024-12-01 01:17:08 +00:00
Kim de Vos and Danny Mösch
2a723d0042
Add new option max_number_of_single_line_parameters to multiline_parameters rule ( #5781 )
...
Co-authored-by: Danny Mösch <danny.moesch@icloud.com >
2024-11-24 14:14:08 +00:00
Danny Mösch
cafed078fa
Silence superfluous_else rule for availability conditions ( #5857 )
2024-11-16 21:54:59 +00:00
Danny Mösch
707a63daf0
Allow closures being directly called to be wrapped into parentheses ( #5856 )
2024-11-16 10:25:50 +00:00
Martin Redington
01f5ecd64a
Replace description.identifier with identifier ( #5837 )
2024-10-26 14:46:03 +01:00
Martin Redington
9e78054781
Preserve trailing comments for opening_brace rule ( #5780 )
2024-09-08 12:31:45 +01:00
Aryaman Sharda and Danny Mösch
ae3f0c4df9
Add new attribute_name_spacing rule ( #5669 )
...
Co-authored-by: Danny Mösch <danny.moesch@icloud.com >
2024-09-06 08:26:47 -04:00
Leonardo de Sousa Rodrigues and Danny Mösch
3bb8014782
Add options to opening_brace rule that silence it on multiline statements and types ( #5521 )
...
Co-authored-by: Danny Mösch <danny.moesch@icloud.com >
2024-08-24 05:44:33 -04:00
Danny Mösch
74f4778070
Align left brace of additional trailing closures with right brace of previous trailing closure ( #5761 )
2024-08-19 17:26:48 -04:00
Danny Mösch
d5f7f9c29a
Align left closure brace with associated parent function call ( #5760 )
2024-08-19 20:19:57 +00:00
Danny Mösch
314c91f426
Check all nested if expressions in contrasted_opening_brace rule ( #5759 )
2024-08-19 15:42:10 -04:00
Danny Mösch
248ffafd83
Make contrasted_opening_brace opt-in
2024-08-07 01:02:45 +02:00
Danny Mösch
b67e82a832
Extract new contrasted_opening_brace rule from opening_brace rule ( #5723 )
2024-08-03 18:03:41 +02:00
Danny Mösch
87bc82e7b5
Restrict prefer_key_path to standard functions and function arguments ( #5722 )
...
By default, the rule triggers on and corrects closures used in functions
it "knows". With the option extending the rule, it now also triggers on
closures used in "safe" contexts, where "safe" means that a correction
would not lead to uncompilable code (ideally).
2024-08-03 15:01:40 +00:00
Danny Mösch
88191fe58e
Enable prefer_key_path rule and fix all violations ( #5721 )
2024-08-03 14:21:47 +02:00
UIApplicationMain
5f804d005b
Remove extra case statement in example ( #5717 )
2024-07-31 18:40:21 +02:00
Danny Mösch
e44bf9adb6
Add new brace_on_new_line option to opening_brace rule ( #5708 )
2024-07-30 22:23:01 +02:00
Danny Mösch
39b7c9f134
Move and refactor methods ( #5706 )
2024-07-27 16:24:32 +00:00
Danny Mösch
2cc1acb683
Check at the violation position if a correction can be applied ( #5682 )
2024-07-20 23:22:54 +02:00
Hayashi Tatsuya and Danny Mösch
cb0f5ab007
Verify and document fixed opening_brace correction ( #5620 )
...
Co-authored-by: Danny Mösch <danny.moesch@icloud.com >
2024-07-20 11:36:24 -04:00
Danny Mösch
9f8a3f5662
Fix some typos ( #5683 )
2024-07-20 11:22:32 -04:00
Danny Mösch
238415b4f7
Place corrections optionally into violations ( #5680 )
...
This avoids maintaining two lists of objects.
2024-07-20 16:24:17 +02:00
Martin Redington
3421f5f46d
Enable multiline_parameters rule, and fix all cases ( #5664 )
2024-07-18 01:48:02 +01:00
Danny Mösch
2442e10f13
Avoid needless indentation in examples ( #5675 )
2024-07-16 13:57:05 -04:00
Danny Mösch
cc4b569c54
Enable unused_parameter rule and fix all violations ( #5673 )
2024-07-14 11:20:50 -04:00
Danny Mösch
e48bdb7adf
Add new unused_parameter rule ( #5668 )
2024-07-14 05:31:29 -04:00
Martin Redington
c6a7dd2ecd
Fix implicit return rewriting ( #5661 )
2024-07-10 13:24:09 +01:00
Martin Redington
ed10aec5f8
Enable implicit_return and fix all violations ( #5658 )
2024-07-10 12:15:19 +01:00
Koichiro Ueki
aa9f474cb9
Add new no_empty_block rule ( #5617 )
2024-06-29 13:13:41 +02:00
Danny Mösch
c810459e6a
Enforce mandatory trailing comma and fix all violations ( #5640 )
2024-06-28 05:36:50 +00:00
Muhammet Ilendemli
fa5f98f6f3
Make vertical_whitespace_between_cases rule work when case block ends with a string literal ( #5628 )
2024-06-22 17:50:08 +00:00
Danny Mösch
2d28166d21
Enable upcoming feature "Concise Magic File" ( #5637 )
2024-06-22 11:22:55 +02:00
Danny Mösch
914fa02e4e
Use SwiftSyntax version 600.0.0-prerelease-2024-03-11 ( #5527 )
...
We can also switch back to an exact SwiftSyntax version now with the
plugins in a separate repository. In fact, using the plugin, no direct
dependency to SwiftSyntax is required whatsoever.
2024-06-22 11:14:14 +02:00
Danny Mösch
6431b954cb
Fix capitalization ( #5626 )
2024-06-22 07:57:38 +00:00
Danny Mösch
dfe19ac7fc
Respect comments before opening braces in opening_brace rule ( #5582 )
2024-05-15 23:06:59 +02:00
Martin Redington
7623f1e730
Enable more rules in SwiftLint's own .swiftlint.yml ( #5532 )
2024-04-27 18:43:08 +02:00
deterclosed
082adfaed7
Fix some typos ( #5504 )
2024-03-23 15:25:16 +01:00
Danny Mösch
5bfe329d09
Update SwiftSyntax to version 510.0.0 ( #5479 )
2024-03-09 15:46:45 -05:00
Kotaro Suto
d9c6888287
Make trailing_closure rule correctable ( #5453 )
2024-03-05 21:16:45 +01:00
Danny Mösch
c730047176
Enable superfluous_else rule ( #5412 )
2024-03-03 16:30:44 +01:00
Danny Mösch
4078e41f1b
Let all rewriters have a configuration by default ( #5467 )
2024-02-11 15:13:24 +01:00
Danny Mösch
7c29ae4f3e
Add new shorthand_argument rule ( #5451 )
2024-02-06 23:36:28 +00:00
Danny Mösch
6bb9944050
Support continue, break and throw in superfluous_else rule ( #5425 )
2024-01-17 21:05:57 +01:00
Danny Mösch
c1a422bfa1
Rename variables referring to if statements ( #5423 )
2024-01-16 18:49:29 +00:00
Danny Mösch
2057d607b7
Refine violation positions of superfluous_else rule ( #5420 )
2024-01-16 19:33:43 +01:00
Danny Mösch
1c605a597a
Refine violation position of trailing_closure rule ( #5419 )
2024-01-16 13:16:04 -05:00
Kotaro Suto
6af9419e09
Rewrite trailing_closure rule with SwiftSyntax ( #5414 )
2024-01-15 10:10:03 +01:00
Oleg Kohtenko
f4fa852752
Compare case-insensitively in sorted_enum_cases rule ( #5405 )
2024-01-09 22:25:54 +01:00
Danny Mösch
31eb218b08
Rewrite if expressions also in other code blocks ( #5413 )
2024-01-07 14:32:44 -05:00