Code metrics for Lazarus FPC? lazarus / 13-General ---------------------------------------------------------------------- flamer0n · 2014-11-14 21:14 Are there any tools out there for code metrics specifically for Lazarus/FPC based projects? thank you ---------------------------------------------------------------------- howardpc · 2014-11-14 23:48 The IDE makes a start in the direction of metrics with the Code Observer (you have to enable it via the IDE Options as category shown in the Code Explorer). This will count and list unsorted class members, routines with too many parameters and various other code deficiencies, as well as listing all ToDos. It could certainly be enhanced. What statistics are you after? ---------------------------------------------------------------------- flamer0n · 2014-11-15 00:20 Thank you. I guess Code Observer would do but I would also like to analyze something like cyclomatic complexity of a source code ---------------------------------------------------------------------- JuhaManninen · 2014-11-15 09:32 This has been in back of my head for a long time. We don't have even the basic metrics like # of lines, # of code lines, ratio of comments / code etc. What tools do people use for those things? CodeTools could provide most of the information if somebody only implemented it. ---------------------------------------------------------------------- jwdietrich · 2014-11-15 13:07 Some basic metrics are also provided by Open Hub. It may be useful for you, if your project is open source and if you don't need immediate results. See https://www.openhub.net/p/lazarus for a well-known example. ---------------------------------------------------------------------- JuhaManninen · 2014-11-15 15:16 Quote from: jwdietrich on November 15, 2014, 02:07:54 pmSee https://www.openhub.net/p/lazarus for a well-known example. Heh, it says 65370 commits total. IMO we have 46863 commits now. Almost 3,000,000 lines of code, 824 years of effort. Not bad. This is similar with Ohloh page, isn't it? Anyway would be interesting to compare those values with another tool. I guess there is no standalone free metrics tool that understands Pascal. We really should make one. ---------------------------------------------------------------------- BigChimp · 2014-11-15 15:20 Quote from: JuhaManninen on November 15, 2014, 04:16:54 pmThis is similar with Ohloh page, isn't it? Ohloh was renamed into openhub since they were acquired by (IIRC) Black Duck software ---------------------------------------------------------------------- JuhaManninen · 2014-11-15 16:11 Quote from: BigChimp on November 15, 2014, 04:20:35 pmOhloh was renamed into openhub since they were acquired by (IIRC) Black Duck software Ok, good to know. Ohloh was a strange name anyways.