I did not want to hijack the conversation about the merits (or lack thereof) of counting lines of code, but I have developed a little app that will take an XOJO project file in XML format, and produce a report of all the modules, classes and methods counting how many “code” lines, white space lines and comment lines there are.
A code line with a comment on the end counts as a code line
the file extension must be .xojo_xml_project
previous versions of XOJO may have used other extenstions, but this is the only one this app will recognize
I changed the extension of your file to this, and it worked just fine.
Per suggestion pointed out by Simon, I have modified the code to classify containers as “containers” and not windows… this is based on the superclass designator.
New versions are available at the links above.
Starting with this version… a version # will appear in the upper right corner of the window
Since External Items can be either Binary or XML, it will report all of them, but indicate the BINARY ones cannot be analyzed.
Also if for some reason an External Item cannot be found, that too will be reported.
Dave, nice work, output format is easy to read, thanks. Lines of code looks about right, but under Comments it says, 114981030 I am not sure what that means, I don’t have anything close to that many comments in my code.
Dave: after watching Sasha screen shot, I saw a second help from your work. It may be used to search and find faster where a Method is located instead of relying on (good to bad) memory.
I will name that Collateral Advantage (vs the more know Collateral Damage )
;-
Some minutes later: can you add the name of the object the event refers to ?
Still in Sasha screen shot, in the first window, we have a bunch of CellClick events. It may be nice to know the name of the object owner.