Skip to content

False positive on Delegate functions when superclass defines the conformance #902

@WJacobsNL

Description

@WJacobsNL

I found false positives in our project on "unused functions"

For instance, I got the result that the func scrollViewDidScroll(_ scrollView: UIScrollView) is not being used. But actually the superclass of my class already conforms to the UIScrollViewDelegate, so this function is being called in the end.

I also noticed the same, when conforming to a UITableViewDelegate protocol, the UIScrollViewDelegate methods are flagged as being unused, while conforming to UITableViewDelegate, also makes you conform to UIScrollViewDelegate (and the functions are being triggered)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA bug in Periphery

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions