Danny Mösch
0d070a8c8c
Update result builder methods in unused_declaration rule fixing some false-positives ( #4000 )
2022-06-19 11:59:23 +02:00
JP Simard
888619912f
Run CI with Xcode 12.5.1 & Swift 5.4 ( #3710 )
...
And require Swift 5.4 or Xcode 12.5 or later to build SwiftLint.
2021-09-10 08:32:02 -07:00
JP Simard
0a0fb1e71b
File false negatives in unused_declaration
...
When a declaration refers to an Objective-C type but doesn't have an
explicit `@objc` attribute.
It would have the string `@objc` embedded in its USR. So add a space so
we only trigger this condition when there's an explicit `@objc`
attribute in the declaration source code.
The triggering example added here didn't trigger before this change.
2021-03-02 11:36:06 -05:00
JP Simard
6b51c3ebc5
[UnusedDeclarationRule] Fix false positives with result builders ( #3528 )
2021-02-23 07:59:37 -08:00
JP Simard
ebca5238a7
Fix false positives on unused_declaration for outlets with accessors
2020-12-11 10:07:22 -05:00
Keith Smiley
22ee449971
Fix @IBInspectable unused declarations with get/set ( #3458 )
2020-12-07 11:07:16 -08:00
Keith Smiley
03f13e5bb7
Remove @IBOutlet and @IBInspectable from UnusedDeclarationRule ( #3432 )
...
The original implementation wasn't tested so it regressed.
https://github.com/realm/SwiftLint/pull/3184
2020-12-03 11:00:53 -08:00
Keith Smiley
e50e34a60a
Add another
2020-11-16 15:54:23 -08:00
Keith Smiley
866102c3fc
Add XCTestCase examples to unused declaration rule ( #3192 )
2020-11-16 15:32:51 -08:00
JP Simard
f71394a372
[UnusedDeclarationRule] Add more tests ( #3359 )
2020-09-21 12:10:46 -07:00