Commit Graph
268 Commits
Author SHA1 Message Date
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 TaykaloandDanny Mösch 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 ShardaandDanny 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
Sam Rayner 48aaca61f0 Reverse Data -> String conversion rule (#5601) 2024-08-24 10:13:04 +00:00
Leonardo de Sousa RodriguesandDanny 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
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
Martin Redington 103e585b56 Make sure that violations of the typesafe_array_init rule are correctly reported as violations of that rule rather than array_init (#5710) 2024-07-28 19:05:03 +01:00
Danny Mösch 39b7c9f134 Move and refactor methods (#5706) 2024-07-27 16:24:32 +00:00
LamTrinh.Dev 03b28d5ece Fix typo (#5691) 2024-07-24 18:31:29 +00:00
Martin Redington 6ee4623565 Fix deprecation warnings (#5695) 2024-07-24 19:30:36 +02:00
Danny Mösch 98cf87ab8d Rename macros to something more descriptive (#5686) 2024-07-23 20:14:29 +02:00
Koichiro Ueki b9f38435de Make no_empty_block rule opt-in and add configurations (#5685) 2024-07-22 18:34:20 +02:00
Danny Mösch d46bfcd657 Fix some typos (#5688) 2024-07-21 21:20:45 +00:00
Danny Mösch a14c4a994e Improve test coverage slightly (#5687) 2024-07-21 20:47:34 +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 TatsuyaandDanny 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