Skip to the content
Know your tech before you buy it. Makers: get listed from $49/mo

Duplo

github.com

  • Free plan
  • Windows
  • macOS
  • Linux
7.9 Club score Visit github.com

What Duplo is

Duplo is free software for finding repeated source-code blocks in large codebases. It supports C/C++, Java, C#, VB, GCC assembly, Ada, Erlang, TypeScript and Swift, and it can also scan arbitrary text files, including for repetition within one file. For supported languages, it can strip comments, preprocessor directives and other syntax before comparing code. Inputs can be supplied directly, through standard input or through a separate file list. Duplo produces text, JSON and XML reports. The project describes XML output as suitable for continuous-integration tools such as GitHub Actions and TeamCity. A linked GitHub Actions extension can fail a build when duplicates are found, with options for minimum duplicate lines, minimum line length and the number of files reported. Prebuilt binaries are available for Alpine Linux, macOS and Windows, and the project can also be built from source. Duplo is licensed under GNU GPL version 2 or later, with no warranty. Its quick-start example requires at least 20 lines for a duplicate, though command-line options can be adjusted.

Who it suits

Duplo suits developers and teams looking for duplicated code in repositories or text files, including those using continuous-integration workflows. It is available for Linux, macOS and Windows.

Good to know, and what to watch

  • Supports ten named programming languages and arbitrary text files
  • Can ignore comments and preprocessor directives when comparing code
  • Produces text, JSON and XML reports
  • GitHub Actions extension can fail builds on duplicates
  • Quick-start example requires at least 20 duplicate lines
  • License provides no warranty
  • Feedback and bug reports go through project issues

Duplo

Free

Free plan

Getting started

  1. Open the Duplo GitHub project
  2. Download a pre-built binary for Alpine Linux, macOS or Windows, or build from source
  3. Provide files directly, through standard input or with a file-list input
  4. Run the scan and select text, JSON or XML output
  5. Optionally connect the linked GitHub Actions extension

Limits to check

The quick-start example treats a duplicate as at least 20 lines, although command-line settings can adjust that threshold. The linked action also limits reporting through configurable minimum lines, minimum line length and maximum files.

The verdict

Duplo offers configurable duplicate detection, multiple report formats and a linked GitHub Actions extension. Review the quick-start threshold and GPL license terms before adopting it.

Questions people ask

Is Duplo free?

Yes. The listed Duplo plan is free, and the software is under GNU GPL version 2 or any later version.

Which operating systems are supported?

Duplo lists Linux, macOS and Windows. Pre-built binaries are listed for Alpine Linux, macOS and Windows.

What languages can it scan?

Built-in support covers C/C++, Java, C#, VB, GCC assembly, Ada, Erlang, TypeScript and Swift. It can also scan arbitrary text files.

Can Duplo run in continuous integration?

The project describes XML reports for tools such as GitHub Actions and TeamCity, and links to a GitHub Actions workflow extension.

Who maintains Duplo?

Christian M. Ammann originally developed it. Daniel Lidström now maintains and develops the project.

What the maker publishes

Action limits
The linked GitHub Action has configurable minimum duplicate lines and minimum line length, and a maximum number of files to report. source
Caveat
The license section says Duplo is provided without warranty, including implied warranties of merchantability or fitness for a particular purpose. source
CI integration
The project describes XML reports as usable in continuous integration tools such as GitHub Actions and TeamCity, and links to a GitHub Actions workflow extension. source
Downloads
Pre-built binaries are available for Alpine Linux, macOS and Windows, and the project can also be built from source. source
Filtering
For supported languages, Duplo can remove comments, preprocessor directives and other syntax before checking for duplicate code. source
Filtering
For supported languages, Duplo can filter comments, compiler directives, and other syntax such as using statements from duplicate detection. source
GitHub Actions
The maker links a GitHub Action that can fail a build when duplicate blocks are found. source
Input
Files can be supplied through standard input or a separate file containing the file list. source
Language support
It has built in support for C/C++, Java, C#, VB, GCC assembly, Ada, Erlang, TypeScript and Swift, and can also scan arbitrary text files. source
Language support
Built-in support includes C/C++, Java, C#, VB, GCC assembly, Ada, Erlang, TypeScript, and Swift. source
License
Duplo is free software under GNU GPL version 2 or, at the user's option, any later version. source
License
Duplo is free software under the GNU General Public License version 2 or, at the user's option, any later version, and is provided without warranty. source
Limit
The README's quick-start example requires at least 20 lines for a duplicate, though command-line options can be adjusted. source
Maintainer
Duplo was originally developed by Christian M. Ammann and is now maintained and developed by Daniel Lidström. source
Performance
The README reports processing Quake2's 266 files and 102,740 lines in 9 seconds on modern hardware in 2025, and says multithreading can improve performance almost linearly. source
Performance
The README reports processing 266 Quake2 files and 102,740 lines in 9 seconds on modern hardware in 2025, and says multithreading offers almost linear improvement. source
Purpose
Duplo finds duplicated source code blocks in large codebases. source
Purpose
Duplo finds duplicated code blocks in large codebases. source
Reports
It can produce JSON and XML output as well as text reports. source
Reports
Duplo can output results as JSON or XML, and its XML can be displayed in a browser using an included stylesheet. source
Support
The README directs users to open an issue for feedback, feature requests and bug reports. source
Support
The maintainer asks users to open an issue for feedback, feature requests, and bug reports. source
Text files
Duplo can detect duplicates in arbitrary text files, including duplicates within a single file. source

Checked against the maker's pages on 29 Sept 2026.