Commit Graph

294 Commits

Author SHA1 Message Date
Danny Mösch 6c8e8993ee Exclude @Suite types and @Test functions from no_magic_numbers analysis (#5968) 2025-02-12 14:27:33 -05:00
Danny Mösch 6ba231a11a Consider composed inherited types (#5984) 2025-01-30 22:50:18 +01:00
Danny Mösch b4eb2df567 Allow severity of duplicate_imports rule to be configurable (#5979) 2025-01-22 20:47:11 +00:00
Danny Mösch 9b22cda361 Add ib_segue_action to default configuration (#5956) 2025-01-14 21:50:11 +01:00
Riley Williams 651776896e Remove lints for redundant_sendable on protocols (#5959) 2025-01-13 23:15:40 +00:00
Danny Mösch 3f2b86c54d Remove trailing comma when Sendable was last (#5955) 2025-01-13 20:18:54 +01:00
Koichiro Ueki fc70594ad2 Ignore TipKit's #Rule macro in empty_count rule (#5918)
Co-authored-by: Danny Mösch <danny.moesch@icloud.com>
2025-01-07 09:22:10 -05:00
Danny Mösch ae8aeb3995 Add option to disable redundant_discardable_let in SwiftUI view bodies (#5929) 2025-01-03 19:30:35 +01:00
Danny Mösch bef8acfb0e Avoid NSRegularExpression in configurations (#5921) 2024-12-28 12:54:23 -05:00
Danny Mösch 1d8af83b48 Collect corrections together with violations (#5916) 2024-12-27 09:58:53 +01:00
Danny Mösch ff21ff796c Specify rule properties in attribute 2024-12-26 20:40:29 +01:00
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