Results 1 to 2 of 2

Thread: NLDReUse

  1. #1

    NLDReUse

    Hoi,

    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.. ).

    Samengevat

    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 ftp://ftp.nldelphi.com/public/OpenSo.../NLDDanyUtils/ (file NLDReUse.zip).

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

    Veel plezier.


    p.s. Gebruikte Open Source Code en referenties:

    - voor "Regular Expressions" informatie zie http://www.regular-expressions.info/

    - Gebruikte RegExpr engine: TRegExp, zie http://www.delphipages.com/result.cfm?ID=1216
    - Gebruikte Zip engine: TurboPower Abbrevia, zie http://sourceforge.net/projects/tpabbrevia/
    - Gebruikte GNU DiffUtils v2.7 engine: zie http://www.gnu.org/software/diffutils/
    Last edited by Dany; 15-Dec-07 at 18:39.

  2. #2
    Vriendelijke groeten,
    Dany

Thread Information

Users Browsing this Thread

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

Bookmarks

Posting Permissions

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