How to find out how many lines of code there are in an Xcode project?
I see this floating around and use it myself: find . “(” -name “*.m” -or -name “*.mm” -or -name “*.cpp” -or -name “*.swift” “)” -print0 | xargs -0 wc -l
I see this floating around and use it myself: find . “(” -name “*.m” -or -name “*.mm” -or -name “*.cpp” -or -name “*.swift” “)” -print0 | xargs -0 wc -l
The answers in this thread are kind of odd as they speak of: “the team”, like “the one and only beneficiary” of those said metrics; “the metrics”, like they mean anything in themselves. 1/ Metrics is not for one population, but for three: developers: they are concerned with instantaneous static code metrics regarding static analysis … Read more
Just use Analyze | Inspect Code with appropriate inspection enabled (Unused declaration under Declaration redundancy group). Using IntelliJ 11 CE you can now “Analyze | Run Inspection by Name … | Unused declaration”
This prose by Alberto Savoia answers precisely that question (in a nicely entertaining manner at that!): http://www.artima.com/forums/flat.jsp?forum=106&thread=204677 Testivus On Test Coverage Early one morning, a programmer asked the great master: “I am ready to write some unit tests. What code coverage should I aim for?” The great master replied: “Don’t worry about coverage, just write … Read more