Danny Mösch
03f8c83d0d
Add new redundant_sendable rule ( #5902 )
2024-12-25 23:05:02 +01:00
Martin Redington
deaacf6f69
Fixed PrivateUnitTestRule deprecations ( #5912 )
2024-12-25 19:43:27 +00:00
Danny Mösch
15e1598d43
Move reusable functionality from SwiftLintBuiltInRules to SwiftLintCore
2024-12-23 12:51:43 +01:00
Dinesh Sharma
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
Danny Mösch
f2175c1906
Remove deprecated inert_defer rule entirely ( #5894 )
2024-12-09 18:30:22 -05:00
Danny Mösch
40f9a2a18e
Remove deprecated rule entirely ( #5889 )
...
The rule has been deprecated for 2 years.
2024-12-07 09:25:29 -05:00
Danny Mösch
7dd8e65d4f
Ignore super calls with trailing closures ( #5887 )
2024-12-05 16:38:34 -05:00
Danny Mösch
f13c54cf88
Replace identity expressions with \.self ( #5871 )
2024-12-01 19:30:29 +01:00
Jared Grubb
c45427e08b
Handle @unknown default in vertical_whitespace_between_cases rule ( #5843 )
2024-12-01 01:17:08 +00:00
Danny Mösch
b22c2b5c4c
Treat compactMap as standard function ( #5876 )
2024-11-29 22:52:37 +00:00
jkolarik-paylocity
0ce122e716
Add new async_without_await rule ( #5869 )
...
Co-authored-by: Danny Mösch <danny.moesch@icloud.com >
2024-11-27 16:15:25 -05:00
fraioli
b9d33e43ec
Update file_name rule to allow fully-qualified names of nested types ( #5841 )
2024-11-26 21:47:49 +01:00
Kim de Vos
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
025b1e7f73
Allow inherited isolation parameter to be first in function signatures ( #5859 )
2024-11-17 09:35:09 -05:00
Danny Mösch
9e61e81748
Rework algorithm used in function_default_parameter_at_end rule ( #5858 )
2024-11-16 23:00:57 +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
Jared Grubb
fb3ce5adb2
Add ignore_properties option to redundant_type_annotation rule ( #5839 )
2024-11-12 19:27:59 +00:00
Martin Redington
01f5ecd64a
Replace description.identifier with identifier ( #5837 )
2024-10-26 14:46:03 +01:00
Paul Taykalo
832821259a
Make use of transitive imports configuration ( #5622 )
...
Co-authored-by: Danny Mösch <danny.moesch@icloud.com >
2024-10-25 19:43:49 +02:00
Danny Mösch
d4b41bc53b
Stop triggering on self in key path expressions ( #5836 )
2024-10-24 16:50:18 +00:00
Martin Redington
9ebd6ae9d2
Dont trigger for non-optional type casting, or for optional types ( #5805 )
2024-10-11 19:15:48 +01:00
Danny Mösch
1767dab485
Add Swift 6 presentation of map(_:) type ( #5804 )
2024-09-21 11:53:30 +00:00
Danny Mösch
37f15d4388
Suggest broader initializer accepting Sequences ( #5794 )
2024-09-16 18:16:35 +00:00
Danny Mösch
85c4dbe963
Ensure expected initializer signature ( #5786 )
2024-09-09 21:18:00 +00:00
Martin Redington
8baec9eed8
no_magic_numbers rule now ignores violations in Preview macros ( #5778 )
2024-09-08 14:22:58 +01:00
Martin Redington
9e78054781
Preserve trailing comments for opening_brace rule ( #5780 )
2024-09-08 12:31:45 +01:00
Aryaman Sharda
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
Sam Rayner
48aaca61f0
Reverse Data -> String conversion rule ( #5601 )
2024-08-24 10:13:04 +00:00
Leonardo de Sousa Rodrigues
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
Martin Redington
60a1d342f4
Remove anyobject_protocol rule ( #5770 )
2024-08-24 10:51:04 +02:00
ikelax
9f4cb9240b
Swift type checking using is ( #5561 )
2024-08-23 16:48:38 +01:00
Danny Mösch
c8a9065428
Silence prefer_key_path rule on macro expansion expressions ( #5765 )
2024-08-21 17:07:39 +00:00
Danny Mösch
f3bdd27626
Silence unneeded_override rule on methods and initializers with attributes ( #5764 )
2024-08-21 18:56:51 +02:00
Danny Mösch
9d0711070d
Trigger on empty closure blocks in no_empty_block rule ( #5763 )
2024-08-20 22:28:30 +02: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
21b1a03e2b
Ignore initializers with attributes in unneeded_synthesized_initializer rule ( #5758 )
2024-08-19 20:56:32 +02:00
Danny Mösch
cffb331009
Fix spurious Bazel build errors ( #5756 )
2024-08-18 20:53:57 +00:00
Danny Mösch
248ffafd83
Make contrasted_opening_brace opt-in
2024-08-07 01:02:45 +02:00
Danny Mösch
78b665d536
Unroll parsing code to make Version a struct ( #5730 )
2024-08-05 21:48:50 +00:00
Danny Mösch
1d26f4c0ef
Let descriptions be immutable ( #5729 )
2024-08-05 17:09:50 -04: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
Danny Mösch
a657438caf
Add new prefer_key_path rule ( #5548 )
2024-08-02 22:05:28 +00:00
Danny Mösch
75d3a87e96
Treat specialized imports with attributes as unique ( #5718 )
2024-07-31 23:01:39 +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