Results 1 to 2 of 2

Thread: NLDReUse

  1. #1



    Ooit maakte ik een tooltje om hergebruik van code te meten. In het begin was het vrij primitief, maar nu is het zowat af (naar mijn normen althans.. ).


    kan het ding het volgende (mag het in het Engels voor 1 keer?):

    • Compare two software baselines with respect to ReUse of code. The tool calculates the percentages “new”, “modified’, “re-used” (not changed) and “deleted” lines of code and files.
    • Do a line of code count on one software baseline.

    en zijn de wetenswaardigheden:

    • Windows/PC based, written in Delphi (visual Pascal).
    • Capable of handling both compressed (ZIP) and uncompressed software baselines.
    • Capable of excluding or including comments in the difference and line of code calculations.
    • Selection of the files which are to be checked is possible (e.g. only “*.c” and “*.h” files).
    • Exclusion of some files from those selected for checking is possible (e.g. exclusion of all files in a “test” directory).
    • Exclusion of files containing a certain text is possible (e.g. exclusion of machine generated code).
    • The comment characters or strings (both “start/stop” and “rest of line” comments) can be defined per file type.
    • Ignores white space differences in both baselines at the beginning and end of lines (both for ReUse and LOC count).
    • Includes (optionally) a search in the old baseline for moved and/or renamed files.
    • Provides (optionally) a list of derived, added and deleted files in the output.
    • The name of the output file can be defined.
    • The tool can run in “batch” mode.
    • Capable of handling both ms-dos based files as Unix based files (difference in line break sequences).

    Het eigenlijke tool is "ReUse.exe" en dat gebruikt op zijn beurt "Diff.exe" (GNU versie, zie verder). Beide executables zijn te vinden op (file

    Voor verdere info: zie de ReUse.doc in bovenstaande file.

    Veel plezier.

    p.s. Gebruikte Open Source Code en referenties:

    - voor "Regular Expressions" informatie zie

    - Gebruikte RegExpr engine: TRegExp, zie
    - Gebruikte Zip engine: TurboPower Abbrevia, zie
    - Gebruikte GNU DiffUtils v2.7 engine: zie
    Last edited by Dany; 15-Dec-07 at 18:39.

  2. #2
    Vriendelijke groeten,

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts