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
Dinesh Sharma and Danny Mösch
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
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 and Danny Mösch
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
Jared Grubb
fb3ce5adb2
Add ignore_properties option to redundant_type_annotation rule ( #5839 )
2024-11-12 19:27:59 +00:00
Leonardo de Sousa Rodrigues and Danny 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
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
78b665d536
Unroll parsing code to make Version a struct ( #5730 )
2024-08-05 21:48:50 +00: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
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
e44bf9adb6
Add new brace_on_new_line option to opening_brace rule ( #5708 )
2024-07-30 22:23:01 +02: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
Martin Redington
3421f5f46d
Enable multiline_parameters rule, and fix all cases ( #5664 )
2024-07-18 01:48:02 +01:00
Danny Mösch
cc4b569c54
Enable unused_parameter rule and fix all violations ( #5673 )
2024-07-14 11:20:50 -04:00
Martin Redington
ed10aec5f8
Enable implicit_return and fix all violations ( #5658 )
2024-07-10 12:15:19 +01:00
woxtu and Danny Mösch
6642d45a2d
Rewrite missing_docs rule with SwiftSyntax ( #5048 )
...
Co-authored-by: Danny Mösch <danny.moesch@icloud.com >
2024-07-02 20:09:19 +02:00
Danny Mösch
c810459e6a
Enforce mandatory trailing comma and fix all violations ( #5640 )
2024-06-28 05:36:50 +00:00
Garric G. Nahapetian
16c0213027
Add option to redundant_type_annotation rule to consider default literal types redundant ( #4756 )
2024-05-01 21:15:35 +02:00
Danny Mösch
1b7fbc4bcd
Make postprocessors non-throwing ( #5539 )
...
Failing immediately when a property is invalid is too strict. It feels
sufficient to allow to report an issue but otherwise continue with a default
value instead of stopping execution completely.
2024-04-23 16:45:59 -04:00
Marceau TONELLI and Danny Mösch
b3dd89088e
Rewrite redundant_type_annotation with SwiftSyntax ( #5389 )
...
Co-authored-by: Danny Mösch <danny.moesch@icloud.com >
2024-04-21 17:46:29 +02:00
Danny Mösch
ccd50e8c68
Merge duplicated issues
2024-03-24 09:36:18 +01:00
Danny Mösch
82cad0bfff
Allow to infer option names ( #5505 )
...
This allows to infer names of options from their names in a configuration. CamelCase is translated into snake_case automatically when `apply` is triggered.
* Don't have all `RuleConfiguration`s conform to `InlinableOptionType`. Mark types that must have this capability explicitly. Same for `AcceptableByConfigurationElement`.
* A type being an `InlinableOptionType` doesn't mean it's automatically inlined. This also doesn't depend on the fact of having a name for its key configured any longer. Instead, an `inline` attribute must explicitly be set to `true` in `@ConfigurationElement`.
* Key name inference is optional and can be overwritten by specifying a key name in the attribute.
* Inlined configurations only fail in `apply` when they are really sure that something is odd. Otherwise, they accept to not being updated.
2024-03-23 18:54:39 +01:00
Danny Mösch
c730047176
Enable superfluous_else rule ( #5412 )
2024-03-03 16:30:44 +01:00
Danny Mösch
7c29ae4f3e
Add new shorthand_argument rule ( #5451 )
2024-02-06 23:36:28 +00:00
Kasra Babaei
77bae5429c
Allow line_length rule to ignore certain lines based on regex patterns ( #5437 )
2024-01-26 09:40:59 +01:00
m.a
443cbd7fce
Add new option ignore_typealiases_and_associatedtypes to nesting rule ( #5433 )
2024-01-21 12:28:23 -05:00
Marceau TONELLI
902ac305bf
Add option to switch_case_alignment rule to ignore switch statements written on a single line ( #5390 )
2024-01-03 22:43:37 +01:00
Danny Mösch
ddaf3d22ad
Add new final_test_case rule ( #5396 )
2023-12-20 20:59:03 +01:00
Leonardo de Sousa Rodrigues
eecb44db6e
Add option to make unneeded_override rule affect initializers ( #5270 )
2023-11-30 21:35:53 +01:00
Danny Mösch
8cb2cf9f85
Rewrite let_var_whitespace rule with SwiftSyntax ( #5367 )
2023-11-29 22:45:06 +01:00
Danny Mösch
efddde68ac
Allow to configure more operators in identifier_name rule ( #5362 )
2023-11-19 15:59:54 +01:00
Marcelo Fabri and JP Simard
686dc3dd32
Rewrite RedundantVoidReturnRule with SwiftSyntax ( #4192 )
...
Also include redundant void return clauses for closures in addition to
functions. This can be disabled by configuring the rule with
`include_closures: false`.
Co-authored-by: JP Simard <jp@jpsim.com >
2023-10-30 13:41:31 -04:00
Marcelo Fabri
715198ae3f
Rewrite cyclomatic_complexity with SwiftSyntax ( #5308 )
2023-10-29 11:17:45 -07:00
Danny Mösch
0934c18cba
Let RuleConfigurations be equatable by default ( #5257 )
2023-10-03 18:05:31 +02:00
Danny Mösch
2433e7b5bf
Make use of macros to generate configuration parsing code ( #5250 )
2023-10-02 22:35:24 +02:00
Tatsuyuki Kobayashi
1bbce6c1b0
Add only configuration option to todo rule ( #5233 )
2023-09-26 14:45:04 -04:00
Ricky Tan
865f0227f6
Add new mode weak_except_iboutlets to implicitly_unwrapped_optional rule ( #4975 )
2023-09-15 22:15:42 +02:00
Martin Redington
0c9827bc59
Add include_bare_init option to explicit_init rule ( #5203 )
2023-09-04 22:19:54 +02:00
Danny Mösch
02640a3415
Rewrite implicit_return rule using SwiftSyntax ( #5166 )
2023-09-02 14:32:37 +02:00
Dylan Bettermann
d85c85d351
Add invokeTest() to overridden_super_call defaults ( #5192 )
2023-08-29 20:40:22 +02:00
Danny Mösch
ef494f7428
Deprecate parts of private_unit_test rule's configuration ( #5102 )
2023-08-28 14:15:21 -04:00
Danny Mösch
3b228cbf2e
Remove support for deprecated option ( #5107 )
2023-08-28 13:42:44 -04:00
Danny Mösch
9f927e9d9b
Add new non_overridable_class_declaration rule ( #5160 )
2023-08-28 13:34:09 -04:00
Danny Mösch
4d5311f194
Make severity configurable in type_contents_order rule
2023-07-08 14:56:50 +02:00
Danny Mösch
45ba074b7a
Document exclude_ranges in number_separator rule
2023-07-08 14:56:50 +02:00