{"repo":"priv-kweihmann/tlv","free":true,"listed":false,"github":"https://github.com/priv-kweihmann/tlv","clone":"git clone https://github.com/priv-kweihmann/tlv.git","description":"Too little variation - A tool to discover code duplication in various languages","language":"Python","stars":11,"topics":["static-analysis","code-duplication","metrics-gathering","metrics","qatools"],"license":"BSD-2-Clause","category":"analytics","readme_excerpt":"tlv Too little variation - A tool to discover code duplication in various languages Purpose Code duplication are hard to track across many files. There are tools existing like CPD (from PMD) which are doing a great job, but they require JAVA (or even some more obscure language) to run. So I decided to write a small tool which uses Pygments and python difflib to catch code duplications for as many languages as possible Requirements python3 Pygments Installation PyPi simply run From source clone the repository from the clone directory run Usage By default tool guesses the content type by the filename, if that doesn't work for you please see below Specify a lexer You can use a specific lexer by running the tool with the --lexer= option. When doing this all input files are processed by the specified lexer, you have to ensure that all passed files are of the specified file, else the results might be bogus. Output Output will be written to stdout. There are 2 possible finding types Duplicate - The code is exactly the same TooLessVariation - The code is the same, when removing all token types specified by --wildcard token Output example if you don't want to see the code itself, pass the --nodetails option Further reading Pygments Bugs & Contribution Feel free to create issues or pull requests","default_branch":null,"files":null,"tree":[],"storefront":"/r/priv-kweihmann","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/priv-kweihmann/tlv/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}