Installation
Requirements
Section titled “Requirements”- Go 1.26 or later
- A Go project with
.goand/or.templfiles
Install
Section titled “Install”go install github.com/LarsArtmann/art-dupl/cmd/art-dupl@latestThis installs the art-dupl binary to your $GOPATH/bin.
Build from Source
Section titled “Build from Source”git clone https://github.com/LarsArtmann/art-dupl.gitcd art-duplgo build -o art-dupl ./cmd/art-duplOr with Nix:
git clone https://github.com/LarsArtmann/art-dupl.gitcd art-duplnix buildnix run .#art-dupl -- ./srcVerify Installation
Section titled “Verify Installation”art-dupl --versionFirst Scan
Section titled “First Scan”art-duplThis scans the current directory with the default threshold of 5 duplicated statements. Generated code (sqlc, templ, protobuf, mockgen, stringer) is filtered automatically.
Next Steps
Section titled “Next Steps”- Follow the Quick Start for common workflows
- Learn about Detection Methods for semantic vs. structural matching
- Set up CI/CD Integration for baseline gating