A Swift command line tool to convert PMD's Copy/Paste Detector (CPD) XML reports to displayable warnings in Xcode.
- Clone this repo
- Execute
make
(it basically builds the executable and puts it in/usr/local/bin
)
Here's the command line help:
OVERVIEW: A Swift command-line tool to convert PMD CPD results to Xcode warnings
USAGE: cpd2xcode <xml-report>
ARGUMENTS:
<xml-report> The path to the CPD XML report
OPTIONS:
-h, --help Show help information.
You should create a Run Script
build phase for a target in your Xcode project, in which you call cpd2xcode
on the generated CPD XML report.
- Swift Argument Parser from Apple
cpd2xcode
is available under the MIT License.
If you use it and like it, let me know: @warchimede