SpyClones

SpyClones is a utility for detecting duplicate sections of program source code (clones).
Download

SpyClones Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Freeware
  • Publisher Name:
  • Adrian Carter
  • Operating Systems:
  • Windows All
  • File Size:
  • 424 KB

SpyClones Tags


SpyClones Description

SpyClones is a small and simple tool designed for detecting duplicate sections of program source code (clones). If a section of code repeats in 2 or more places in a program, or across a library of programs, it is possibly a candidate for conversion into a separate function or subroutine. This utility detects all such duplicate sections, and lists them in a pick list at the bottom of the window (you can nominate a minimum line count; only sections longer than this threshold value will be considered). The complete body of source code itself can be viewed in the top section of the window, and there are options to split the window vertically or horizontally so 2 copies of the source code can be viewed simultaneously. No attempt is made to actually change programs so as to incorporate duplicate code into a subroutine. There are all kinds of reasons, in any given case, why this might not be a good idea. All you'll get out of this program is information about the locations of duplicate code, and the opportunity to view two duplicate sections simultaneously. The original incarnation of SpyClones was written in Natural, and was designed to process only Natural source code. It has been generalised in this latest rewrite, to enable processing of program source code written in any language; a further improvement has given it the ability to check for duplicates across a collection of many source files.


SpyClones Related Software