Danny Mösch and GitHub
d1cdf8ce20
Extend redundant_self_in_closure to find all redundant selfs ( #6346 )
2025-12-07 07:49:50 -05:00
31cdc24101
Add new multiline_call_arguments rule ( #6223 )
...
Co-authored-by: Danny Mösch <danny.moesch@icloud.com >
2025-11-30 18:16:11 -05:00
Danny Mösch and GitHub
97579b5dcf
Add new unneeded_escaping rule ( #6337 )
2025-11-14 18:54:51 +01:00
837a90621b
Add new unneeded_throws_rethrows rule ( #6069 )
...
Co-authored-by: Danny Mösch <danny.moesch@icloud.com >
2025-11-03 17:39:31 +01:00
Danny Mösch and GitHub
70a2e6ceac
Add new incompatible_concurrency_annotation rule ( #6290 )
2025-10-20 15:11:10 -04:00
9a61f48c7a
Add prefer_asset_symbols rule ( #6261 )
...
Co-authored-by: Danny Mösch <danny.moesch@icloud.com >
2025-10-10 15:28:16 -04:00
Danny Mösch and GitHub
57d6752a2a
Merge function_name_whitespace and operator_whitespace rules ( #6217 )
2025-09-03 00:34:22 +02:00
91b26549c4
Add function_name_whitespace rule to validate and autocorrect spacing around function names ( #6156 )
...
Co-authored-by: Danny Mösch <danny.moesch@icloud.com >
2025-08-30 10:40:44 -04:00
2677d5ee6e
Add new implicit_optional_initialization replacing redundant_optional_initialization ( #6165 )
...
The new rule covers both cases, initialization with `= nil` and without, consistently.
Co-authored-by: Danny Mösch <danny.moesch@icloud.com >
2025-08-13 10:08:49 +00:00
Danny Mösch and GitHub
cb214d51fa
Add new prefer_condition_list rule ( #6157 )
2025-07-12 07:52:50 -04:00
Danny Mösch and GitHub
ed5b3741fe
Remove opaque_over_existential rule ( #6049 )
...
This partially reverts commit 82736d1925 .
2025-04-08 06:38:12 -04:00
Danny Mösch and GitHub
9710148f76
Replace Sourcery with internal implementation ( #6034 )
...
Tasks we perform with Sourcery are rather simple and can be replaced
with a basic collection of files and the generation of lists in the
new `swiftlint-dev` command. This spares contributors from installing
either Sourcery or Bazel.
2025-03-26 20:38:53 +00:00
Danny Mösch and GitHub
82736d1925
Add new opaque_over_existential rule ( #5915 )
2025-02-12 16:46:28 -05:00
Danny Mösch and GitHub
03f8c83d0d
Add new redundant_sendable rule ( #5902 )
2024-12-25 23:05:02 +01:00
Danny Mösch and GitHub
f2175c1906
Remove deprecated inert_defer rule entirely ( #5894 )
2024-12-09 18:30:22 -05:00
Danny Mösch and GitHub
40f9a2a18e
Remove deprecated rule entirely ( #5889 )
...
The rule has been deprecated for 2 years.
2024-12-07 09:25:29 -05:00
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
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 and GitHub
48aaca61f0
Reverse Data -> String conversion rule ( #5601 )
2024-08-24 10:13:04 +00:00
Martin Redington and GitHub
60a1d342f4
Remove anyobject_protocol rule ( #5770 )
2024-08-24 10:51:04 +02:00
ikelax and GitHub
9f4cb9240b
Swift type checking using is ( #5561 )
2024-08-23 16:48:38 +01:00
Danny Mösch and GitHub
b67e82a832
Extract new contrasted_opening_brace rule from opening_brace rule ( #5723 )
2024-08-03 18:03:41 +02:00
Danny Mösch and GitHub
a657438caf
Add new prefer_key_path rule ( #5548 )
2024-08-02 22:05:28 +00:00
Danny Mösch and GitHub
d46bfcd657
Fix some typos ( #5688 )
2024-07-21 21:20:45 +00:00
Danny Mösch and GitHub
e48bdb7adf
Add new unused_parameter rule ( #5668 )
2024-07-14 05:31:29 -04:00
Koichiro Ueki and GitHub
aa9f474cb9
Add new no_empty_block rule ( #5617 )
2024-06-29 13:13:41 +02:00
Danny Mösch and GitHub
c810459e6a
Enforce mandatory trailing comma and fix all violations ( #5640 )
2024-06-28 05:36:50 +00:00
Phlippie and GitHub
a84d9a9ed4
Add new static_over_final_class rule ( #5487 )
2024-03-08 20:37:35 +01:00
Danny Mösch and GitHub
7c29ae4f3e
Add new shorthand_argument rule ( #5451 )
2024-02-06 23:36:28 +00:00
Danny Mösch and GitHub
a8a676f479
Merge return_value_from_void_function and discouraged_void_return rules ( #5403 )
2023-12-26 11:23:27 +01:00
Danny Mösch and GitHub
77a9d3ccc6
Add discouraged_void_return rule ( #5400 )
2023-12-22 15:21:36 +01:00
Danny Mösch and GitHub
ddaf3d22ad
Add new final_test_case rule ( #5396 )
2023-12-20 20:59:03 +01:00
Muhammad Zeeshan and GitHub
7d6f6cfa17
Add new one_declaration_per_file rule ( #5377 )
2023-12-09 05:11:25 -05:00
Ben P and GitHub
544e1c60c7
Add a new non_optional_string_data_conversion rule ( #5264 )
2023-12-02 07:33:22 -05:00
JP Simard and GitHub
48604d35e3
Update Sourcery to 2.1.2 ( #5318 )
2023-10-31 20:34:49 +00:00
Danny Mösch and GitHub
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 and GitHub
9f927e9d9b
Add new non_overridable_class_declaration rule ( #5160 )
2023-08-28 13:34:09 -04:00
Matt Thompson and GitHub
0537f3af75
Add new private_swiftui_state_property rule ( #4769 )
2023-07-28 16:08:00 -04:00
Keith Smiley and GitHub
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 and GitHub
0693d547b0
Add new unneeded_synthesized_initializer rule ( #4812 )
2023-06-21 22:15:02 +02:00
woxtu and GitHub
f1d5a55658
Fix typo ( #5044 )
2023-06-10 23:50:49 +02:00
Kyle Bashour and GitHub
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 and GitHub
6a2e973de3
Add new redundant_self_in_closure rule ( #4911 )
2023-05-05 21:14:14 +02:00
JP Simard and GitHub
a7bc9e20c7
Move built-in rules to new SwiftLintBuiltInRules module ( #4950 )
2023-04-27 11:16:01 -04:00