From the course: Agile Software Development: Code Quality

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Setting up copy/paste detectors (CPD)

Setting up copy/paste detectors (CPD) - SonarQube Tutorial

From the course: Agile Software Development: Code Quality

Start my 1-month free trial

Setting up copy/paste detectors (CPD)

- [Instructor] In the next couple of videos, we're going to look at tools that will help you hunt down duplication. These tools are sometimes called copy and paste detectors, because copy and paste is the most common way for duplicate code to be introduced. To prep for those videos, there are a couple things that you'll need to install. We're going to be working with tools that require that Java 8 is installed, and that it's set up to be used for command line programs. On a Mac, we can do that with brew cask install caskroom/versions/java8. This is going to download and install Java. Next up, we need to install PMD, which we can do with brew install pmd, and then we need to install Sonar-Scanner, which we can install with brew install sonar-scanner. Next up, you need to go ahead and create a fork of my fork of the CodeIgniter project, and fork it into your Github account. And then make sure you clone your fork onto your computer. So you'll need to run git clone, which will be…

Contents