Marcelo Fabri
53752f58ad
Rewrite redundant_set_access_control with SwiftSyntax ( #4395 )
2022-10-23 15:30:01 -07:00
Marcelo Fabri
c98ffcc940
Rewrite convenience_type rule with SwiftSyntax ( #4452 )
2022-10-23 15:28:55 -07:00
Marcelo Fabri
351c8be2e0
Rewrite return_arrow_whitespace with SwiftSyntax ( #4413 )
2022-10-23 15:06:14 -07:00
JP Simard
cb79584c7d
Migrate comment_spacing to use SwiftSyntax classifications ( #4460 )
2022-10-23 17:39:38 -04:00
JP Simard
de7996f5c7
Rewrite discarded_notification_center_observer with SwiftSyntax ( #4459 )
2022-10-23 20:35:09 +00:00
JP Simard
1ee5154687
Update SwiftSyntax to fa7ff05 ( #4455 )
...
There's a new SwiftParserDiagnostics module and the rewriter visit
function signatures changed.
2022-10-23 11:56:22 -04:00
JP Simard
401d0f7929
Update SwiftSyntax to 60c7037 ( #4454 )
...
This has changes to how comments are associated to nodes.
See https://github.com/apple/swift-syntax/pull/985
2022-10-23 11:15:27 -04:00
Marcelo Fabri
25a04e8eeb
Migrate inclusive_language rule to SwiftSyntax ( #4390 )
2022-10-23 14:00:40 +00:00
Marcelo Fabri
0bd9e4e65f
Rewrite unused_optional_binding with SwiftSyntax ( #4449 )
2022-10-23 06:13:54 -07:00
Marcelo Fabri
60054da0f7
Rewrite prefer_self_type_over_type_of_self with SwiftSyntax ( #4451 )
2022-10-23 06:06:16 -07:00
Marcelo Fabri
35fcf55198
Rewrite reduce_into rule with SwiftSyntax ( #4447 )
2022-10-23 07:58:48 -04:00
Marcelo Fabri
cee4af098f
Migrate prefer_zero_over_explicit_init to SwiftSyntax ( #4448 )
2022-10-23 04:53:00 -07:00
Marcelo Fabri
9c8708bc01
Extract common SwiftSyntax extensions ( #4445 )
2022-10-23 00:54:18 -07:00
Marcelo Fabri
7b1099a33d
Rewrite prefixed_toplevel_constant with SwiftSyntax ( #4425 )
2022-10-21 13:11:40 -07:00
JP Simard
4589161742
Rewrite redundant_objc_attribute with SwiftSyntax ( #4441 )
2022-10-21 18:28:21 +00:00
JP Simard
5af8e3dd68
Rewrite lower_acl_than_parent with SwiftSyntax ( #4432 )
...
And fix violations in SwiftLint.
2022-10-21 09:31:10 -04:00
Marcelo Fabri
1fb04902c0
Rewrite multiline_parameters rule with SwiftSyntax ( #4438 )
2022-10-21 09:08:27 +00:00
Marcelo Fabri
0dfc7a85b5
Rewrite required_deinit rule with SwiftSyntax ( #4439 )
2022-10-21 08:33:54 +00:00
Marcelo Fabri
a4fbec355c
Validate protocols in type_name rule ( #4433 )
...
Fixes #4430
2022-10-21 00:11:18 -07:00
Marcelo Fabri
9f4b2c37ba
Rewrite for_where, adding allow_for_as_filter config ( #4154 )
2022-10-20 18:47:31 -07:00
Marcelo Fabri
f509998ec1
Rewrite empty_count with SwiftSyntax ( #4426 )
2022-10-20 16:52:30 -07:00
JP Simard
e84430f222
Update SwiftSyntax ( #4431 )
2022-10-20 13:16:00 -04:00
Marcelo Fabri
469a3aa87a
Rewrite type_name rule with SwiftSyntax ( #4428 )
2022-10-20 09:22:39 -07:00
Marcelo Fabri
59ad84f6e9
Add ns_number_init_as_function_reference rule ( #4414 )
2022-10-20 09:15:17 -07:00
Marcelo Fabri
fd722892e5
Rewrite notification_center_detachment with SwiftSyntax ( #4422 )
2022-10-20 09:14:51 -07:00
Marcelo Fabri
c46fd55711
Migrate file_name rule to SwiftSyntax ( #4423 )
2022-10-20 09:14:08 -07:00
Marcelo Fabri
2929e35183
Rewrite single_test_class rule with SwiftSyntax ( #4424 )
2022-10-20 09:13:23 -07:00
Marcelo Fabri
533917dced
Rewrite raw_value_for_camel_cased_codable_enum with SwiftSyntax ( #4427 )
2022-10-20 08:23:32 -07:00
Marcelo Fabri
62c8985a3e
Make Quick* rules more permissive ( #4421 )
...
Fixes #4420
2022-10-19 16:08:35 -07:00
Marcelo Fabri
93b016bca3
Migrate unavailable_function to SwiftSyntax ( #4387 )
2022-10-18 20:19:27 -07:00
Marcelo Fabri
bf716d7089
Rewrite unused_capture_list with SwiftSyntax ( #4412 )
2022-10-18 20:16:39 -07:00
Marcelo Fabri
d3274565a1
Migrate compiler_protocol_init rule to SwiftSyntax ( #4392 )
2022-10-18 20:14:00 -07:00
Marcelo Fabri
04d7ce05ca
Rewrite joined_default_parameter with SwiftSyntax ( #4411 )
2022-10-18 20:12:56 -07:00
Marcelo Fabri
bda8487ed2
Rewrite prefer_nimble rule with SwiftSyntax ( #4410 )
2022-10-18 01:42:08 -07:00
Danny Mösch
a8bc9e9b42
Let more rules rely on SwiftSyntaxRule's defaults ( #4401 )
2022-10-18 02:23:39 -04:00
Marcelo Fabri
286e59a0e6
Fix false positive in nsobject_prefer_isequal rule ( #4408 )
...
Fixes #4404
2022-10-17 22:26:37 -07:00
Marcelo Fabri
db910946dc
Simplift DiscouragedNoneNameRule implementation ( #4407 )
2022-10-18 04:43:40 +00:00
JP Simard
1837ae59cb
Rewrite legacy_objc_type with SwiftSyntax ( #4372 )
2022-10-17 17:29:09 -04:00
Marcelo Fabri
03848ce583
Make DiscouragedNoneNameRule opt-in again ( #4403 )
...
I mistakenly made it enable by default when rewriting it
2022-10-17 17:01:42 -04:00
JP Simard
e9f2248072
Remove dead code in DiscouragedDirectInitRule.swift ( #4402 )
2022-10-17 18:25:02 +00:00
Marcelo Fabri
9a9629c1e8
Rewrite discouraged_direct_init with SwiftSyntax ( #4397 )
2022-10-17 10:47:46 -07:00
JP Simard
1b86aa7eeb
Simplify SwitchCaseAlignmentRule ( #4399 )
...
By using `ReasonedRuleViolation`, `SwiftSyntaxRule` and `makeVisitor()`.
2022-10-17 10:59:07 -04:00
Marcelo Fabri
0504d2c3f9
Migrate function_parameter_count to SwiftSyntax ( #4394 )
2022-10-17 00:44:17 -07:00
Marcelo Fabri
844b7c02dd
Rewrite trailing_comma rule with SwiftSyntax ( #4385 )
2022-10-16 23:36:11 -07:00
Marcelo Fabri
b4ec2d360d
Rewrite unused_control_flow_label with SwiftSyntax ( #4339 )
2022-10-16 22:58:01 -07:00
Marcelo Fabri
89c227ecaa
Migrate weak_delegate rule to SwiftSyntax ( #4389 )
...
* Migrate `weak_delegate` rule to SwiftSyntax
* Remove unused declarations
2022-10-16 22:57:42 -07:00
Marcelo Fabri
6f4b75b0f6
Migrate legacy_constructor to SwiftSyntax ( #4386 )
2022-10-16 22:56:25 -07:00
Marcelo Fabri and Danny Mösch
4522005ab4
Migrate implicitly_unwrapped_optional to SwiftSyntax ( #4278 )
...
* Migrate `implicitly_unwrapped_optional` to SwiftSyntax
* Update Source/SwiftLintFramework/Rules/RuleConfigurations/ImplicitlyUnwrappedOptionalConfiguration.swift
Co-authored-by: Danny Mösch <danny.moesch@icloud.com >
* Fix after rebase
Co-authored-by: Danny Mösch <danny.moesch@icloud.com >
2022-10-16 22:55:32 -07:00
Marcelo Fabri
56a23448c3
Migrate unused_enumerated to SwiftSyntax ( #4391 )
2022-10-16 22:34:26 -07:00
Marcelo Fabri
bb1de21059
Convert enum_case_associated_values_count to SwiftSyntax ( #4393 )
2022-10-16 22:34:12 -07:00