Phlippie
a84d9a9ed4
Add new static_over_final_class rule ( #5487 )
2024-03-08 20:37:35 +01:00
Danny Mösch
7c29ae4f3e
Add new shorthand_argument rule ( #5451 )
2024-02-06 23:36:28 +00:00
Danny Mösch
a8a676f479
Merge return_value_from_void_function and discouraged_void_return rules ( #5403 )
2023-12-26 11:23:27 +01:00
Danny Mösch
77a9d3ccc6
Add discouraged_void_return rule ( #5400 )
2023-12-22 15:21:36 +01:00
Danny Mösch
ddaf3d22ad
Add new final_test_case rule ( #5396 )
2023-12-20 20:59:03 +01:00
Muhammad Zeeshan
7d6f6cfa17
Add new one_declaration_per_file rule ( #5377 )
2023-12-09 05:11:25 -05:00
Ben P
544e1c60c7
Add a new non_optional_string_data_conversion rule ( #5264 )
2023-12-02 07:33:22 -05:00
JP Simard
48604d35e3
Update Sourcery to 2.1.2 ( #5318 )
2023-10-31 20:34:49 +00:00
Danny Mösch
58928b7e40
Enforce any on existential types ( #5273 )
...
This makes syntactically clear which types are rather expensive.
2023-10-12 08:37:23 +02:00
Danny Mösch
9f927e9d9b
Add new non_overridable_class_declaration rule ( #5160 )
2023-08-28 13:34:09 -04:00
Matt Thompson
0537f3af75
Add new private_swiftui_state_property rule ( #4769 )
2023-07-28 16:08:00 -04:00
Keith Smiley
b3189aa2d7
Add unneeded_override rule ( #5139 )
...
This rule flags functions where the only thing they do is call their
super function and therefore could be omitted. For example:
```swift
override func foo() {
super.foo()
}
```
This can get pretty complex since there are a lot of slight variations
the subclasses' functions can call the superclasses' functions with, but
this covers many of the cases. Ideally this would handle variable
overrides too but it doesn't currently.
2023-07-26 15:36:30 -04:00
Martin Redington
0693d547b0
Add new unneeded_synthesized_initializer rule ( #4812 )
2023-06-21 22:15:02 +02:00
woxtu
f1d5a55658
Fix typo ( #5044 )
2023-06-10 23:50:49 +02:00
Kyle Bashour
8822d40687
Add unhandled_throwing_task rule ( #4958 )
...
This rule will check Task's that are not explicitly annotated with success and
failure types for unhandled try expressions. These trys will silently fail if an
error is thrown.
See this forum thread for more details:
https://forums.swift.org/t/task-initializer-with-throwing-closure-swallows-error/56066
2023-05-10 14:03:01 -04:00
Danny Mösch
6a2e973de3
Add new redundant_self_in_closure rule ( #4911 )
2023-05-05 21:14:14 +02:00
JP Simard
a7bc9e20c7
Move built-in rules to new SwiftLintBuiltInRules module ( #4950 )
2023-04-27 11:16:01 -04:00