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

art-dupl

art-dupl.lars.software

What art-dupl is

art-dupl is free, MIT-licensed software for detecting code clones in Go repositories. It analyzes Go and .templ source files using semantic, exact, and structural matching, with suffix-tree, hash-based, and combined detection methods. Generated code is filtered by default, including sqlc, templ, protobuf, mockgen, stringer, and generic generated files. The command-line tool supports parallel parsing and incremental analysis with AST caching. Its quick-start default scan threshold is five statements. Reports can be produced as text, rich text, HTML, JSON, Simple JSON, SARIF, or plumbing output. For continuous integration, baseline recording and checking can flag newly introduced clones. SARIF results can be uploaded to GitHub Advanced Security or CodeQL, and repository templates include GitHub Actions and pre-commit hooks. A Go SDK provides a detector interface and streaming results. The project is hosted under the LarsArtmann account, supports repository scanning, CI integration, and a self-hosted setup.

Who it suits

art-dupl suits Go teams and maintainers who want repository-level clone detection in local or CI workflows. It is also relevant to projects using .templ files, GitHub security tooling, or pre-commit checks.

Good to know, and what to watch

  • Semantic, exact, and structural matching
  • Go and .templ analysis
  • Generated-code filtering
  • Multiple report formats
  • Baseline checks for CI
  • Focused on Go and .templ files
  • Default threshold is five statements
  • Requires setup in development workflows

The verdict

art-dupl provides clone detection with configurable matching, reporting, and CI-oriented checks. Its language scope is focused, but its self-hosted, open-source model supports teams controlling their own analysis.

What the maker publishes

CI
It includes baseline recording and checking to flag newly introduced clones in CI. source
CI checks
The baseline and check subcommands can flag newly found clones in CI. source
Detection
It offers semantic, exact, and structural matching modes. source
Detection methods
It supports suffix-tree, hash-based, and combined detection methods. source
Generated code
Generated code is filtered by default, with categories including sqlc, templ, protobuf, mockgen, stringer, and generic generated files. source
Generated code
Generated code is filtered by default, with categories including sqlc, templ, protobuf, mockgen, stringer, and generic generated files. source
GitHub integration
SARIF output can be uploaded to GitHub Advanced Security or CodeQL. source
GitHub security integration
SARIF output can be uploaded to the GitHub Security tab using the CodeQL upload action. source
License
The project states that it is MIT licensed. source
License
The project is licensed under MIT. source
Maker
The repository is under the LarsArtmann account. source
Matching modes
It offers semantic, exact, and structural matching modes. source
Performance
The CLI supports parallel parsing and incremental analysis with AST caching. source
Performance
The CLI supports parallel parsing and incremental analysis with AST caching. source
Purpose
art-dupl detects code clones in Go source code. source
Purpose
art-dupl detects source-code duplication at the AST level to identify fixable clones. source
Reports
Output formats include text, rich text, HTML, JSON, Simple JSON, SARIF, and plumbing. source
Reports
Output formats include text, rich text, HTML, JSON, Simple JSON, SARIF, and plumbing. source
SDK
A Go SDK provides a detector interface and streaming results. source
SDK
A Go SDK provides a Detector interface for programmatic clone detection. source
Supported languages
It analyzes Go and .templ source files. source
Templ support
It analyzes Go and .templ source files. source
Threshold
The quick start says the default scan threshold is 5 statements. source
Threshold
The quick start uses a default scan threshold of five statements. source

Checked against the maker's pages on 8 Oct 2026.