Skip to content

It would be nice to have a way to disable false-positives #18

Open

Description

@jeanraymonddaher

The script is currently very useful since its well maintained, does the job and is extremely simple to integrate.

You could add this to the installation
1- Place the file inside your project folder directory
2- Call it via $SRCROOT/unused.rb xcode

Given that there are a lot of false positives like mentioning the word protocol in a comment or others, it would be nice to have a way like swift-lint to disable specific warnings.

ex unused-disable-this which would disable the warning on the specific line
unused-disable-all which would disable warnings for all the class

What do you think about it ?

Awesome project btw

Activity

  1. PaulTaykalo commented on Dec 7, 2018

    @PaulTaykalo
    Owner

    @PaulTaykalo I don't think that this needs to be done if we take in account, how this check is implemented.
    I don't want to build a castle on the sand :)

    The way how is it implemented, doesn't actually work at big scale.
    I would rather transition to some SourceKit/SwiftSyntax solution.
    But, unfortuneately, there's no time for that ATM :)

    If you have solution that will work, I don't mind from having a PR for that :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions