Danny Mösch
85c4a3a03d
Revert "Allow to initialize Examples by string literals ( #5154 )" ( #5155 )
...
This reverts commit 56461c3ab4 .
2023-08-04 00:03:26 +02:00
Danny Mösch
56461c3ab4
Allow to initialize Examples by string literals ( #5154 )
2023-08-03 23:03:41 +02:00
Danny Mösch
8effdd35f0
Reduce number of examples ( #5152 )
2023-08-01 16:38:00 -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
9a5c3ed641
Disabled rules in child configs are no longer automatically ignored if they are opt-in ( #4863 )
2023-07-26 21:19:39 +02:00
Danny Mösch
5b64c1097a
Fix runtime error when an excluded directory does not exist ( #5143 )
2023-07-25 21:25:04 +02:00
Danny Mösch
77c5a3cc75
Fix false positive in control_statement rule rewriting it with SwiftSyntax ( #5141 )
2023-07-23 17:48:40 -04:00
Danny Mösch
b53919d40c
Simplify data flow
2023-07-17 23:18:26 +02:00
Danny Mösch
a25fbe3e50
Make indent function a String extension
2023-07-17 23:18:26 +02:00
Danny Mösch
2c45e3c4c5
Fix method documentation ( #5125 )
2023-07-15 22:17:43 +00:00
Christian Panetta
bf8edaaeff
Improve violation message for attributes rule ( #5108 )
2023-07-15 15:47:11 +02:00
Martin Redington
991827e5da
Fixed false positives for nested structs in classes ( #5121 )
2023-07-15 09:33:25 +02:00
Danny Mösch
205e5a90d3
Ignore initializers of computed properties in prefer_self_in_static_references rule ( #5119 )
2023-07-14 22:44:44 +02: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
Danny Mösch
9881930be5
Implement conformances in extensions ( #5109 )
2023-07-08 13:52:17 +02:00
Danny Mösch
5d0168ad66
Defined order of examples ( #5106 )
...
* Exclude example with configuration from documentation
* Ensure a fixed order for examples
2023-07-06 15:18:39 -04:00
JP Simard
9eaecbedce
release 0.52.4
2023-07-06 14:43:54 -04:00
Danny Mösch
d1fe2fc1d3
Omit empty default configurations from documentation ( #5100 )
2023-07-05 17:52:43 -04:00
Danny Mösch
1d86bfefb3
Implement defaults right after protocol definition ( #5101 )
2023-07-05 17:06:34 -04:00
Danny Mösch
045ba9f641
Remove redundant initializer ( #5097 )
2023-07-04 18:28:26 -04:00
Danny Mösch
ac81139942
Provide projectedValue to refer to option name ( #5098 )
2023-07-05 00:05:04 +02:00
Kasra Babaei
6e2bd8c059
Skip initializers in private_subject rule ( #5096 )
2023-07-04 21:45:17 +02:00
Kasra Babaei
488182ae1b
Do not trigger prefer_self_in_static_references on classes used as generics ( #5084 )
2023-07-04 21:40:57 +02:00
Danny Mösch
02ba97225f
Remove redundant initializer ( #5095 )
2023-07-03 23:24:43 +02:00
Danny Mösch
678cd6f805
Introduce a model for rule configuration description ( #3931 )
2023-07-03 22:47:30 +02:00
Danny Mösch
f6a41b6fb6
Fix typo ( #5087 )
2023-07-01 16:42:07 -04:00
Danny Mösch
834e532700
Ignore switch expressions assigned to variables in switch_case_alignment rule ( #5086 )
2023-07-01 16:40:34 -04:00
Danny Mösch
a68e062ac3
Extract methods ( #5085 )
2023-06-26 16:37:34 -04:00
Martin Redington
ce255bbae9
Fix correction of direct_return rule for cases with trailing comments ( #5083 )
2023-06-26 21:55:31 +02:00
Danny Mösch
ed223e32e8
Handle static spec methods in quick_discouraged_call rule ( #5073 )
2023-06-23 18:59:01 +02:00
Martin Redington
0c69705b1c
Avoid removing initializers which contain code ( #5076 )
2023-06-23 13:14:10 +02:00
JP Simard
117405ce36
release 0.52.3
2023-06-22 11:00:07 -04:00
Danny Mösch
33545d2f4b
Add configuration for unallowed symbols severity ( #5066 )
2023-06-22 10:42:41 -04:00
JP Simard
b69ae7cc4d
Silence duplicate symbol runtime warning ( #5068 )
...
Similar to #4901 but updated with a new warning from Xcode 15 beta 1.
Increase dupclass max name length from 64 to 128
2023-06-22 10:14:54 -04:00
Martin Redington
0693d547b0
Add new unneeded_synthesized_initializer rule ( #4812 )
2023-06-21 22:15:02 +02:00
Danny Mösch
41b06629fd
Add new --silence-deprecation-warnings flag ( #5014 )
2023-06-20 16:03:22 -04:00
woxtu
21fbf59c2c
Rewrite todo rule with SwiftSyntax ( #5040 )
2023-06-19 10:28:51 -04:00
Danny Mösch
3ec9bc85bc
Inline variables
2023-06-18 12:01:28 +02:00
Danny Mösch
f5ea2492dc
Merge allowed symbols with alphanumerics where possible
2023-06-18 12:01:28 +02:00
Danny Mösch
b89e43a799
Make sure case check can be disabled by new off option value ( #5064 )
2023-06-17 22:27:57 +02:00
Danny Mösch
c8cd311615
Collapse conditional statements into single expression
2023-06-13 23:24:48 +02:00
Danny Mösch
ba42a6aa36
Extract examples
2023-06-13 23:24:48 +02:00
Danny Mösch
83ab977a1b
Introduce visitor that tracks declared variables while traversing the AST
2023-06-13 23:24:48 +02:00
Danny Mösch
f12b8d66d3
Do not trigger prefer_self_in_static_references rule on collection types ( #5055 )
2023-06-12 16:40:45 -04:00
JP Simard
e5cf99088b
Update SwiftSyntax to 509.0.0-swift-DEVELOPMENT-SNAPSHOT-2023-06-05-a ( #5058 )
...
Diff: https://github.com/apple/swift-syntax/compare/509.0.0-swift-DEVELOPMENT-SNAPSHOT-2023-05-02-a...509.0.0-swift-DEVELOPMENT-SNAPSHOT-2023-06-05-a
2023-06-12 15:22:17 -04:00
Danny Mösch
23326fc433
Specify default options in configurations only ( #5056 )
2023-06-11 10:44:06 -07:00
woxtu
156f6aabc8
Fix false positives in sorted_first_last rule when first/last have a predicate ( #5038 )
2023-06-11 17:22:06 +02:00
woxtu
43190834c5
Fix legacy_random examples ( #5047 )
2023-06-10 23:53:45 +02:00