R.swift icon indicating copy to clipboard operation
R.swift copied to clipboard

IBAction and IBOutlet validation

Open ky1ejs opened this issue 8 years ago • 3 comments

The validateViewControllers() func is really cool, but it doesn't catch instance of when a function name has been changed but it has not been re-connected in IB.

Could IBActions be read from the storyboards and then attempted to be called from R.swift? This would be awesome!

ky1ejs avatar Jan 12 '16 11:01 ky1ejs

And perhaps something similar for IBOutlets that have been declared but not connected in IB?

ky1ejs avatar Jan 12 '16 11:01 ky1ejs

P.S. happy to implement this improvement if/when we agree on an approach :smile:

ky1ejs avatar Jan 12 '16 11:01 ky1ejs

Nice suggestion!

The big thing here is that we have to inspect Swift code, that makes it a lot harder then other things we validate right now. So I'll would have to think a bit about what the best way is to perform this check.

mac-cain13 avatar Jan 12 '16 12:01 mac-cain13