Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

False positive for used methods #19

Open
daniestrella1 opened this issue Feb 1, 2019 · 2 comments
Open

False positive for used methods #19

daniestrella1 opened this issue Feb 1, 2019 · 2 comments

Comments

@daniestrella1
Copy link

captura de pantalla 2019-02-01 a les 12 45 27

Hi,

As you can see drawNothing function is used in draw function but it appears as unused.

Thanks.

@PaulTaykalo
Copy link
Owner

PaulTaykalo commented Feb 4, 2019

Hi. Works on my machine ¯\_(ツ)_/¯

Can you provide minimal swift file when this false positive is appearing?
Also, next time please use
``` <--- Backticks

class A {
	override func draw(rect: CGRect) {
		// Drawing code
		switch self.typePermit {
		default:
			self.drawNothing()
		}
	}

	private func  drawNothing() {        
	}
}

```

ticks to wrap code :) It's hard to reproduce the behavior in case of screenshots

  • Do you have a database backup?
  • Yes, we have database screenshot
  • Do you mean snapshot?
  • No, screenshoot
  • 🤦‍♂️ 🤦‍♀️

@PaulTaykalo
Copy link
Owner

In case of Xcode, I would check whether the script is actually running as well ( build not failing) et.c.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants