woshiccm / Pecker

CodePecker is a tool to detect unused Swift code.
MIT License
1.46k stars 63 forks source link

Request: Blacklist positives with a comment #20

Closed noahsark769 closed 4 years ago

noahsark769 commented 4 years ago

We have a few true positives in our codebase which we'd like to keep around since they're not used yet but will soon be used. It would be nice if we could disable the pecker checker with a comment, similar to Swiftlint. Something like:

func myUnsusedFunction() { // pecker:ignore
}

// or:

// pecker:ignore:next
func myUnusedFunction() {
  print("Blah")
}
woshiccm commented 4 years ago

Good suggestion, will improve

woshiccm commented 4 years ago

Done, PR is here https://github.com/woshiccm/Pecker/pull/24

noahsark769 commented 4 years ago

Wow, awesome work! Thanks!