dblock / fui

Find unused Objective-C imports.
MIT License
2.04k stars 180 forks source link

Should scan also Pre-Compiled Headers, too #12

Open jomnius opened 10 years ago

jomnius commented 10 years ago

I got result that a file, which was imported ONLY in project's .pch file, was an unused import. This is a false positive, app wouldn't compile without it.

My project contains a mixture of Objective-C and C++ code, wonder if you scan also .mm files. I took a look at some fui file, found this " k.path.gsub(/.h$/, '.m' ", which looks a bit suspicious.

dblock commented 10 years ago

Check out how fui does tests, if you could make a fake project folder that reproduces the problem it'd be easy to fix.